[Ocfs2-devel] [PATCH] ocfs2: Don't print error when listing too many xattrs.

Joel Becker Joel.Becker at oracle.com
Mon May 4 10:06:24 PDT 2009


On Mon, May 04, 2009 at 05:18:09AM +0800, Tao Ma wrote:
> Currently, when listing xattrs, kernel define XATTR_LIST_MAX as 65536
> in include/linux/limits.h, so it can't handle too many xattrs.
> 
> But with ocfs2 xattr tree, we actually have no limit for the number.
> And it will pollute the message with something like this when listing.
> (27738,0):ocfs2_iterate_xattr_buckets:3158 ERROR: status = -34
> (27738,0):ocfs2_xattr_tree_list_index_block:3264 ERROR: status = -34
> 
> So don't print "ERROR" message as this is not an ocfs2 error.

	Hmm, but this will stop iteration of the xattrs right where we
hit the large one.  I don't think that's correct.  At the very least, we
should go on listing with the following xattrs.
	Now, the xattr with a too-long name - should we skip it, or
should we list a truncated name?  That I'm not sure of.

Joel

-- 

 print STDOUT q
 Just another Perl hacker,
 unless $spring
	- Larry Wall

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-devel mailing list