From dcce9b468d6f642dee6497381a6e19ca59cff01a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Fri, 22 Jul 2016 07:53:53 +0200 Subject: [PATCH] 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). --- PVE/API2/Qemu.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 998e0aab..dd42538b 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -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}; -- 2.39.5