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:
Fabian Grünbichler 2016-07-22 07:53:53 +02:00 committed by Wolfgang Bumiller
parent 3999f370b1
commit dcce9b468d

View File

@ -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};