Skip to content

Commit 9e879f1

Browse files
authored
Merge pull request #409 from zaneb/multipath-wwn
Get WWN for multipath block devices
2 parents 3773bc3 + f0ccc08 commit 9e879f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/block/block_linux.go

+4
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ func diskWWN(paths *linuxpath.Paths, disk string) string {
208208
if wwn, ok := info["ID_WWN"]; ok {
209209
return wwn
210210
}
211+
// Device Mapper devices get DM_WWN instead of ID_WWN_WITH_EXTENSION
212+
if wwn, ok := info["DM_WWN"]; ok {
213+
return wwn
214+
}
211215
return util.UNKNOWN
212216
}
213217

0 commit comments

Comments
 (0)