freebsd-dev/lib
Ned Bass a2c6816c34 Support shorthand names with zpool remove
zpool status displays abbreviated vdev names without leading path components
and, in the case of whole disks, without partition information.  Also, the
zpool subcommands 'create' and 'add' support using shorthand devices names
without qualified paths.  Prior to this change, however, removing a device
generally required specifying its name as it is stored in the vdev label.  So
while zpool status might list a cache disk with a name like A16, removing it
would require a full path such as /dev/disk/zpool/A16-part1, which is
non-intuitive.

This change adds support for shorthand device names with the remove subcommand
so one can simply type, for example,

        zpool remove tank A16

A consequence of this change is that including the partition information when
removing a whole-disk vdev now results in an error.  While this is arguably the
correct behavior, it is a departure from how zpool previously worked in this
project.

This change removes the only reference to ctd_check_path(), so that function is
also removed to avoid compiler warnings.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2010-10-22 12:25:46 -07:00
..
libavl Add FAILFAST support 2010-10-12 14:55:02 -07:00
libefi Add FAILFAST support 2010-10-12 14:55:02 -07:00
libnvpair Add FAILFAST support 2010-10-12 14:55:02 -07:00
libspl Add FAILFAST support 2010-10-12 14:55:02 -07:00
libunicode Add FAILFAST support 2010-10-12 14:55:02 -07:00
libuutil Add FAILFAST support 2010-10-12 14:55:02 -07:00
libzfs Support shorthand names with zpool remove 2010-10-22 12:25:46 -07:00
libzpool Add FAILFAST support 2010-10-12 14:55:02 -07:00
Makefile.am Add linux libspl support 2010-08-31 13:41:59 -07:00
Makefile.in Add FAILFAST support 2010-10-12 14:55:02 -07:00