xfstests generic/313: test ctime and mtime are updated on truncate and ftruncate
PATCH 1/1 xfstests generic/313: test ctime and mtime are updated on truncate and ftruncate
Regression test for commit:
3972f26 btrfs: update timestamps on truncate()
Signed-off-by Eryu Guan <[email protected]>
--- src/Makefile | 2 +- src/t_truncate_cmtime.c | 110 ++++++++++++++++++++++++++++++++++++++++++++++++ tests/generic/313 | 55 ++++++++++++++++++++++++ tests/generic/313.out | 2 + tests/generic/group | 1 + 5 files changed, 169 insertions(+), 1 deletion(-) create mode 100644 src/t_truncate_cmtime.c create mode 100755 tests/generic/313 create mode 100644 tests/generic/313.out
src/Makefile +1 -1
@@ -11,7 +11,7 @@ TARGETS = dirstress fill fill2 getpagesize holes lstat64 \ devzero feature alloc fault fstest t_access_root \ godown resvtest writemod makeextents itrash rename \ multi_open_unlink dmiperf unwritten_sync genhashnames t_holes \ - t_mmap_writev + t_mmap_writev t_truncate_cmtime LINUX_TARGETS = xfsctl bstat t_mtab getdevicesize preallo_rw_pattern_reader \ preallo_rw_pattern_writer ftrunc trunc fs_perms testx looptest \
src/t_truncate_cmtime.c new file +110 -0
110 lines not on this page · raw message
tests/generic/313 new file +55 -0
55 lines not on this page · raw message
tests/generic/313.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 313 +Silence is golden
tests/generic/group +1 -0
@@ -115,3 +115,4 @@ 310 auto 311 auto metadata log 312 auto quick prealloc enospc +313 auto quick
Signature · 6 lines
1.8.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs