Re: [Qemu-devel] [PATCH for-2.7 v2 00/17] block: Lock images when opening

2016-04-19 Thread Fam Zheng
On Mon, 04/18 10:53, Daniel P. Berrange wrote: > If you want todo locks inside of QEMU, you really can't rely > on delegating handling to each individual block driver instance. > You need to have a process global registry of which files you have > already locked, and check against that registry bef

Re: [Qemu-devel] [PATCH for-2.7 v2 00/17] block: Lock images when opening

2016-04-18 Thread Daniel P. Berrange
On Fri, Apr 15, 2016 at 11:27:50AM +0800, Fam Zheng wrote: > v2: Lock byte 1 in the image itself, no lock file. [Daniel] > Fix migration (image are not locked in bdrv_open_common if > BDRV_O_INACTIVE). [Denis] > Simplify test case fixes because of the above. > Add lock for RBD. >

Re: [Qemu-devel] [PATCH for-2.7 v2 00/17] block: Lock images when opening

2016-04-16 Thread Denis V. Lunev
On 04/15/2016 06:27 AM, Fam Zheng wrote: v2: Lock byte 1 in the image itself, no lock file. [Daniel] Fix migration (image are not locked in bdrv_open_common if BDRV_O_INACTIVE). [Denis] Simplify test case fixes because of the above. Add lock for RBD. Add "-L" option in "q

[Qemu-devel] [PATCH for-2.7 v2 00/17] block: Lock images when opening

2016-04-14 Thread Fam Zheng
v2: Lock byte 1 in the image itself, no lock file. [Daniel] Fix migration (image are not locked in bdrv_open_common if BDRV_O_INACTIVE). [Denis] Simplify test case fixes because of the above. Add lock for RBD. Add "-L" option in "qemu-img" and "qemu-nbd" too. [Denis] Add tes