]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
f2fs/009: use common _scratch_shutdown helper
authorChao Yu <chao@kernel.org>
Mon, 15 Jun 2026 09:05:58 +0000 (09:05 +0000)
committerZorro Lang <zlang@kernel.org>
Tue, 16 Jun 2026 14:18:42 +0000 (22:18 +0800)
f2fs has supported ioctl(_IOR ('X', 125, uint32_t)), so that
"f2fs_io shutdown" can be completely replaced w/ _scratch_shutdown(),
let's clean up in f2fs/009.

Suggested-by: Zorro Lang <zlang@kernel.org>
Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Zorro Lang <zlang@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/f2fs/009

index fa4a39d1647624263f612301839b91ea52ba3025..39a4bad3d47869165e45869da985ab5545973086 100755 (executable)
@@ -12,6 +12,7 @@
 _begin_fstest auto quick
 
 _require_scratch
+_require_scratch_shutdown
 _require_inject_f2fs_command node i_links
 _require_command "$(type -P socket)" socket
 
@@ -106,7 +107,7 @@ ino=`stat -c '%i' $filename`
 $F2FS_IO_PROG write 1 0 1 zero atomic_commit $filename 5000 >> $seqres.full 2>&1 &
 stat $filename >> $seqres.full
 rm $filename
-$F2FS_IO_PROG shutdown 1 $SCRATCH_MNT/ >> $seqres.full
+_scratch_shutdown -f
 sleep 6
 check_links 1 0 $ino