[pbs-devel] applied: [PATCH proxmox-backup] fix #2856: also check whole device for device mapper
Dietmar Maurer
dietmar at proxmox.com
Tue Jul 28 11:05:22 CEST 2020
applied
> On 07/28/2020 9:48 AM Dominik Csapak <d.csapak at proxmox.com> wrote:
>
>
> 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
>
>
>
> _______________________________________________
> pbs-devel mailing list
> pbs-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
More information about the pbs-devel
mailing list