freebsd-dev/cmd
Ned Bass 2957f38d78 vdev_id support for device link aliases
Add a vdev_id feature to map device names based on already defined
udev device links.  To increase the odds that vdev_id will run after
the rules it depends on, increase the vdev.rules rule number from 60
to 69.  With this change, vdev_id now provides functionality analogous
to zpool_id and zpool_layout, paving the way to retire those tools.

A defined alias takes precedence over a topology-derived name, but the
two naming methods can otherwise coexist. For example, one might name
drives in a JBOD with the sas_direct topology while naming an internal
L2ARC device with an alias.

For example, the following lines in vdev_id.conf will result in the
creation of links /dev/disk/by-vdev/{d1,d2}, each pointing to the same
target as the device link specified in the third field.

  #     by-vdev
  #     name     fully qualified or base name of device link
  alias d1       /dev/disk/by-id/wwn-0x5000c5002de3b9ca
  alias d2       wwn-0x5000c5002def789e

Also perform some minor vdev_id cleanup, such as removal of the unused
-s command line option.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #981
2012-12-03 14:04:47 -08:00
..
mount_zfs mount.zfs: canonicalize mount point for mtab 2012-11-15 14:28:52 -08:00
vdev_id vdev_id support for device link aliases 2012-12-03 14:04:47 -08:00
zdb Add ddt_object_count() error handling 2012-10-29 08:57:45 -07:00
zfs Illumos #2703: add mechanism to report ZFS send progress 2012-09-19 13:39:06 -07:00
zinject Remove autotools products 2012-08-27 11:47:44 -07:00
zpios Remove autotools products 2012-08-27 11:47:44 -07:00
zpool Make zpool attach -o ashift=... actually work 2012-11-30 13:50:26 -08:00
zpool_id Remove autotools products 2012-08-27 11:47:44 -07:00
zpool_layout Remove autotools products 2012-08-27 11:47:44 -07:00
zstreamdump Add zstreamdump .gitignore 2012-09-06 14:23:11 -07:00
ztest Disable ztest deadman timer 2012-10-14 19:35:09 -07:00
zvol_id Remove autotools products 2012-08-27 11:47:44 -07:00
Makefile.am Add zstreamdump(8) command to examine ZFS send streams. 2012-09-02 14:54:27 -07:00