HomeFreeBSD

vdev_id fails to handle complex device topologies

Description

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

Details

Provenance
Cyril Plisko <cyril.plisko@mountall.com>Authored on Nov 29 2012, 1:40 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 29 2012, 9:07 PM
Parents
rGa6ef9522eae9: Make vdev_id POSIX sh compatible
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG38b344d22a80: vdev_id fails to handle complex device topologies (authored by Cyril Plisko <cyril.plisko@mountall.com>).Nov 29 2012, 9:07 PM