zfs/cmd/zpool
Brian Behlendorf dfd3339d12 Support udev shorthand paths
The Solaris code allows shorthand paths by checking for the short
name in /dev/dsk/.  For Linux we extend this shorthand syntax to
be udev aware.  This commit now additionally checks for the short
name in /dev/, /dev/disk/by-id, /dev/disk/by-label, /dev/disk/by-path,
/dev/disk/by-uuid, and /dev/disk/zpool/.  If the short name is found
in any of these places the path is fully expanded and used.  This
may allow for the simpler creation of pools:

  # Using /dev/disk/by-id/ short names
  zpool crete tank raidz ata-Maxtor_7Y250M0_Y638DK2E \
      ata-Maxtor_7Y250M0_Y638PBNE ata-Maxtor_7Y250M0_Y638PBZE

  # Using /dev/disk/zpool/ short names
  zpool create tank raidz2 A1 A2 A3 A4 mirror B1 B2 B3 B4

  # Using full path names
  zpool create tank raidz2 /dev/sd[ah]
2010-08-17 10:34:59 -07:00
..
.gitignore Add .gitignore files to exclude build products 2010-01-08 11:35:17 -08:00
Makefile.am Add missing include path for FMA aware zpool command. 2010-05-14 11:57:48 -07:00
zpool_iter.c Merge branch 'gcc-no-parenthesis' into refs/top-bases/gcc-branch 2009-03-11 14:08:48 -07:00
zpool_main.c Updates to linux-user-disk 2010-06-14 15:59:11 -07:00
zpool_util.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zpool_util.h Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zpool_vdev.c Support udev shorthand paths 2010-08-17 10:34:59 -07:00