]> git.baikalelectronics.ru Git - kernel.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)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:50 +0000 (15:12 -0400)
commit44ddfe5f930f622ae93c185b41bc5c3d7f5678f7
tree7f06f5576552498dd902860d77564436a2ef1606
parent291aa6b9ee3f8598e8aa41a15f758a04e2c1dea3
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>
fs/btrfs/ioctl.c