fix #2856: also check whole device for device mapper
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
7fde1a71ca
commit
be10cdb122
|
@ -825,6 +825,10 @@ pub fn get_disks(
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if usage == DiskUsageType::Unused && disk.has_holders()? {
|
||||||
|
usage = DiskUsageType::DeviceMapper;
|
||||||
|
}
|
||||||
|
|
||||||
let mut status = SmartStatus::Unknown;
|
let mut status = SmartStatus::Unknown;
|
||||||
let mut wearout = None;
|
let mut wearout = None;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue