Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/block/block_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ func diskWWN(paths *linuxpath.Paths, disk string) string {
if wwn, ok := info["ID_WWN"]; ok {
return wwn
}
// Device Mapper devices get DM_WWN instead of ID_WWN_WITH_EXTENSION
if wwn, ok := info["DM_WWN"]; ok {
return wwn
}
return util.UNKNOWN
}

Expand Down
Loading