pbs-datastore: add protection info to BackupInfo

and add necessary helper functions (protected_file/is_protected)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Dominik Csapak
2021-10-27 13:22:26 +02:00
committed by Wolfgang Bumiller
parent e9558f290a
commit 92c5cf42d1
2 changed files with 19 additions and 3 deletions

View File

@ -42,7 +42,7 @@ fn create_info(
files.push(String::from(MANIFEST_BLOB_NAME));
}
BackupInfo { backup_dir, files }
BackupInfo { backup_dir, files, protected: false }
}
#[test]