freebsd-nq/cmd
Ned Bass 3a4f6caf08 Return success from check_slice() if device doesn't exist
When creating a new pool, make_root_vdev() calls check_in_use() to
ensure that none of the consituent disks are in use.  If the disk
contains a valid vdev label it is read to retrieve the list of its
child vdevs and these are checked recursively.  However, the
partitions stored in the vdev label my no longer exist, for example
if the partition table has since been altered.  In any such case we
would want the pool creation to proceed, so this change removes the
check from check_slice() that returns an error if the device doesn't
exist.  As an added assurance, the Solaris implementation also
returns sucess on ENOENT.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2012-02-27 08:52:38 -08:00
..
mount_zfs Add support for DISCARD to ZVOLs. 2012-02-09 16:19:38 -08:00
sas_switch_id Add support for DISCARD to ZVOLs. 2012-02-09 16:19:38 -08:00
zdb Add support for DISCARD to ZVOLs. 2012-02-09 16:19:38 -08:00
zfs Add support for DISCARD to ZVOLs. 2012-02-09 16:19:38 -08:00
zinject Add support for DISCARD to ZVOLs. 2012-02-09 16:19:38 -08:00
zpios Add support for DISCARD to ZVOLs. 2012-02-09 16:19:38 -08:00
zpool Return success from check_slice() if device doesn't exist 2012-02-27 08:52:38 -08:00
zpool_id Add support for DISCARD to ZVOLs. 2012-02-09 16:19:38 -08:00
zpool_layout Add support for DISCARD to ZVOLs. 2012-02-09 16:19:38 -08:00
ztest Add support for DISCARD to ZVOLs. 2012-02-09 16:19:38 -08:00
zvol_id Add support for DISCARD to ZVOLs. 2012-02-09 16:19:38 -08:00
Makefile.am Multipath device manageability improvements 2011-06-23 10:46:06 -07:00
Makefile.in Add support for DISCARD to ZVOLs. 2012-02-09 16:19:38 -08:00