On Mon, Aug 27, 2007 at 10:19:42PM +0200, Sven Oehme wrote:
i thought it might be good to post this on qemu-devel as well, as i see
this as a general qemu / kvm / xen /whatevercomesnext issue .
are there any plans to implement a default in qemu to prevent accessing
the same image multiple times ?
Each QEMU instance is unware of each other so can't directly check this. One
possiblity would be for QEMU to use fcntl() to take a lock on a disk image
when opening it. With raw disk images at least, it is, however, safe to let
multiple QEMU instances use it at once *provided* you have a clustered
filesystem installed, rather than regular FAT or ext2/3, so one wouldn't want
to exclude this use case.