mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
72da52702a
Test that if we move one file between directories, fsync the parent directory of the old directory, power fail and remount the filesystem, the file is not lost and it's located at the destination directory. This is motivated by a bug found in btrfs, which is fixed by the patch (for the linux kernel) titled: "Btrfs: fix file loss on log replay after renaming a file and fsync" Tested against ext3, ext4, xfs, f2fs and reiserfs. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
20 lines
224 B
Plaintext
20 lines
224 B
Plaintext
QA output created by 335
|
|
Filesystem content before power failure:
|
|
SCRATCH_MNT/a:
|
|
b
|
|
bar
|
|
|
|
SCRATCH_MNT/a/b:
|
|
|
|
SCRATCH_MNT/c:
|
|
foo
|
|
Filesystem content after power failure:
|
|
SCRATCH_MNT/a:
|
|
b
|
|
bar
|
|
|
|
SCRATCH_MNT/a/b:
|
|
|
|
SCRATCH_MNT/c:
|
|
foo
|