[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for-2.7 00/15] block: Lock images when opening
From: |
Richard W.M. Jones |
Subject: |
Re: [Qemu-devel] [PATCH for-2.7 00/15] block: Lock images when opening |
Date: |
Sun, 17 Apr 2016 20:15:52 +0100 |
User-agent: |
Mutt/1.5.20 (2009-12-10) |
On Wed, Apr 13, 2016 at 05:09:49PM +0800, Fam Zheng wrote:
> Underneath is the fcntl syscall that locks the local file, similar to what is
> already used in libvirt virtlockd. Also because of that, we cannot directly
> apply fcntl lock on the image file itself, instead we open and lock
> "/var/tmp/.qemu-$sha1.lock", where $sha1 is derived
Any particular reason why not /tmp instead of /var/tmp? I assume
these are zero-sized or otherwise small files.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
- [Qemu-devel] [PATCH for-2.7 14/15] ide-test: Specify "lock-image=off" in command lines, (continued)
- [Qemu-devel] [PATCH for-2.7 14/15] ide-test: Specify "lock-image=off" in command lines, Fam Zheng, 2016/04/13
- Re: [Qemu-devel] [PATCH for-2.7 00/15] block: Lock images when opening, Daniel P. Berrange, 2016/04/13
- Re: [Qemu-devel] [PATCH for-2.7 00/15] block: Lock images when opening, Denis V. Lunev, 2016/04/13
- Re: [Qemu-devel] [PATCH for-2.7 00/15] block: Lock images when opening, Fam Zheng, 2016/04/13
- Re: [Qemu-devel] [PATCH for-2.7 00/15] block: Lock images when opening, Denis V. Lunev, 2016/04/14
- Re: [Qemu-devel] [PATCH for-2.7 00/15] block: Lock images when opening, Fam Zheng, 2016/04/14
- Re: [Qemu-devel] [PATCH for-2.7 00/15] block: Lock images when opening, Denis V. Lunev, 2016/04/14
- Re: [Qemu-devel] [PATCH for-2.7 00/15] block: Lock images when opening, Fam Zheng, 2016/04/14
- Re: [Qemu-devel] [PATCH for-2.7 00/15] block: Lock images when opening, Denis V. Lunev, 2016/04/14
Re: [Qemu-devel] [PATCH for-2.7 00/15] block: Lock images when opening,
Richard W.M. Jones <=