mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 18:45:29 +00:00
allow resize of virtio windows boot disk
virtio-win-0.1-74 have fixed the resize bug of virtio boot disk Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
47314bf5e2
commit
e5e3ccbbc2
@ -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 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);
|
my ($storeid, $volname) = PVE::Storage::parse_volume_id($volid);
|
||||||
|
|
||||||
$rpcenv->check($authuser, "/storage/$storeid", ['Datastore.AllocateSpace']);
|
$rpcenv->check($authuser, "/storage/$storeid", ['Datastore.AllocateSpace']);
|
||||||
|
Loading…
Reference in New Issue
Block a user