Skip to contentSkip to conversation

xfstests generic/313: test ctime and mtime are updated on truncate and ftruncate

PATCH Superseded Eryu Guan 1 participant 1 message May 20, 2013

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

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()

---
 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
index c18ffc9..cc679e8 100644
@@ -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
new file mode 100644
index 0000000..2684669
@@ -0,0 +1,2 @@
+QA output created by 313
+Silence is golden
tests/generic/group +1 -0
index e2ef70e..7965bfa 100644
@@ -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