]> git.proxmox.com Git - mirror_zfs-debian.git/commit
vdev_id fails to handle complex device topologies
authorCyril Plisko <cyril.plisko@mountall.com>
Thu, 29 Nov 2012 13:40:26 +0000 (15:40 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 29 Nov 2012 21:07:47 +0000 (13:07 -0800)
commit38b344d22a80a173e50ab992f81b57b872e6da7c
tree038d605decd3b4151e4cd23b3ce4f49778796769
parenta6ef9522eae9be2c2cb40731a8afb0a90f05d7ae
vdev_id fails to handle complex device topologies

While expanding positional parameters shell requires non-single
digits to be enclosed in braces. When the SAS topology is
non-trivial the number of positional parameters generated internally
by vdev_id script (using set -- ...) easily crosses single digit limit
and vdev_id fails to generate links.

Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1119
cmd/vdev_id/vdev_id