]> git.proxmox.com Git - pve-manager.git/commit - PVE/VZDump.pm
vzdump: backup limit: only count unprotected backups
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 29 Mar 2022 12:53:15 +0000 (14:53 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 6 Apr 2022 11:40:05 +0000 (13:40 +0200)
commit7bffbd22412e9ef9a1141982fb48c331456c940a
tree1259b357a91dce403307d33014244ee61f3ed59d
parent0a9ca6caf6d170aa0d40310538dacfc973d7b0be
vzdump: backup limit: only count unprotected backups

since they are the ones relevant for pruning and protected backups
have their own separate limit.

Since get_backup_file_list is only used in places where the
unprotected backups are needed, adapt the helper accordingly.

If there is a storage, use PVE::Storage::volume_list to count the
unprotected backups. This avoids a direct invocation of the
proxmox-backup-client for PBS and the limit check can also work for
external storage plugins which might not be dir-based or name the
backups differently.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/VZDump.pm
debian/control