btrfs: add test for btrfs clone + fsync durability
authorFilipe David Borba Manana <fdmanana@gmail.com>
Tue, 17 Jun 2014 23:30:29 +0000 (09:30 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 17 Jun 2014 23:30:29 +0000 (09:30 +1000)
commit7b564f39efbefab68fadc823b0c40ca8bfaeeed2
tree87a42ac27b408c4c37460373002979ef82c065b5
parent28f8c4c7fbfda4aa321185cab0cbbca19cbe6954
btrfs: add test for btrfs clone + fsync durability

Regression test for btrfs ioctl clone operation + fsync + log
recovery. The issue was that doing an fsync after cloning into
a file didn't gave any persistence guarantees as it should.
What happened was that the in memory metadata (extent maps)
weren't updated, which made the fsync code not able to detect
that file data has been changed and must be persisted to the
log.

This issue is fixed by the following linux kernel btrfs patch:

    Btrfs: make fsync work after cloning into a file

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/056 [new file with mode: 0755]
tests/btrfs/056.out [new file with mode: 0644]
tests/btrfs/group