[Cluster-devel] [PATCH 07/18] btrfs: use generic posix ACL infrastructure

2013-12-11 Thread Christoph Hellwig
Also don't bother to set up a .get_acl method for symlinks as we do not support access control (ACLs or even mode bits) for symlinks in Linux. Signed-off-by: Christoph Hellwig --- fs/btrfs/acl.c | 142 +++--- fs/btrfs/ctree.h |7 +-- fs/btrf

[Cluster-devel] [PATCH 00/18] Consolidate Posix ACL implementation V2

2013-12-11 Thread Christoph Hellwig
This series consolidates the various cut'n'pasted Posix ACL implementations into a single common one based on the ->get_acl method Linus added a while ago and a new ->set_acl counterpart. This remove ~1800 lines of code and provides a single place to implement various nasty little gems of the sema

[Cluster-devel] [PATCH 03/18] fs: add a set_acl inode operation

2013-12-11 Thread Christoph Hellwig
This will allow moving all the Posix ACL handling into the VFS and clean up tons of cruft in the filesystems. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara --- include/linux/fs.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index 121f11

[Cluster-devel] [PATCH 04/18] fs: add generic xattr_acl handlers

2013-12-11 Thread Christoph Hellwig
With the ->set_acl inode operation we can implement the Posix ACL xattr handlers in generic code instead of duplicating them all over the tree. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara --- fs/xattr_acl.c | 102 +++ include/linu

[Cluster-devel] [PATCH 14/18] xfs: use generic posix ACL infrastructure

2013-12-11 Thread Christoph Hellwig
Also don't bother to set up a .get_acl method for symlinks as we do not support access control (ACLs or even mode bits) for symlinks in Linux, and create inodes with the proper mode instead of fixing it up later. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner --- fs/xfs/xfs_acl.c

[Cluster-devel] [PATCH 02/18] fs: add get_acl helper

2013-12-11 Thread Christoph Hellwig
Factor out the code to get an ACL either from the inode or disk from check_acl, so that it can be used elsewhere later on. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara --- fs/namei.c| 24 +++- fs/posix_acl.c| 26 +

[Cluster-devel] [PATCH 16/18] gfs2: use generic posix ACL infrastructure

2013-12-11 Thread Christoph Hellwig
This contains some major refactoring for the create path so that inodes are created with the right mode to start with instead of fixing it up later. Signed-off-by: Christoph Hellwig --- fs/gfs2/acl.c | 234 +++ fs/gfs2/acl.h |4 +- fs/

[Cluster-devel] [PATCH 17/18] nfs: use generic posix ACL infrastructure for v3 Posix ACLs

2013-12-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/nfs/inode.c |4 - fs/nfs/nfs3acl.c | 287 +--- fs/nfs/nfs3proc.c | 26 +++-- fs/nfs/nfs3super.c |3 + include/linux/nfs_fs.h | 10 +- 5 files changed, 76 insertions(+), 254 dele

[Cluster-devel] [PATCH 12/18] ocfs2: use generic posix ACL infrastructure

2013-12-11 Thread Christoph Hellwig
This contains some major refactoring for the create path so that inodes are created with the right mode to start with instead of fixing it up later. Signed-off-by: Christoph Hellwig --- fs/ocfs2/acl.c | 234 ++- fs/ocfs2/acl.h | 13

[Cluster-devel] [PATCH 06/18] fs: make posix_acl_create more useful

2013-12-11 Thread Christoph Hellwig
Rename the current posix_acl_created to __posix_acl_create and add a fully featured helper to set up the ACLs on file creation that uses get_acl(). Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara --- fs/9p/acl.c |2 +- fs/btrfs/acl.c|2 +- fs/ext2/acl.c

[Cluster-devel] [PATCH 09/18] f2fs: use generic posix ACL infrastructure

2013-12-11 Thread Christoph Hellwig
f2fs has some weird mode bit handling, so still using the old chmod code for now. Signed-off-by: Christoph Hellwig Reviewed-by: Jaegeuk Kim --- fs/f2fs/acl.c | 174 ++- fs/f2fs/acl.h |7 +-- fs/f2fs/f2fs.h |4 ++ fs/f2fs/file.c

[Cluster-devel] [PATCH 01/18] reiserfs: prefix ACL symbols with reiserfs_

2013-12-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara --- fs/reiserfs/xattr_acl.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/fs/reiserfs/xattr_acl.c b/fs/reiserfs/xattr_acl.c index 06c04f7..6f721ea 100644 --- a/fs/reiserfs/xattr_acl.c +++ b/fs/r

[Cluster-devel] [PATCH 15/18] jfs: use generic posix ACL infrastructure

2013-12-11 Thread Christoph Hellwig
Copy the scheme I introduced to btrfs many years ago to only use the xattr handler for ACLs, but pass plain attrs straight through. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Kleikamp --- fs/jfs/acl.c | 105 -- fs/jfs/file.c |

[Cluster-devel] [PATCH 11/18] jffs2: use generic posix ACL infrastructure

2013-12-11 Thread Christoph Hellwig
Also don't bother to set up a .get_acl method for symlinks as we do not support access control (ACLs or even mode bits) for symlinks in Linux. Signed-off-by: Christoph Hellwig --- fs/jffs2/acl.c | 141 fs/jffs2/acl.h |7 +-- fs/jf

[Cluster-devel] [PATCH 18/18] fs: remove generic_acl

2013-12-11 Thread Christoph Hellwig
And instead convert tmpfs to use the new generic ACL code, with two stub methods provided for in-memory filesystems. Signed-off-by: Christoph Hellwig --- fs/Kconfig |6 +- fs/Makefile |1 - fs/generic_acl.c| 184 --

[Cluster-devel] [PATCH 05/18] fs: make posix_acl_chmod more useful

2013-12-11 Thread Christoph Hellwig
Rename the current posix_acl_chmod to __posix_acl_chmod and add a fully featured ACL chmod helper that uses the ->set_acl inode operation. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara --- fs/9p/acl.c |2 +- fs/btrfs/acl.c|2 +- fs/ext2/acl.c

[Cluster-devel] [PATCH 10/18] hfsplus: use generic posix ACL infrastructure

2013-12-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig Reviewed-by: Vyacheslav Dubeyko --- fs/hfsplus/acl.h |9 +-- fs/hfsplus/dir.c |1 + fs/hfsplus/inode.c |3 +- fs/hfsplus/posix_acl.c | 168 +--- fs/hfsplus/xattr.c |5 +- fs/hfsplus/

[Cluster-devel] [PATCH 13/18] reiserfs: use generic posix ACL infrastructure

2013-12-11 Thread Christoph Hellwig
Also don't bother to set up a .get_acl method for symlinks as we do not support access control (ACLs or even mode bits) for symlinks in Linux. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara --- fs/reiserfs/acl.h |4 +- fs/reiserfs/file.c |1 + fs/reiserfs/namei.c

[Cluster-devel] [PATCH 08/18] ext2/3/4: use generic posix ACL infrastructure

2013-12-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara --- fs/ext2/acl.c | 188 -- fs/ext2/acl.h |8 +- fs/ext2/file.c |1 + fs/ext2/inode.c |2 +- fs/ext2/namei.c |2 + fs/ext2/xattr.c |8 +- fs/ext2/xattr.h |2 - fs/ext3

Re: [Cluster-devel] [PATCH 16/18] gfs2: use generic posix ACL infrastructure

2013-12-11 Thread Steven Whitehouse
Hi, On Wed, 2013-12-11 at 02:42 -0800, Christoph Hellwig wrote: > plain text document attachment > (0016-gfs2-use-generic-posix-ACL-infrastructure.patch) > This contains some major refactoring for the create path so that > inodes are created with the right mode to start with instead of > fixing it

[Cluster-devel] Fwd: some fence_virsh, fene_apc patches for RHEL6 backports

2013-12-11 Thread Bogdan Dobrelya
Hello. Description for suggested patches: fence_virsh: I believe the uuid support is a good idea, cuz every spawned VM would have an UUID in its dmidecode, equal to its `virsh domuuid`. Thus, to fence it, we should not either know the domain name, nor query libvirt to find it out. fence_apc: As