Skip to content

Commit d46cac1

Browse files
committed
nfs_lib.sh: Document LTP_NFS_NETNS_USE_LO=1 in help
Debugging on loopback device can be useful, make users avare. Due LTP shell API limitations is output a bit inconsistent (test specific options are printed first, API does not expect test specific environment variables). Link: https://lore.kernel.org/ltp/20251030110412.722758-1-pvorel@suse.cz/ Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent cc5aa8f commit d46cac1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

testcases/network/nfs/nfs_stress/nfs_lib.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ NFS_TYPE=${NFS_TYPE:=nfs}
1111

1212
nfs_usage()
1313
{
14+
echo "Test Specific Environment Variables"
15+
echo "-----------------------------------"
16+
17+
cat >&2 << EOF
18+
LTP_NFS_NETNS_USE_LO=1 NFS traffic will go through loopback interface instead
19+
of ltp_ns_veth* netns interfaces (useful for debugging
20+
whether test failures are related to veth/netns)
21+
EOF
22+
23+
echo
24+
echo "Options"
25+
echo "-------"
1426
echo "-t x Socket type, tcp or udp, default is udp"
1527
echo "-v x NFS version, default is '3'"
1628
}

0 commit comments

Comments
 (0)