[pbs-devel] [PATCH proxmox-backup] fix #2856: also check whole device for device mapper
Dominik Csapak
d.csapak at proxmox.com
Tue Jul 28 09:48:22 CEST 2020
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/tools/disks.rs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/tools/disks.rs b/src/tools/disks.rs
index 73f8370..cecead9 100644
--- a/src/tools/disks.rs
+++ b/src/tools/disks.rs
@@ -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;
--
2.20.1
More information about the pbs-devel
mailing list