]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: only inherit btrfs specific flags when creating files
authorJosef Bacik <josef@redhat.com>
Tue, 27 Sep 2011 15:01:30 +0000 (11:01 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:27 +0000 (21:20 -0500)
commit282d2c73d266068aa16df0f78e20105fca5f9931
tree77a31085aa0965fdbf7583c504d99184b4fcbd99
parent3c2288491170f7fe3129a0c3305abe228148913e
Btrfs: only inherit btrfs specific flags when creating files

Xfstests 79 was failing because we were inheriting the S_APPEND flag when we
weren't supposed to.  There isn't any specific documentation on this so I'm
taking the test as the standard of how things work, and having S_APPEND set on a
directory doesn't mean that S_APPEND gets inherited by its children according to
this test.  So only inherit btrfs specific things.  This will let us set
compress/nocompress on specific directories and everything in the directories
will inherit this flag, same with nodatacow.  With this patch test 79 passes.
Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
(cherry picked from commit e27425d614d68daa08f60735982a7c3a0230e855)
fs/btrfs/ioctl.c