mirror of
https://git.proxmox.com/git/qemu-server
synced 2026-01-04 21:10:05 +00:00
forbid online resize a virtio windows bootdisk
Currently is give us bsod, it's a windows virtio-blk driver bug. Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
ffdf91ba17
commit
f2965e67df
@ -1937,6 +1937,9 @@ __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']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user