linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can someone explain s_xattr field in the superblock?
@ 2011-05-31 18:23 Sam Gandhi
  2011-05-31 18:47 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: Sam Gandhi @ 2011-05-31 18:23 UTC (permalink / raw)
  To: linux-fsdevel

Hello,

[ Sorry if this duplicate to some, I posted this message earlier to
linux-kernel probably was not appropriate ]

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?

Thanks.

-Sam

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Can someone explain s_xattr field in the superblock?
  2011-05-31 18:23 Can someone explain s_xattr field in the superblock? Sam Gandhi
@ 2011-05-31 18:47 ` Jan Kara
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2011-05-31 18:47 UTC (permalink / raw)
  To: Sam Gandhi; +Cc: linux-fsdevel

  Hello,

On Tue 31-05-11 11:23:33, 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.
  Only filesystems that support extended attributes setup s_xattr.

> 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 tells VFS what callbacks to call when user tries to obtain/change
extended attributes. If s_xattr is left at NULL, user will get EOPNOTSUPP
or similar error...

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-31 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-31 18:23 Can someone explain s_xattr field in the superblock? Sam Gandhi
2011-05-31 18:47 ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).