qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: qemu-img - vhdx compatibility with Hyper-V


From: Adam Baxter
Subject: Re: qemu-img - vhdx compatibility with Hyper-V
Date: Sun, 27 Oct 2019 20:46:43 +1100

I've had another look at this and managed to get gdb working enough to step through the source code.

It looks like raw_co_create(BlockdevCreateOptions *options, Error **errp) in block\file-win32.c *always* calls set_sparse (which calls Win32's underlying DeviceIoControl/FSCTL_SET_SPARSE). file-posix.c has some options for "preallocation" and only creates sparse files when asked, but these aren't supported for a Windows host in the code right now.

I'm not quite at the point where I could create a patch, but with some help I could get it done.

--Adam

reply via email to

[Prev in Thread] Current Thread [Next in Thread]