Skip to contentSkip to conversation

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

PATCH Superseded Eryu Guan 2 participants 4 messages Jun 5, 2013 – Jul 8, 2013

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

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

---
v1->v2: rebase on top of master

 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 bd443c1..2a399fa 100644
@@ -115,3 +115,4 @@
 310 auto
 311 auto metadata log
 312 auto quick prealloc enospc
+313 auto quick
Signature · 6 lines
1.8.2.1

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
author
#2 lore raw

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

---
v2->v3: add src/t_truncate_cmtime to .gitignore
v1->v2: rebase on top of master

 .gitignore              |   1 +
 src/Makefile            |   2 +-
 src/t_truncate_cmtime.c | 110 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/generic/313       |  55 ++++++++++++++++++++++++
 tests/generic/313.out   |   2 +
 tests/generic/group     |   1 +
 6 files changed, 170 insertions(+), 1 deletion(-)
 create mode 100644 src/t_truncate_cmtime.c
 create mode 100755 tests/generic/313
 create mode 100644 tests/generic/313.out
.gitignore +1 -0
index ad7afbc..11594aa 100644
@@ -85,6 +85,7 @@
 /src/t_mmap_writev
 /src/t_mtab
 /src/t_stripealign
+/src/t_truncate_cmtime
 /src/testx
 /src/trunc
 /src/truncfile
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 bd443c1..2a399fa 100644
@@ -115,3 +115,4 @@
 310 auto
 311 auto metadata log
 312 auto quick prealloc enospc
+313 auto quick
Signature · 6 lines
1.8.3.1

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs