Re: [Qemu-devel] [PATCH for-2.7 05/15] raw-posix: Implement .bdrv_lockf

2016-04-13 Thread Fam Zheng
On Wed, 04/13 10:21, Daniel P. Berrange wrote: > On Wed, Apr 13, 2016 at 05:09:54PM +0800, Fam Zheng wrote: > > Because virtlockd in libvirt already uses the fcntl lock on the image file, > > we > > have to workaround this by locking a digest-mapped temporary file. > > > > Signed-off-by: Fam Zhen

Re: [Qemu-devel] [PATCH for-2.7 05/15] raw-posix: Implement .bdrv_lockf

2016-04-13 Thread Daniel P. Berrange
On Wed, Apr 13, 2016 at 05:09:54PM +0800, Fam Zheng wrote: > Because virtlockd in libvirt already uses the fcntl lock on the image file, we > have to workaround this by locking a digest-mapped temporary file. > > Signed-off-by: Fam Zheng > --- > block/raw-posix.c | 97 >

[Qemu-devel] [PATCH for-2.7 05/15] raw-posix: Implement .bdrv_lockf

2016-04-13 Thread Fam Zheng
Because virtlockd in libvirt already uses the fcntl lock on the image file, we have to workaround this by locking a digest-mapped temporary file. Signed-off-by: Fam Zheng --- block/raw-posix.c | 97 +++ 1 file changed, 97 insertions(+) diff --