]> git.proxmox.com Git - qemu-server.git/commit
sync_disks: use allow_rename to avoid collisions on the target storage
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 8 Apr 2020 09:25:10 +0000 (11:25 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 8 Apr 2020 20:11:54 +0000 (22:11 +0200)
commitcc1a3820dbe4ae79a553b1e52846a1a248628c38
tree3a5be3bd81d37a961e5277625ac54dfd0918574a
parent97ece9ddce3732d19fc2bfbf0a79b23a25e8344b
sync_disks: use allow_rename to avoid collisions on the target storage

This makes it possible to migrate a VM with volumes store1:vm-123-disk-0
store2:vm-123-disk-0 to some targetstorage. Also prevents migration failure
when there is an orphaned disk with the same volid on the target.

To avoid confusion, the name should not change for 'vmstate'-volumes.

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