generic: test i_flags recovery after power failure
authorChao Yu <yuchao0@huawei.com>
Sun, 7 Oct 2018 12:25:47 +0000 (20:25 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 14 Oct 2018 13:35:02 +0000 (21:35 +0800)
commit1c29d399b6ebc3b8efb8e7c05d4b76aecbf9bd18
tree6843713bbbf3364385b08ca07d8ce3dd16ea14c3
parent9ca1f65a7bf925d2e86815459a17c2659fd0cb52
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>
tests/generic/507 [new file with mode: 0755]
tests/generic/507.out [new file with mode: 0644]
tests/generic/group