From: Andreas Gruenbacher <agruen@suse.de>
To: Hugh Dickins <hugh@veritas.com>, Rob MacKinnon <c4blem0nkey@gmail.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>, linux-kernel@vger.kernel.org
Subject: Re: tmpfs support of xattrs?
Date: Sun, 26 Oct 2008 14:25:58 +0100 [thread overview]
Message-ID: <200810261425.58892.agruen@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0810261148480.14974@blonde.site>
On Sunday, 26 October 2008 13:26:35 Hugh Dickins wrote:
> On Sat, 25 Oct 2008, Rob MacKinnon wrote:
> > The background: So during the initial configuration of a box I enabled
> > the xattr flags for ext3 and options of xattr in coreutils, and at the
> > time didn't realize that I'd hit a snag that would finally annoy me
> > enough after a month of getting a non-fatal error messages from cp "cp:
> > listing attributes of `/dev/null`: Invalid argument" to spend half a day
> > researching the cause and a potential solution.
> >
> > Setup: udev mounts a tmpfs to /dev then fills it with device nodes.
> > Problem: the resulting tmpfs has no xattr support.
> > Therefore: Tmpfs without xattrs, and coreutils and everywhere else with
> > xattr support, cp freaks.
> >
> > Is there sometime in the forseable future when the tmpfs module will
> > support for xattrs in the stable branch, or should I "holler at the
> > maintainers of coreutils to fix their broken code in cp". Even better
> > (and I like this option the most) a little of both?
>
> I've not seen "cp: listing attributes of `/dev/null': Invalid argument"
> messages (or.. do I have a dim recollection of them once upon a time?).
> I would certainly get irritated by them if I did, and want to fix them.
> I tried "cp /dev/null temp" on a few distros just now but not seen it.
As Hugh pointed out already, tmpfs does support xattrs since quite a while, so
enabling that should fix the symptoms. Independent of that, cp must of course
work correctly on filesystems that don't have xattrs. Those filesystems are
not supposed to return EINVAL, though.
Could you please run cp under strace to show us what's happening at the
syscall level (and perhaps under ltrace in addition to see the library level
as well)?
If the error happens at the syscall level (*listxattr), then which kernel is
it exactly, and where can I find its sources?
Thanks,
Andreas
next prev parent reply other threads:[~2008-10-26 13:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-25 8:49 tmpfs support of xattrs? Rob MacKinnon
2008-10-25 21:59 ` H. Peter Anvin
2008-10-26 12:26 ` Hugh Dickins
2008-10-26 13:25 ` Andreas Gruenbacher [this message]
2008-10-27 20:14 ` Rob MacKinnon
2008-10-27 20:25 ` Stephen Smalley
2008-10-27 20:53 ` Andreas Gruenbacher
2008-10-27 21:12 ` Rob MacKinnon
2008-10-28 5:51 ` Casey Schaufler
2008-10-29 15:15 ` [PATCH] smack inode_listsecurity fix Casey Schaufler
2008-10-29 15:56 ` tmpfs support of xattrs? Rob MacKinnon
2008-10-29 16:12 ` Casey Schaufler
2008-10-27 21:00 ` Rob MacKinnon
2008-10-27 21:54 ` Casey Schaufler
-- strict thread matches above, loose matches on Subject: below --
2008-10-25 8:27 Rob MacKinnon
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=200810261425.58892.agruen@suse.de \
--to=agruen@suse.de \
--cc=c4blem0nkey@gmail.com \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sds@tycho.nsa.gov \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox