diff options
| author | Eric Blake <eblake@redhat.com> | 2020-04-28 15:28:58 -0500 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2020-05-08 13:26:35 +0200 |
| commit | 8e519795041e3293ab6b4e67f5416fa80dc0efc4 (patch) | |
| tree | d84c274024e3d6e856bd4d1a3e48d86027d61d65 /python/qemu/machine.py | |
| parent | 5e09bcee5ba2c69f79d59513436fc92db49ec302 (diff) | |
| download | focaccia-qemu-8e519795041e3293ab6b4e67f5416fa80dc0efc4.tar.gz focaccia-qemu-8e519795041e3293ab6b4e67f5416fa80dc0efc4.zip | |
file-win32: Support BDRV_REQ_ZERO_WRITE for truncate
When using bdrv_file, .bdrv_has_zero_init_truncate always returns 1; therefore, we can behave just like file-posix, and always implement BDRV_REQ_ZERO_WRITE by ignoring it since the OS gives it to us for free (note that file-posix.c had to use an 'if' because it shared code between regular files and block devices, but in file-win32.c, bdrv_host_device uses a separate .bdrv_file_open). Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20200428202905.770727-3-eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'python/qemu/machine.py')
0 files changed, 0 insertions, 0 deletions