On Sun, 15 Mar 2009, Christoph Hellwig wrote: > On Tue, Mar 10, 2009 at 01:11:50PM +1100, James Morris wrote: > > Recently, I've been working on an implementation of an xattr protocol for > > NFSv3 (based on the Irix stuff). > > > > The first logical step is to convert the existing xattr use to the generic > > xattr API code. I figured this might be a useful change in its own right, > > per the patch below. It seems to work ok with various hand-made tests of > > ACL operations and xattr syscalls. > > > > Please review (and apply if it looks ok). > > The get/srt bits looks good to me, bu I really don't see the point > of using generic_listxattr. I think it's clearer and cleaner to convert all of the ops over to the generic API, rather than, say, leaving in #ifdefs and similar code just for listxattr. Also, this is part of preparation for adding other xattr handlers to the NFS client code. The current xattr functions assume that ACLs are the only types attributes being managed, and the generic handler code for listxattr is necessary to manage others. If it's not acceptable as-is, I'll just batch it up with the rest of the changes later. - James -- James Morris <jmorris@xxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html