]> git.proxmox.com Git - pve-storage.git/commit
convert maxfiles to prune_backups when reading the storage configuration
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 23 Nov 2020 12:33:09 +0000 (13:33 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Nov 2020 14:57:30 +0000 (15:57 +0100)
commitd4e8a1f27c66337a04461f2a593f416f61daaed5
tree22e840c3335fe4d9798a205e06d8ba44c824dd08
parent1b87f01388da882c31cc91d7cc142d3181faa085
convert maxfiles to prune_backups when reading the storage configuration

If there are already prune options configured, simply delete the maxfiles
setting. Having set both is invalid from vzdump's perspective anyways, and any
backup job on such a storage failed, meaning a user would've noticed.

If there are no prune options, translate the maxfiles value to keep-last,
except for maxfiles being zero (=unlimited), in which case we use keep-all.

If both are not set, don't set anything, so:
1. Storages don't suddenly have retention options set.
2. People relying on vzdump defaults can still use those.

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