qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Disable image locking for snapshot drive?
@ 2017-07-17 23:30 Andrew Baumann
  2017-07-18  0:33 ` John Snow
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Baumann @ 2017-07-17 23:30 UTC (permalink / raw)
  To: qemu-devel@nongnu.org; +Cc: famz@redhat.com

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-21  1:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17 23:30 [Qemu-devel] Disable image locking for snapshot drive? Andrew Baumann
2017-07-18  0:33 ` John Snow
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

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).