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

2013-12-01 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig h...@lst.de --- fs/hfsplus/acl.h |9 +-- fs/hfsplus/dir.c |1 + fs/hfsplus/inode.c |3 +- fs/hfsplus/posix_acl.c | 161 +--- fs/hfsplus/xattr.c |5 +- fs/hfsplus/xattr.h |2 -

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

2013-12-01 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig h...@lst.de --- fs/jffs2/acl.c | 134 +--- fs/jffs2/acl.h |7 +-- fs/jffs2/dir.c |1 + fs/jffs2/file.c|1 + fs/jffs2/fs.c |2 +- fs/jffs2/symlink.c |1 + fs/jffs2/xattr.c |

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

2013-12-01 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 h...@lst.de --- fs/gfs2/acl.c | 229 +++ fs/gfs2/acl.h |

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

2013-12-01 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 h...@lst.de --- fs/9p/acl.c |2 +- fs/btrfs/acl.c|2 +- fs/ext2/acl.c |2 +-

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

2013-12-01 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig h...@lst.de --- fs/reiserfs/acl.h |4 +- fs/reiserfs/file.c |1 + fs/reiserfs/namei.c |3 + fs/reiserfs/xattr.c |5 +- fs/reiserfs/xattr_acl.c | 175 --- 5 files changed, 36

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

2013-12-01 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 h...@lst.de --- fs/jfs/acl.c | 105 -- fs/jfs/file.c |4 +-

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

2013-12-01 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig h...@lst.de --- fs/ext2/acl.c | 176 - 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/acl.c |

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

2013-12-01 Thread Christoph Hellwig
Also create inodes with the proper mode instead of fixing it up later. Signed-off-by: Christoph Hellwig h...@lst.de --- fs/xfs/xfs_acl.c | 138 +++- fs/xfs/xfs_acl.h |9 +--- fs/xfs/xfs_iops.c | 39 --- fs/xfs/xfs_iops.h |

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

2013-12-01 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig h...@lst.de --- 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 +++

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

2013-12-01 Thread Christoph Hellwig
f2fs has some weird mode bit handling, so still using the old chmod code for now. Signed-off-by: Christoph Hellwig h...@lst.de --- fs/f2fs/acl.c | 140 +-- fs/f2fs/acl.h |1 + fs/f2fs/file.c |1 + fs/f2fs/namei.c |2 +

[PATCH 18/18] fs: remove generic_acl

2013-12-01 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 h...@lst.de --- fs/Kconfig |6 +- fs/Makefile |1 - fs/generic_acl.c| 184

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

2013-12-01 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig h...@lst.de --- 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, 79

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

2013-12-01 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 h...@lst.de --- fs/9p/acl.c |2 +- fs/btrfs/acl.c|2 +- fs/ext2/acl.c

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

2013-12-01 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 h...@lst.de --- fs/ocfs2/acl.c | 234 ++- fs/ocfs2/acl.h

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

2013-12-01 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 h...@lst.de --- fs/xattr_acl.c | 95 +++

Re: [PATCH 10/18] hfsplus: use generic posix ACL infrastructure

2013-12-01 Thread Vyacheslav Dubeyko
On Dec 1, 2013, at 2:59 PM, Christoph Hellwig wrote: Signed-off-by: Christoph Hellwig h...@lst.de --- fs/hfsplus/acl.h |9 +-- fs/hfsplus/dir.c |1 + fs/hfsplus/inode.c |3 +- fs/hfsplus/posix_acl.c | 161 +---

Re: 2 errors when scrubbing - but I don't know what they mean

2013-12-01 Thread Sebastian Ochmann
Hello, However, if you find such superblocks checksum mismatch very often during scrub, it maybe there are something wrong with disk! I'm sorry, but I don't think there's a problem with my disks because I was able to trigger the errors that increment the gen error counter during scrub on a

Re: missing /sbin/fsck.btrfs

2013-12-01 Thread Dave Chinner
On Tue, Nov 26, 2013 at 08:06:36PM -0700, Chris Murphy wrote: On Nov 26, 2013, at 5:51 PM, Dave Chinner da...@fromorbit.com wrote: On Mon, Nov 25, 2013 at 11:40:49PM -0700, Chris Murphy wrote: Hi, Is there supposed to be an /sbin/fsck.btrfs? I'm seeing a handful of threads

Re: 2 errors when scrubbing - but I don't know what they mean

2013-12-01 Thread Wang Shilong
On 12/02/2013 04:45 AM, Sebastian Ochmann wrote: Hello, However, if you find such superblocks checksum mismatch very often during scrub, it maybe there are something wrong with disk! I'm sorry, but I don't think there's a problem with my disks because I was able to trigger the errors that

Re: 2 errors when scrubbing - but I don't know what they mean

2013-12-01 Thread Wang Shilong
On 12/02/2013 09:30 AM, Wang Shilong wrote: On 12/02/2013 04:45 AM, Sebastian Ochmann wrote: Hello, However, if you find such superblocks checksum mismatch very often during scrub, it maybe there are something wrong with disk! I'm sorry, but I don't think there's a problem with my disks

[PATCH] Btrfs: fix wrong superblock generation mismatch while scrubbing superblocks

2013-12-01 Thread Wang Shilong
While scrubbing superblocks we will check every superblock's checksum and generation. However, checking superblock's generation may cause some problems, this is because tree log sync only flush first superblock , while this will cause other superblocks' generation mismatch. We only report

Re: [PATCH] Btrfs: fix wrong superblock generation mismatch while scrubbing superblocks

2013-12-01 Thread Wang Shilong
On 12/02/2013 10:52 AM, Wang Shilong wrote: While scrubbing superblocks we will check every superblock's checksum and generation. However, checking superblock's generation may cause some problems, this is because tree log sync only flush first superblock , while this will cause other

[PATCH 2/3] btrfs-progs: fix backref after init-csum-tree

2013-12-01 Thread Anand Jain
btrfsck reports backref error after running init-csum-tree btrfsck --init-csum-tree /dev/sdc btrfsck /dev/sdc :: ref mismatch on [29474816 16384] extent item 1, found 0 Backref 29474816 root 7 not referenced back 0x1101d30 Incorrect global backref count on 29474816 found 1 wanted 0 backpointer

[PATCH 3/3] btrfs-progs: qgroup destroy says create failed

2013-12-01 Thread Anand Jain
Signed-off-by: Anand Jain anand.j...@oracle.com --- cmds-qgroup.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds-qgroup.c b/cmds-qgroup.c index 5a393bd..957fbc9 100644 --- a/cmds-qgroup.c +++ b/cmds-qgroup.c @@ -99,8 +99,8 @@ static int qgroup_create(int create,

[PATCH 1/3] btrfs-progs: Turning ON incompat isn't an error

2013-12-01 Thread Anand Jain
Signed-off-by: Anand Jain anand.j...@oracle.com --- mkfs.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/mkfs.c b/mkfs.c index de1beed..0843600 100644 --- a/mkfs.c +++ b/mkfs.c @@ -1196,8 +1196,7 @@ static void process_fs_features(u64 flags) for (i = 0; i

Re: [PATCH 2/3] btrfs-progs: fix backref after init-csum-tree

2013-12-01 Thread Anand Jain
Further this needs your review. How should be a complete use case of this init-csum-tree feature. mainly how do we expect this work in the real scenario. what problem does this solve. Thanks, Anand On 12/02/13 02:11 PM, Anand Jain wrote: btrfsck reports backref error after running

[PATCH] Btrfs-progs: add option to skip whether a scrub has started/resumed in userspace

2013-12-01 Thread Wang Shilong
I hit a problem that i can not start scrub when i am trying to track superblock generation mismatch problems. The fact is that we are trying to check whether we have started a scrub operation in userspace, this will make us can't start scrub if that record file is damaged itself. By adding a

[RFC PATCH] Btrfs: Add linear chunk allocation support.

2013-12-01 Thread chandan
This patch implements the *core* of the idea suggested at https://btrfs.wiki.kernel.org/index.php/Project_ideas#Linear_chunk_allocation_mode. Other required changes (e.g. balance/restripe) will be made based on the reviews obtained for this patch. On a multi-disk filesystem instance using single