zfs/cmd
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
..
zdb Merge commit 'refs/top-bases/linux-user-disk' into linux-user-disk 2010-07-12 10:23:52 -07:00
zfs Update linux-user-disk 2010-06-14 16:03:02 -07:00
zinject Merge commit 'refs/top-bases/linux-user-disk' into linux-user-disk 2010-05-28 21:41:17 -07:00
zpool Support udev shorthand paths 2010-08-17 10:34:59 -07:00
zpool_id Split the udev rule from a specific configuration 2010-03-01 16:51:21 -08:00
zpool_layout Cleanly handle partitions in zpool_layout 2010-08-16 20:58:43 -07:00
ztest Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2010-08-12 21:28:01 -07:00
Makefile.am Add zpool_layout command 2010-08-16 15:54:06 -07:00