aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/unique.c
diff options
context:
space:
mode:
authorChris Dunlap <[email protected]>2015-04-10 12:56:21 -0700
committerBrian Behlendorf <[email protected]>2015-04-17 14:21:26 -0700
commitde6d1976835959275fbdc00d74bb8fb86071f079 (patch)
tree97009ba30137c209fc83df8d8c0a8a00412d2221 /module/zfs/unique.c
parent7fad6290eb3aefc9cbb6a64e4cbe5371af53f726 (diff)
Fix io-spare.sh to work with disk vdevs
The "zpool status" output shows the full pathname for file-type vdevs, but only the basename component for disk-type vdevs. In commit bee6665, the "basename" command was dropped from altering the vdev name used when searching the "zpool status" output. Consequently, hot-disk sparing for disk vdevs broke since "zpool status" output was now being searched for the full pathname to the disk vdev. Parsing the "zpool status" output in this manner is rather brittle. It would be preferable to search for the vdev based on its guid. But until that happens, this commit adds back the "basename" command to fix the vdev name breakage. Signed-off-by: Chris Dunlap <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #3310
Diffstat (limited to 'module/zfs/unique.c')
0 files changed, 0 insertions, 0 deletions