generic: test mounting filesystem after fsync of a tmpfile

Test that if we fsync a tmpfile, without adding a hard link to it, and
then power fail, we will be able to mount the filesystem without
triggering any crashes, warnings or corruptions.

This test is motivated by an issue in btrfs where this scenario triggered
a warning (without any side effects). The following linux kernel patch
fixes the issue in btrfs:

  "Btrfs: fix warning when replaying log after fsync of a tmpfile"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Filipe Manana
2018-10-08 11:13:13 +01:00
committed by Eryu Guan
parent 45d1dd7375
commit 2fdaeccead
3 changed files with 62 additions and 0 deletions
+1
View File
@@ -511,3 +511,4 @@
506 shutdown auto quick metadata quota
507 shutdown auto quick metadata
508 shutdown auto quick metadata
509 auto quick log