Re: [Qemu-devel] [PATCH v6 04/22] block: Introduce image file locking

2016-06-22 Thread Fam Zheng
On Wed, 06/22 10:30, Kevin Wolf wrote: > Am 22.06.2016 um 09:23 hat Fam Zheng geschrieben: > > On Fri, 06/17 13:34, Kevin Wolf wrote: > > > Am 03.06.2016 um 10:48 hat Fam Zheng geschrieben: > > > > Block drivers can implement this new operation .bdrv_lockf to actually > > > > lock the > > > > imag

Re: [Qemu-devel] [PATCH v6 04/22] block: Introduce image file locking

2016-06-22 Thread Kevin Wolf
Am 22.06.2016 um 09:23 hat Fam Zheng geschrieben: > On Fri, 06/17 13:34, Kevin Wolf wrote: > > Am 03.06.2016 um 10:48 hat Fam Zheng geschrieben: > > > Block drivers can implement this new operation .bdrv_lockf to actually > > > lock the > > > image in the protocol specific way. > > > > > > Signed

Re: [Qemu-devel] [PATCH v6 04/22] block: Introduce image file locking

2016-06-22 Thread Fam Zheng
On Fri, 06/17 13:34, Kevin Wolf wrote: > Am 03.06.2016 um 10:48 hat Fam Zheng geschrieben: > > Block drivers can implement this new operation .bdrv_lockf to actually lock > > the > > image in the protocol specific way. > > > > Signed-off-by: Fam Zheng > > --- > > block.c | 57

Re: [Qemu-devel] [PATCH v6 04/22] block: Introduce image file locking

2016-06-17 Thread Kevin Wolf
Am 03.06.2016 um 10:48 hat Fam Zheng geschrieben: > Block drivers can implement this new operation .bdrv_lockf to actually lock > the > image in the protocol specific way. > > Signed-off-by: Fam Zheng > --- > block.c | 57 > +++ > i

Re: [Qemu-devel] [PATCH v6 04/22] block: Introduce image file locking

2016-06-07 Thread Fam Zheng
On Tue, 06/07 21:51, Jason Dillaman wrote: > On Fri, Jun 3, 2016 at 4:48 AM, Fam Zheng wrote: > > +typedef enum { > > +/* The values are ordered so that lower number implies higher > > restriction. > > + * Starting from 1 to make 0 an invalid value. > > + * */ > > +BDRV_LOCKF_EXCL

Re: [Qemu-devel] [PATCH v6 04/22] block: Introduce image file locking

2016-06-07 Thread Jason Dillaman
On Fri, Jun 3, 2016 at 4:48 AM, Fam Zheng wrote: > +typedef enum { > +/* The values are ordered so that lower number implies higher > restriction. > + * Starting from 1 to make 0 an invalid value. > + * */ > +BDRV_LOCKF_EXCLUSIVE = 1, > +BDRV_LOCKF_SHARED, > +BDRV_LOCKF_UN

[Qemu-devel] [PATCH v6 04/22] block: Introduce image file locking

2016-06-03 Thread Fam Zheng
Block drivers can implement this new operation .bdrv_lockf to actually lock the image in the protocol specific way. Signed-off-by: Fam Zheng --- block.c | 57 +++ include/block/block.h | 11 - include/block/block_int.h |