fix #2856: also check whole device for device mapper

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-07-28 09:48:22 +02:00 committed by Dietmar Maurer
parent 7fde1a71ca
commit be10cdb122
1 changed files with 4 additions and 0 deletions

View File

@ -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 wearout = None;