diff options
author | Tony Hutter <[email protected]> | 2017-02-10 15:18:31 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-02-10 15:18:31 -0800 |
commit | 65a736bc0df16561bac14bee6bf9a6752cf8bc39 (patch) | |
tree | 38ecdf8551d9186bce11bbbb59d68fe5fadbca73 /cmd | |
parent | 449705dbef3008f1cf69ea59276bd07720e4beb2 (diff) |
Clear enclosure sysfs path from VDEV label when sysfs path isn't present
This clears vdev_enc_sysfs_path from the label if the VDEV's
/sys/class/block/<dev>/device/enclosure_device path isn't present.
This is important in the case where a disk that is labeled with
vdev_enc_sysfs_path is pulled out and put into another enclosure.
In that case, it's possible that the old sysfs path would be used to
turn on the fault LED for the disk's old slot postion, assuming the
new slot didn't have a LED sysfs entry.
Reviewed-by: Don Brady <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes #5524
Closes #5773
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions