[pbs-devel] [PATCH proxmox-backup] fix #4466: show snapshots in media content again

Dominik Csapak d.csapak at proxmox.com
Mon Jan 16 09:21:44 CET 2023


while refactoring the the empty media set checks, we accidentally
reversed one check from !is_empty to unassigned, which now never
included the right media sets.

reversing the condition fixes that.

fixes
52517f7b: ("tape: hide internal use of all zero uuid for unassigned tapes")

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/tape/inventory.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tape/inventory.rs b/src/tape/inventory.rs
index dd560179..1817ab2e 100644
--- a/src/tape/inventory.rs
+++ b/src/tape/inventory.rs
@@ -294,7 +294,7 @@ impl Inventory {
             match entry.id.media_set_label {
                 None => continue, // not assigned to any pool
                 Some(ref set) => {
-                    if set.unassigned() {
+                    if !set.unassigned() {
                         list.push(entry.id.clone());
                     }
                 }
-- 
2.30.2






More information about the pbs-devel mailing list