Re: [Qemu-devel] [PATCH v13 19/20] file-posix: Add image locking in perm operations

2017-04-20 Thread Kevin Wolf
Am 20.04.2017 um 09:52 hat Fam Zheng geschrieben: > virtlockd in libvirt locks the first byte, so we start looking at the > file bytes from 0x10. > > The complication is in the transactional interface. To make the reopen > logic managable, and allow better reuse, the code is internally >

Re: [Qemu-devel] [PATCH v13 19/20] file-posix: Add image locking in perm operations

2017-04-20 Thread Fam Zheng
On Thu, 04/20 15:52, Fam Zheng wrote: > virtlockd in libvirt locks the first byte, so we start looking at the > file bytes from 0x10. > > The complication is in the transactional interface. To make the reopen > logic managable, and allow better reuse, the code is internally > organized with a

[Qemu-devel] [PATCH v13 19/20] file-posix: Add image locking in perm operations

2017-04-20 Thread Fam Zheng
virtlockd in libvirt locks the first byte, so we start looking at the file bytes from 0x10. The complication is in the transactional interface. To make the reopen logic managable, and allow better reuse, the code is internally organized with a table from old mode to the new one. Signed-off-by: