Re: [Qemu-devel] [PATCH v15 19/21] osdep: Add qemu_lock_fd and qemu_unlock_fd

2017-04-26 Thread Fam Zheng
On Wed, 04/26 15:29, Daniel P. Berrange wrote: > On Wed, Apr 26, 2017 at 09:20:28PM +0800, Fam Zheng wrote: > > On Wed, 04/26 14:57, Kevin Wolf wrote: > > > Am 26.04.2017 um 05:34 hat Fam Zheng geschrieben: > > > > They are wrappers of POSIX fcntl "file private locking", with a > > > > convenient "

Re: [Qemu-devel] [PATCH v15 19/21] osdep: Add qemu_lock_fd and qemu_unlock_fd

2017-04-26 Thread Daniel P. Berrange
On Wed, Apr 26, 2017 at 09:20:28PM +0800, Fam Zheng wrote: > On Wed, 04/26 14:57, Kevin Wolf wrote: > > Am 26.04.2017 um 05:34 hat Fam Zheng geschrieben: > > > They are wrappers of POSIX fcntl "file private locking", with a > > > convenient "try lock" wrapper implemented with F_OFD_GETLK. > > > >

Re: [Qemu-devel] [PATCH v15 19/21] osdep: Add qemu_lock_fd and qemu_unlock_fd

2017-04-26 Thread Kevin Wolf
Am 26.04.2017 um 15:20 hat Fam Zheng geschrieben: > On Wed, 04/26 14:57, Kevin Wolf wrote: > > Am 26.04.2017 um 05:34 hat Fam Zheng geschrieben: > > > They are wrappers of POSIX fcntl "file private locking", with a > > > convenient "try lock" wrapper implemented with F_OFD_GETLK. > > > > > > Signe

Re: [Qemu-devel] [PATCH v15 19/21] osdep: Add qemu_lock_fd and qemu_unlock_fd

2017-04-26 Thread Fam Zheng
On Wed, 04/26 14:57, Kevin Wolf wrote: > Am 26.04.2017 um 05:34 hat Fam Zheng geschrieben: > > They are wrappers of POSIX fcntl "file private locking", with a > > convenient "try lock" wrapper implemented with F_OFD_GETLK. > > > > Signed-off-by: Fam Zheng > > Reviewed-by: Max Reitz > > --- > >

Re: [Qemu-devel] [PATCH v15 19/21] osdep: Add qemu_lock_fd and qemu_unlock_fd

2017-04-26 Thread Kevin Wolf
Am 26.04.2017 um 05:34 hat Fam Zheng geschrieben: > They are wrappers of POSIX fcntl "file private locking", with a > convenient "try lock" wrapper implemented with F_OFD_GETLK. > > Signed-off-by: Fam Zheng > Reviewed-by: Max Reitz > --- > include/qemu/osdep.h | 3 +++ > util/osdep.c |

[Qemu-devel] [PATCH v15 19/21] osdep: Add qemu_lock_fd and qemu_unlock_fd

2017-04-25 Thread Fam Zheng
They are wrappers of POSIX fcntl "file private locking", with a convenient "try lock" wrapper implemented with F_OFD_GETLK. Signed-off-by: Fam Zheng Reviewed-by: Max Reitz --- include/qemu/osdep.h | 3 +++ util/osdep.c | 48 2 files chan