All of lore.kernel.org
 help / color / mirror / Atom feed
* Can someone explain s_xattr field in the superblock?
@ 2011-05-28 15:52 Sam Gandhi
  2011-05-31 23:28 ` Ted Ts'o
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Gandhi @ 2011-05-28 15:52 UTC (permalink / raw)
  To: linux-kernel

Hello,

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] 4+ messages in thread

* 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; 4+ 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] 4+ messages in thread

* Re: 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, 0 replies; 4+ 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] 4+ messages in thread

* Re: Can someone explain s_xattr field in the superblock?
  2011-05-28 15:52 Can someone explain s_xattr field in the superblock? Sam Gandhi
@ 2011-05-31 23:28 ` Ted Ts'o
  0 siblings, 0 replies; 4+ messages in thread
From: Ted Ts'o @ 2011-05-31 23:28 UTC (permalink / raw)
  To: Sam Gandhi; +Cc: linux-kernel

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

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

end of thread, other threads:[~2011-06-01  2:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-28 15:52 Can someone explain s_xattr field in the superblock? Sam Gandhi
2011-05-31 23:28 ` Ted Ts'o
  -- strict thread matches above, loose matches on Subject: below --
2011-05-31 18:23 Sam Gandhi
2011-05-31 18:47 ` Jan Kara

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.