qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [Bug 1709170] [NEW] QEMU fails to honor O_TMPFILE


From: Riku Voipio
Subject: Re: [Qemu-devel] [Bug 1709170] [NEW] QEMU fails to honor O_TMPFILE
Date: Tue, 8 Aug 2017 13:19:04 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Aug 07, 2017 at 08:18:04PM -0000, Thiago Macieira wrote:
> Public bug reported:
> 
> When making a call like
> 
>   open("/tmp", O_TMPFILE | O_RDWR);
> 
> under QEMU, we ged -EISDIR.
> 
> Under any kernel 3.11 or later, we are supposed to get an unnamed file
> in /tmp. In case the filesystem for /tmp does not support unnamed files,
> we are supposed to get EOPNOTSUPP.

Actually, -EISDIR is valid error when underlying system doesn't support 
O_TMPFILE.
See man openat or the kernel definition for O_TMPFILE.

Regardless, I'm submitting a patch to properly translate the O_TMPFILE.

Riku



reply via email to

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