]> git.proxmox.com Git - mirror_zfs.git/commit
Fix multipath bug in vdev_id caused by inconsistent field numbering
authorSimon Guest <Simon Guest simon.guest@agresearch.co.nz>
Mon, 9 Dec 2013 04:20:20 +0000 (17:20 +1300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 10 Dec 2013 17:58:35 +0000 (09:58 -0800)
commit383efa5743ecf05e11b859e2dcc0133ceab8b458
tree9b23bc73bdb2c36b88d4fdfda8ad0946b0ab190c
parentb6e335bfc489c08bb92a8667e71fa7f69e87d960
Fix multipath bug in vdev_id caused by inconsistent field numbering

The bug is caused by multipath output like this:

35000c50056bd77a7 dm-15 HP,MB3000FCWDH
size=2.7T features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=0 status=active
| `- 2:0:16:0 sdq  65:0    active undef running
`-+- policy='round-robin 0' prio=0 status=enabled
  `- 4:0:52:0 sdfp 130:176 active undef running

Note that the pipe symbols mean that the field numbering is different
between the sdq and sdfp lines.  The fix edits out the pipe symbols.

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