qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Disable image locking for snapshot drive?


From: Eric Blake
Subject: Re: [Qemu-devel] Disable image locking for snapshot drive?
Date: Tue, 18 Jul 2017 10:07:05 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 07/17/2017 07:33 PM, John Snow wrote:
> 
> 
> On 07/17/2017 07:30 PM, Andrew Baumann via Qemu-devel wrote:
>> Hi all,
>>
>> I'm running a recent Linux build of qemu on Windows Subsystem for Linux 
>> (WSL) which doesn't appear to implement file locking:
>>
>> $ qemu-system-aarch64 ... -drive file=test.vhdx,if=none,id=hd0 -device 
>> virtio-blk-pci,drive=hd0
>> qemu-system-aarch64: -drive file=test.vhdx,if=none,id=hd0: Failed to unlock 
>> byte 100

Does WSL implement fcntl(F_SETLK) but not fcntl(F_OFD_SETLK)?  We
already have code in place for compiling when F_OFD_SETLK is not
supported (which makes lock=auto do nothing, and issues a warning that
F_SETLK locks may be ineffective when locks are explicitly requested),
do we need to just expand that code into a runtime test of whether
F_OFD_SETLK appears to be unsupported?

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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