From: Martin Doucha <mdoucha@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] nfs02: Add subtest for O_DIRECT
Date: Tue, 28 May 2024 14:47:55 +0200 [thread overview]
Message-ID: <20240528124756.18977-1-mdoucha@suse.cz> (raw)
Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
testcases/network/nfs/nfs_stress/nfs02.sh | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/testcases/network/nfs/nfs_stress/nfs02.sh b/testcases/network/nfs/nfs_stress/nfs02.sh
index b7fbbce9c..100909790 100755
--- a/testcases/network/nfs/nfs_stress/nfs02.sh
+++ b/testcases/network/nfs/nfs_stress/nfs02.sh
@@ -8,7 +8,7 @@
#
# Ported by: Robbie Williamson (robbiew@us.ibm.com)
-TST_CNT=3
+TST_CNT=4
TST_TESTFUNC="do_test"
LTP_DATAFILES="$LTPROOT/testcases/bin/datafiles"
@@ -46,5 +46,18 @@ do_test3()
tst_res TPASS "test3 passed"
}
+do_test4()
+{
+ tst_res TINFO "do_test4, copy data in direct mode"
+ ROD dd oflag=direct if="$LTP_DATAFILES/ascii.jmb" of=ascii2.jmb
+ echo 3 >/proc/sys/vm/drop_caches
+ ROD dd iflag=direct if=ascii2.jmb of="$TST_TMPDIR/ascii2.jmb"
+ echo 3 >/proc/sys/vm/drop_caches
+ tst_res TINFO "compare both ascii.jmbs"
+ ROD diff "$LTP_DATAFILES/ascii.jmb" ascii2.jmb
+ ROD diff "$LTP_DATAFILES/ascii.jmb" "$TST_TMPDIR/ascii2.jmb"
+ tst_res TPASS "test4 passed"
+}
+
. nfs_lib.sh
tst_run
--
2.44.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2024-05-28 12:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-28 12:47 Martin Doucha [this message]
2024-06-05 13:38 ` [LTP] [PATCH] nfs02: Add subtest for O_DIRECT Petr Vorel
2024-06-05 13:46 ` Martin Doucha
2024-06-05 19:16 ` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240528124756.18977-1-mdoucha@suse.cz \
--to=mdoucha@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.