All of lore.kernel.org
 help / color / mirror / Atom feed
From: Riku Voipio <riku.voipio@iki.fi>
To: Bug 1709170 <1709170@bugs.launchpad.net>
Cc: qemu-devel@nongnu.org, thiago@kde.org
Subject: Re: [Qemu-devel] [Bug 1709170] [NEW] QEMU fails to honor O_TMPFILE
Date: Tue, 8 Aug 2017 13:19:04 +0000	[thread overview]
Message-ID: <20170808131904.GA29288@kos.to> (raw)
In-Reply-To: <150213708469.19430.16716526584783151905.malonedeb@chaenomeles.canonical.com>

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

  parent reply	other threads:[~2017-08-08 13:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-07 20:18 [Qemu-devel] [Bug 1709170] [NEW] QEMU fails to honor O_TMPFILE Thiago Macieira
2017-08-08  6:47 ` [Qemu-devel] [Bug 1709170] " Riku Voipio
2017-08-08 13:19 ` Riku Voipio [this message]
2017-08-08 13:21 ` [Qemu-devel] [Bug 1709170] [PATCH] linux-user: fix O_TMPFILE handling Riku Voipio
2017-08-08 21:56 ` [Qemu-devel] [Bug 1709170] Re: QEMU fails to honor O_TMPFILE Thiago Macieira
2017-12-15 15:36 ` Thomas Huth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170808131904.GA29288@kos.to \
    --to=riku.voipio@iki.fi \
    --cc=1709170@bugs.launchpad.net \
    --cc=qemu-devel@nongnu.org \
    --cc=thiago@kde.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.