Re: [PATCH 2/2] afs: Add metadata xattrs

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
2017-07-08 19:44:55
Also in
linux-fsdevel, lkml
Reply to
Andreas Dilger, 2017-07-06
On Thu, Jul 6, 2017 at 11:27 AM, Andreas Dilger [off-list ref] wrote:
IMHO, xattrs are a fairly reasonable interface for accessing filesystem-specific
attributes of a file that do not have generic equivalents on other filesystems.
I can't see there being much value to having AFS-specific syscalls, and xattrs
also are more easily accessed by generic userspace tools than ioctl() calls.
Yeah, I think attributes are likely much better than some random crazy
ioctl interface. They can be listed with generic tools, and have
various scripting interfaces in ways that ioctl's do not sanely have.

And people tend to be encouraged to use good descriptive interfaces
due to attributes having *names* instead of numbers.

That said, if these things have some actual generic cross-filesystem
meaning, then some ad-hoc fs attribute might be debatable. It might
still be an attribute, but perhaps better in an actual generic
namespace.

I haven't looked at these particular attibutes yet, though.

                 Linus
Thread (6 messages) 6 messages, 6 authors, last reply 2017-07-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help