generic: test i_flags recovery after power failure

After fsync, filesystem should guarantee inode metadata including
i_flags being persisted, so even after sudden power-cut, during
mount, we should recover i_flags fields correctly, in order to not
loss those meta info.

So adding this testcase to check whether generic filesystem can
guarantee that.

We only check below attribute modification which most filesystem
supports:
- no atime updates (A)
- secure deletion (s)
- synchronous updates (S)
- undeletable (u)

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Chao Yu
2018-10-07 20:25:47 +08:00
committed by Eryu Guan
parent 9ca1f65a7b
commit 1c29d399b6
3 changed files with 136 additions and 0 deletions
+1
View File
@@ -509,3 +509,4 @@
504 auto quick locks
505 shutdown auto quick metadata
506 shutdown auto quick metadata quota
507 shutdown auto quick metadata