Skip to contentSkip to conversation

fstests: transport two ext4 tests from LTP

PATCH New Yong Sun 1 participant 1 message Feb 27, 2020

lore
Share & tools
lore

Yong Sun

author
#0 lore raw

PATCH v7 1/1 fstests: transport two ext4 tests from LTP

Recently LTP upstream removed some ext4 tests[1].
And two of them is still valid to keep. So I transport those two tests here. ext4-nsec-timestamps, which is used to test nanosec timestamps of ext4, rewrite into ext4/043 and 044. ext4-subdir-limit, which is used to test subdirectory limit of ext4, rewrite into ext4/045.

[1] https://marc.info/?l=linux-fsdevel&m=157190623919681&w=2

---
v2: Correct copyright information
v3: Correct white-space damage
v4: Add a missing file
v5: Fix several issue reviewed by Darrick
v6: Fix several issue reviewed by Eryu, and remove block setting in ext4/045 Refer to ext4/045 fail https://www.spinics.net/lists/linux-ext4/msg69467.html
v7: Fix several issue reviewed by Eryu t_create_(long|short)_dirs.c have much different, better to keep two file.

---
 .gitignore                |   3 +
 src/Makefile              |   3 +-
 src/t_create_long_dirs.c  | 139 +++++++++++++++++++++++++++++++++++++
 src/t_create_short_dirs.c | 142 ++++++++++++++++++++++++++++++++++++++
 src/t_get_file_time.c     |  53 ++++++++++++++
 tests/ext4/043            |  56 +++++++++++++++
 tests/ext4/043.out        |   2 +
 tests/ext4/044            |  88 +++++++++++++++++++++++
 tests/ext4/044.out        |   2 +
 tests/ext4/045            | 111 +++++++++++++++++++++++++++++
 tests/ext4/045.out        |   2 +
 tests/ext4/group          |   3 +
 12 files changed, 603 insertions(+), 1 deletion(-)
 create mode 100644 src/t_create_long_dirs.c
 create mode 100644 src/t_create_short_dirs.c
 create mode 100644 src/t_get_file_time.c
 create mode 100755 tests/ext4/043
 create mode 100644 tests/ext4/043.out
 create mode 100755 tests/ext4/044
 create mode 100644 tests/ext4/044.out
 create mode 100755 tests/ext4/045
 create mode 100644 tests/ext4/045.out
.gitignore +3 -0
index 7e6b7daf..f3dc1a58 100644
@@ -119,6 +119,8 @@
 /src/swapon
 /src/t_access_root
 /src/t_attr_corruption
+/src/t_create_long_dirs
+/src/t_create_short_dirs
 /src/t_dir_offset
 /src/t_dir_offset2
 /src/t_dir_type
@@ -127,6 +129,7 @@
 /src/t_ext4_dax_journal_corruption
 /src/t_futimens
 /src/t_getcwd
+/src/t_get_file_time
 /src/t_holes
 /src/t_immutable
 /src/t_locks_execve
src/Makefile +2 -1
index b015e78b..f1d642c4 100644
@@ -16,7 +16,8 @@ TARGETS = dirstress fill fill2 getpagesize holes lstat64 \
 	holetest t_truncate_self t_mmap_dio af_unix t_mmap_stale_pmd \
 	t_mmap_cow_race t_mmap_fallocate fsync-err t_mmap_write_ro \
 	t_ext4_dax_journal_corruption t_ext4_dax_inline_corruption \
-	t_ofd_locks t_locks_execve t_mmap_collision mmap-write-concurrent
+	t_ofd_locks t_locks_execve t_mmap_collision mmap-write-concurrent \
+	t_get_file_time t_create_short_dirs t_create_long_dirs
 
 LINUX_TARGETS = xfsctl bstat t_mtab getdevicesize preallo_rw_pattern_reader \
 	preallo_rw_pattern_writer ftrunc trunc fs_perms testx looptest \
src/t_create_long_dirs.c new file +139 -0

139 lines not on this page · raw message

src/t_create_short_dirs.c new file +142 -0

142 lines not on this page · raw message

src/t_get_file_time.c new file +53 -0

53 lines not on this page · raw message

tests/ext4/043 new file +56 -0

56 lines not on this page · raw message

tests/ext4/043.out new file +2 -0
new file mode 100644
index 00000000..f90f0a57
@@ -0,0 +1,2 @@
+QA output created by 043
+Silence is golden
tests/ext4/044 new file +88 -0

88 lines not on this page · raw message

tests/ext4/044.out new file +2 -0
new file mode 100644
index 00000000..12a61dc4
@@ -0,0 +1,2 @@
+QA output created by 044
+Silence is golden
tests/ext4/045 new file +111 -0

111 lines not on this page · raw message

tests/ext4/045.out new file +2 -0
new file mode 100644
index 00000000..66276cfa
@@ -0,0 +1,2 @@
+QA output created by 045
+Silence is golden
tests/ext4/group +3 -0
index 62483c3f..a1adc553 100644
@@ -44,6 +44,9 @@
 040 dangerous_fuzzers
 041 dangerous_fuzzers
 042 auto quick
+043 auto quick
+044 auto quick
+045 auto dir
 271 auto rw quick
 301 aio auto ioctl rw stress defrag
 302 aio auto ioctl rw stress defrag
Signature · 1 line
2.25.0