generic: add dir fsync test
authorFilipe Manana <fdmanana@suse.com>
Mon, 29 Sep 2014 03:26:32 +0000 (13:26 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 29 Sep 2014 03:26:32 +0000 (13:26 +1000)
commit48c45430ce4b44aab123f641a8f8daf46749a26e
tree2e289c0f3d58e997dbef6d20a12679aeff7fae4d
parent108634504c7e309af9be6be17f039c8cff61bbac
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>
tests/generic/034 [new file with mode: 0755]
tests/generic/034.out [new file with mode: 0644]
tests/generic/group