]> git.proxmox.com Git - qemu-server.git/commitdiff
allow resize of virtio windows boot disk
authorAlexandre Derumier <aderumier@odiso.com>
Wed, 16 Jul 2014 08:36:19 +0000 (10:36 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 16 Jul 2014 10:47:04 +0000 (12:47 +0200)
virtio-win-0.1-74  have fixed the resize bug of virtio boot disk

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/API2/Qemu.pm

index 96c9302027d6db0d0e8ca30594a5085539a2f6d4..d03e28a0192694702362399fe3dd3c3d94c10208 100644 (file)
@@ -2724,9 +2724,6 @@ __PACKAGE__->register_method({
 
            die "you can't resize a cdrom\n" if PVE::QemuServer::drive_is_cdrom($drive);
 
-           die "you can't online resize a virtio windows bootdisk\n"
-               if PVE::QemuServer::check_running($vmid) && $conf->{bootdisk} eq $disk && $conf->{ostype} =~ m/^w/ && $disk =~ m/^virtio/;
-
            my ($storeid, $volname) = PVE::Storage::parse_volume_id($volid);
 
            $rpcenv->check($authuser, "/storage/$storeid", ['Datastore.AllocateSpace']);