|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] Disk image shared and exclusive locks. |
Date: | Mon, 07 Dec 2009 07:43:53 -0600 |
User-agent: | Thunderbird 2.0.0.23 (X11/20090825) |
Daniel P. Berrange wrote:
That doesn't work in the case of setting up a clustered filesystem shared between guests. That requires that the disk be opened writable, but with a shared (F_RDLOCK) lock.
If you'd like data corruption :-) qemu -drive file=/dev/hda,lock=shared # clustered file system qemu -drive file=/dev/hda,lock=shared # clustered file systemqemu -drive file=/dev/hda,lock=shared -snapshot # i have no awareness of the last two.
The 3rd invocation is totally fine. /dev/hda is shared (but the expectation is read-only).
Better to stick with on/off. That gives much easier to understand semantics.
Regards, Anthony Liguori
[Prev in Thread] | Current Thread | [Next in Thread] |