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
See man openat or the kernel definition for O_TMPFILE.
Regardless, I'm submitting a patch to properly translate the O_TMPFILE.