- 16 Dec, 2009 1 commit
-
-
Christoph Hellwig authored
Add a flags argument to struct xattr_handler and pass it to all xattr handler methods. This allows using the same methods for multiple handlers, e.g. for the ACL methods which perform exactly the same action for the access and default ACLs, just using a different underlying attribute. With a little more groundwork it'll also allow sharing the methods for the regular user/trusted/secure handlers in extN, ocfs2 and jffs2 like it's already done for xfs in this patch. Also change the inode argument to the handlers to a dentry to allow using the handlers mechnism for filesystems that require it later, e.g. cifs. [with GFS2 bits updated by Steven Whitehouse <swhiteho@redhat.com>] Signed-off-by:
Christoph Hellwig <hch@lst.de> Reviewed-by:
James Morris <jmorris@namei.org> Acked-by:
Joel Becker <joel.becker@oracle.com> Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
-
- 03 Dec, 2009 1 commit
-
-
Steven Whitehouse authored
To prepare for support for caching of ACLs, this cleans up the GFS2 ACL support by pushing the xattr code back into xattr.c and changing the acl_get function into one which only returns ACLs so that we can drop the caching function into it shortly. Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
- 14 Sep, 2009 1 commit
-
-
Steven Whitehouse authored
Reported-by:
Daniel Walker <dwalker@fifo99.com> Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
- 26 Aug, 2009 2 commits
-
-
Steven Whitehouse authored
Use the more conventional name for the extended attribute support code. Update all the places which care. Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
Steven Whitehouse authored
This has been on my list for some time. We need to change the way in which we handle extended attributes to allow faster file creation times (by reducing the number of transactions required) and the extended attribute code is the main obstacle to this. In addition to that, the VFS provides a way to demultiplex the xattr calls which we ought to be using, rather than rolling our own. This patch changes the GFS2 code to use that VFS feature and as a result the code shrinks by a couple of hundred lines or so, and becomes easier to read. I'm planning on doing further clean up work in this area, but this patch is a good start. The cleaned up code also uses the more usual "xattr" shorthand, I plan to eliminate the use of "eattr" eventually and in the mean time it serves as a flag as to which bits of the code have been updated. Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
- 30 Nov, 2006 1 commit
-
-
Al Viro authored
Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk> Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
- 05 Sep, 2006 2 commits
-
-
Steven Whitehouse authored
As per Jan Engelhardt's request and also a few of my own. It has been possible to add a few most const to the code as a result of the change in gfs2_ea_name2type. Cc: Jan Engelhardt <jengelh@linux01.gwdg.de> Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
Steven Whitehouse authored
As per Jan Engelhardt's comments, this should make all the headers compile on their own by including and/or declaring structures early. Cc: Jan Engelhardt <jengelh@linux01.gwdg.de> Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
- 04 Sep, 2006 1 commit
-
-
Steven Whitehouse authored
This makes all fixed size types have consistent names. Cc: Jan Engelhardt <jengelh@linux01.gwdg.de> Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
- 01 Sep, 2006 1 commit
-
-
Steven Whitehouse authored
As per comments from Jan Engelhardt <jengelh@linux01.gwdg.de> this updates the copyright message to say "version" in full rather than "v.2". Also incore.h has been updated to remove forward structure declarations which are not required. The gfs2_quota_lvb structure has now had endianess annotations added to it. Also quota.c has been updated so that we now store the lvb data locally in endian independant format to avoid needing a structure in host endianess too. As a result the endianess conversions are done as required at various points and thus the conversion routines in lvb.[ch] are no longer required. I've moved the one remaining constant in lvb.h thats used into lm.h and removed the unused lvb.[ch]. I have not changed the HIF_ constants. That is left to a later patch which I hope will unify the gh_flags and gh_iflags fields of the struct gfs2_holder. Cc: Jan Engelhardt <jengelh@linux01.gwdg.de> Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
- 22 May, 2006 1 commit
-
-
Ryan O'Hara authored
This adds support to GFS2 for selinux extended attributes. There is a known bug in gfs2_ea_get() which is believed to be independant of this patch. Further patches will follow once that bug is fixed in order to make GFS2 use as much of the generic eattr infrastructure as possible. Signed-off-by:
Ryan O'Hara <rohara@redhat.com> Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
- 18 May, 2006 1 commit
-
-
Steven Whitehouse authored
Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
- 28 Apr, 2006 1 commit
-
-
Adrian Bunk authored
This patch contains the following possible cleanups: - make needlessly global code static - #if 0 unused functions - remove the following global function that was both unused and unimplemented: - super.c: gfs2_do_upgrade() Signed-off-by:
Adrian Bunk <bunk@stusta.de> Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
- 27 Feb, 2006 1 commit
-
-
Steven Whitehouse authored
As suggested by Pekka Enberg <penberg@cs.helsinki.fi>. The DIV_RU macro is renamed DIV_ROUND_UP and and moved to kernel.h The other macros are gone from gfs2.h as (although not requested by Pekka Enberg) are a number of included header file which are now included individually. The inode number comparison function is now an inline function. The DT2IF and IF2DT may be addressed in a future patch. Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
- 18 Jan, 2006 1 commit
-
-
Steven Whitehouse authored
Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-
- 16 Jan, 2006 1 commit
-
-
David Teigland authored
This patch contains all the core files for GFS2. Signed-off-by:
David Teigland <teigland@redhat.com> Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
-