]> git.proxmox.com Git - pve-guest-common.git/commit
config: activate affected storages for snapshot operations
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 13 Jan 2022 11:04:01 +0000 (12:04 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 28 Jan 2022 13:28:35 +0000 (14:28 +0100)
commita68bfdb1ee03b5c367b80b695d63fa61fdbf3475
tree95755ce41ea41c2a97eff1e81210e904eebf8afb
parent9643bddd3affa064867f664b9c8694f0ded81b33
config: activate affected storages for snapshot operations

For snapshot creation, the storage for the vmstate file is activated
via vdisk_alloc when the state file is created.

Do not activate the volumes themselves, as that has unnecessary side
effects (e.g. waiting for zvol device link for ZFS, mapping the volume
for RBD). If a storage can only do snapshot operations on a volume
that has been activated, it needs to activate the volume itself.

The actual implementation will be in the plugins to be able to skip
CD ROM drives and bind-mounts, etc.

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