generic: add dir fsync test

This test is motivated by a bug found in btrfs when replaying a
directory from the fsync log. The issue was that if a directory
entry is both found in the persisted metadata and in the fsync
log, at log replay time the directory got set with a wrong i_size.
This had the consequence of not being able to rmdir empty
directories (failed with errno ENOTEMPTY).
This was fixed in btrfs with the following linux kernel patch:

     Btrfs: fix directory recovery from fsync log

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Filipe Manana
2014-09-29 13:26:32 +10:00
committed by Dave Chinner
parent 108634504c
commit 48c45430ce
3 changed files with 108 additions and 0 deletions
+1
View File
@@ -36,6 +36,7 @@
031 auto quick prealloc rw
032 auto quick rw
033 auto quick rw
034 auto quick metadata log
053 acl repair auto quick
062 attr udf auto quick
068 other auto freeze dangerous stress