all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [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

* [pbs-devel] applied: [PATCH proxmox-backup] fix #2856: also check whole device for device mapper
  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 ` Dietmar Maurer
  0 siblings, 0 replies; 2+ messages in thread
From: Dietmar Maurer @ 2020-07-28  9:05 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Dominik Csapak

applied

> On 07/28/2020 9:48 AM Dominik Csapak <d.csapak@proxmox.com> wrote:
> 
>  
> 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
> 
> 
> 
> _______________________________________________
> pbs-devel mailing list
> pbs-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel




^ 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal