generic: test creation time recovery after power failure
authorChao Yu <yuchao0@huawei.com>
Sun, 7 Oct 2018 12:25:48 +0000 (20:25 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 14 Oct 2018 13:35:02 +0000 (21:35 +0800)
commit28c8fb706fee67f2e81b9d0d6f4b229069392f39
tree319140c8bd173ca7c50c2d7ea6f1d1fcaec429db
parent1c29d399b6ebc3b8efb8e7c05d4b76aecbf9bd18
generic: test creation time recovery after power failure

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

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

Note that, it needs inode creation time support on specified filesystem.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc
tests/generic/508 [new file with mode: 0755]
tests/generic/508.out [new file with mode: 0644]
tests/generic/group