public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/2] statx07: add fsid= to exports
@ 2019-12-12 12:35 Jan Stancek
  2019-12-12 12:35 ` [LTP] [PATCH 2/2] statx07: handle ETIMEDOUT when rpcbind.socket is not started Jan Stancek
  2019-12-13 12:56 ` [LTP] [PATCH 1/2] statx07: add fsid= to exports Cyril Hrubis
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Stancek @ 2019-12-12 12:35 UTC (permalink / raw)
  To: ltp

Not all filesystems are stored on devices, and not all filesystems
have UUIDs. tmpfs is one of them, which lead to test failing:
    /tmp/XRzHSG/server requires fsid= for NFS export

Fixes: #622
Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 testcases/kernel/syscalls/statx/statx07.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/syscalls/statx/statx07.c b/testcases/kernel/syscalls/statx/statx07.c
index 997e81ad843a..a18f253bc7d4 100644
--- a/testcases/kernel/syscalls/statx/statx07.c
+++ b/testcases/kernel/syscalls/statx/statx07.c
@@ -133,8 +133,8 @@ static void setup(void)
 	snprintf(server_path, sizeof(server_path), ":%s/%s", cwd, SERV_PATH);
 
 	snprintf(cmd, sizeof(cmd),
-		 "exportfs -i -o no_root_squash,rw,sync,no_subtree_check *%.1024s",
-		 server_path);
+		 "exportfs -i -o no_root_squash,rw,sync,no_subtree_check,fsid=%d *%.1024s",
+		 getpid(), server_path);
 	exported = 1;
 
 	ret = tst_system(cmd);
-- 
1.8.3.1


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

end of thread, other threads:[~2019-12-16 12:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-12 12:35 [LTP] [PATCH 1/2] statx07: add fsid= to exports Jan Stancek
2019-12-12 12:35 ` [LTP] [PATCH 2/2] statx07: handle ETIMEDOUT when rpcbind.socket is not started Jan Stancek
2019-12-13 13:03   ` Cyril Hrubis
2019-12-16 12:51     ` Jan Stancek
2019-12-13 12:56 ` [LTP] [PATCH 1/2] statx07: add fsid= to exports Cyril Hrubis

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