mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-12 15:22:13 +00:00
add lock check for move_disk API call
this API call changes the config quite drastically, and as such should not be possible while an operation that holds a lock is ongoing (e.g., migration, backup, snapshot).
This commit is contained in:
parent
3999f370b1
commit
dcce9b468d
@ -2507,6 +2507,8 @@ __PACKAGE__->register_method({
|
||||
|
||||
my $conf = PVE::QemuConfig->load_config($vmid);
|
||||
|
||||
PVE::QemuConfig->check_lock($conf);
|
||||
|
||||
die "checksum missmatch (file change by other user?)\n"
|
||||
if $digest && $digest ne $conf->{digest};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user