* [pbs-devel] [PATCH proxmox-backup] fix #2856: also check whole device for device mapper
@ 2020-07-28 7:48 Dominik Csapak
2020-07-28 9:05 ` [pbs-devel] applied: " Dietmar Maurer
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2020-07-28 7:48 UTC (permalink / raw)
To: pbs-devel
Signed-off-by: Dominik Csapak <d.csapak@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-28 9:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-28 7:48 [pbs-devel] [PATCH proxmox-backup] fix #2856: also check whole device for device mapper Dominik Csapak
2020-07-28 9:05 ` [pbs-devel] applied: " Dietmar Maurer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox