public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 1/3] nfs_lib: Unify remote directory creation
@ 2020-03-11 17:50 Petr Vorel
  2020-03-11 17:50 ` [LTP] [PATCH v2 2/3] nfs: Detect disabled UDP Petr Vorel
  2020-03-11 17:50 ` [LTP] [PATCH v2 3/3] nfs_lib: Add option to run traffic via lo on netns Petr Vorel
  0 siblings, 2 replies; 6+ messages in thread
From: Petr Vorel @ 2020-03-11 17:50 UTC (permalink / raw)
  To: ltp

remote directory creation can be done by tst_rhost_run() also on netns.
This simplifies code a bit.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Changes v1-v2:
* remove changes in nfs_mount() (to keep using netns)

 testcases/network/nfs/nfs_stress/nfs_lib.sh | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/testcases/network/nfs/nfs_stress/nfs_lib.sh b/testcases/network/nfs/nfs_stress/nfs_lib.sh
index 66f2fb038..f233976c7 100644
--- a/testcases/network/nfs/nfs_stress/nfs_lib.sh
+++ b/testcases/network/nfs/nfs_stress/nfs_lib.sh
@@ -50,14 +50,6 @@ nfs_setup_server()
 {
 	local export_cmd="exportfs -i -o fsid=$$,no_root_squash,rw *:$remote_dir"
 
-	if [ -n "$LTP_NETNS" ]; then
-		if [ ! -d $remote_dir ]; then
-			mkdir -p $remote_dir
-			ROD $export_cmd
-		fi
-		return
-	fi
-
 	if ! tst_rhost_run -c "test -d $remote_dir"; then
 		tst_rhost_run -s -c "mkdir -p $remote_dir; $export_cmd"
 	fi
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-13 14:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-11 17:50 [LTP] [PATCH v2 1/3] nfs_lib: Unify remote directory creation Petr Vorel
2020-03-11 17:50 ` [LTP] [PATCH v2 2/3] nfs: Detect disabled UDP Petr Vorel
2020-03-11 17:50 ` [LTP] [PATCH v2 3/3] nfs_lib: Add option to run traffic via lo on netns Petr Vorel
2020-03-11 18:56   ` Petr Vorel
2020-03-13 13:50     ` Alexey Kodanev
2020-03-13 14:17       ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox