Re: Can someone explain s_xattr field in the superblock?

From: Ted Ts'o
Date: Tue May 31 2011 - 22:22:36 EST


On Sat, May 28, 2011 at 08:52:41AM -0700, Sam Gandhi wrote:
>
> I have seen some file systems like jffs2/ext4 etc setup the s_xattr
> field in the superblock structure.
> But there are files systems that do not initialize s_xattr field in
> the superblock.
>
> Can someone kindly explain what functionality does s_xattr on super
> block provides? What kinds of things file system wouldn't be able to
> do if the superblock doesn't have this initialized?

It provides support for extended attributes, which is often
abbreviated as (not surpisingly) xattr. Some file systems don't
support extended attributes, so they don't need to setup s_xattr.

For more information, read the attr(5) man page: "man 5 attr".

- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/