qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Libguestfs] [PATCH] tests: regressions: make test-big-


From: Eric Blake
Subject: Re: [Qemu-devel] [Libguestfs] [PATCH] tests: regressions: make test-big-heap use a temporary empty file
Date: Wed, 21 Mar 2018 08:45:38 -0500
User-agent: 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
one instead.

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]