qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] need to resurrect no-lock option?
@ 2017-09-20  9:26 Christian Ehrhardt
  2017-09-20  9:51 ` Fam Zheng
  2017-09-21 12:33 ` Stefan Hajnoczi
  0 siblings, 2 replies; 8+ messages in thread
From: Christian Ehrhardt @ 2017-09-20  9:26 UTC (permalink / raw)
  To: qemu-devel, Fam Zheng

Hi,
this might have been discussed in the wake of the lock changes that took
place in 2.10 but I can't find anything clear enough to follow in the
current case.
There was an old submission [1] by Fam to make it possible to no-lock
qemu-img and others if needed. But it seems nothing like it made it along
to the locking we have in 2.10.

One (maybe more) case where missing this causes pain is e.g. running an
info check on a running guest.
In general info shouldn't need a write lock anyway, but without --no-lock
that use case is broken.

Repro of the case is rather simple:
$ qemu-img create -f qcow2 /tmp/test.qcow2 1M
$ qemu-system-x86_64 -hda /tmp/test.qcow2 -enable-kvm -nodefaults
-nographic &
$ qemu-img info /tmp/test.qcow2
qemu-img: Could not open '/tmp/test.qcow2': Failed to get shared "write"
lock
Is another process using the image?

[1]: https://lists.gnu.org/archive/html/qemu-block/2016-04/msg00349.html

-- 
Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

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

end of thread, other threads:[~2017-09-22  7:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-20  9:26 [Qemu-devel] need to resurrect no-lock option? Christian Ehrhardt
2017-09-20  9:51 ` Fam Zheng
2017-09-20 10:04   ` Christian Ehrhardt
2017-09-21 12:33 ` Stefan Hajnoczi
2017-09-21 12:43   ` Daniel P. Berrange
2017-09-21 12:55     ` Fam Zheng
2017-09-21 13:18     ` Daniel P. Berrange
2017-09-22  7:27       ` Kevin Wolf

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