[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Libguestfs] [PATCH] tests: regressions: make test-big-
Re: [Qemu-block] [Libguestfs] [PATCH] tests: regressions: make test-big-heap use a temporary empty file
Wed, 21 Mar 2018 08:45:38 -0500
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
[adding qemu lists]
On 03/21/2018 07:51 AM, Richard W.M. Jones wrote:
On Wed, Mar 21, 2018 at 01:44:17PM +0100, Pino Toscano wrote:
Newer versions of qemu use file locking for the images by default, and
apparently that does not work with /dev/null. Since this test just
calls qemu-img to get the format of an empty image, create a temporary
ACK, but feels like this is a bug in qemu-img to me.
You're right that file locking on a character device like /dev/null is
not going to work as expected, but is it a case where fcntl() actually
fails, or is it worse where the fcntl() claiming the locks "succeeds"
but doesn't do what we want? That is, what were the actual error
messages you ran into?
Is it something where qemu should instead be checking fstat() results
and only doing locking on regular files and block devices? At any rate,
I agree that qemu itself should behave nicer on attempts to use
/dev/null as an image.
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
- Re: [Qemu-block] [Libguestfs] [PATCH] tests: regressions: make test-big-heap use a temporary empty file,
Eric Blake <=