From: John Snow <jsnow@redhat.com>
To: Andrew Baumann <Andrew.Baumann@microsoft.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "famz@redhat.com" <famz@redhat.com>
Subject: Re: [Qemu-devel] Disable image locking for snapshot drive?
Date: Mon, 17 Jul 2017 20:33:55 -0400 [thread overview]
Message-ID: <1263c0a6-263f-0b3b-c84a-f882df33856b@redhat.com> (raw)
In-Reply-To: <DM2PR21MB0060B20A50AEEC8B6816154C9EA00@DM2PR21MB0060.namprd21.prod.outlook.com>
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
> qemu-system-aarch64: -drive file=test.vhdx,if=none,id=hd0: Failed to unlock byte 100
> qemu-system-aarch64: -drive file=test.vhdx,if=none,id=hd0: Failed to lock byte 100
>
> That's no big deal; I can switch it off:
>
> $ qemu-system-aarch64 ... -drive file=test.vhdx,if=none,file.locking=off,id=hd0 ...
> (all good)
>
> But how can I do the same for a snapshot drive?
>
> $ qemu-system-aarch64 ... -drive file=test.vhdx,if=none,file.locking=off,id=hd0 -snapshot ...
> qemu-system-aarch64: -drive file=test.vhdx,if=none,file.locking=off,id=hd0: Failed to unlock byte 100
> qemu-system-aarch64: -drive file=test.vhdx,if=none,file.locking=off,id=hd0: Failed to unlock byte 100
> qemu-system-aarch64: -drive file=test.vhdx,if=none,file.locking=off,id=hd0: Could not create temporary overlay '/var/tmp/vl.o83dxn': Failed to lock byte 100
>
> (I also tried the snapshot=on drive option with similar results.)
>
> Thanks,
> Andrew
>
Looks like the shorthand "-snapshot" doesn't let you specify any further
options, which is a bummer.
You may need to do something a little more manual, and create your own
temporary overlay, and launch QEMU pointing to that overlay instead.
That sounds like a bit of a hassle.
Can we compile locking support out of QEMU instead for this platform? Or
is there a runtime option for disabling it globally?
next prev parent reply other threads:[~2017-07-18 0:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-17 23:30 [Qemu-devel] Disable image locking for snapshot drive? Andrew Baumann
2017-07-18 0:33 ` John Snow [this message]
2017-07-18 2:19 ` Andrew Baumann
2017-07-18 15:07 ` Eric Blake
2017-07-18 16:19 ` Andrew Baumann
2017-07-20 6:53 ` Fam Zheng
2017-07-20 21:49 ` Andrew Baumann
2017-07-21 1:46 ` Fam Zheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1263c0a6-263f-0b3b-c84a-f882df33856b@redhat.com \
--to=jsnow@redhat.com \
--cc=Andrew.Baumann@microsoft.com \
--cc=famz@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).