All of lore.kernel.org
 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

* [LTP] [PATCH 2/2] statx07: handle ETIMEDOUT when rpcbind.socket is not started
  2019-12-12 12:35 [LTP] [PATCH 1/2] statx07: add fsid= to exports Jan Stancek
@ 2019-12-12 12:35 ` Jan Stancek
  2019-12-13 13:03   ` Cyril Hrubis
  2019-12-13 12:56 ` [LTP] [PATCH 1/2] statx07: add fsid= to exports Cyril Hrubis
  1 sibling, 1 reply; 5+ messages in thread
From: Jan Stancek @ 2019-12-12 12:35 UTC (permalink / raw)
  To: ltp

Recent Fedora distros (kernel-5.3.7-301.fc31.x86_64,
nfs-utils-2.4.1-1.rc1.fc31.x86_64), by default don't start rpcbind
service, where rpcbind.socket is a dependency.

This leads to test failing with ETIMEDOUT:
  # ./statx07
  tst_test.c:1215: INFO: Timeout per run is 0h 05m 00s
  statx07.c:149: BROK: mount() nfs failed: ETIMEDOUT (110)

  # systemctl start rpcbind.socket
  # ./statx07
  tst_test.c:1215: INFO: Timeout per run is 0h 05m 00s
  statx07.c:148: CONF: nfs server not set up?: EOPNOTSUPP (95)

Watch for ETIMEDOUT as well.

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

diff --git a/testcases/kernel/syscalls/statx/statx07.c b/testcases/kernel/syscalls/statx/statx07.c
index a18f253bc7d4..ec1cdd19087b 100644
--- a/testcases/kernel/syscalls/statx/statx07.c
+++ b/testcases/kernel/syscalls/statx/statx07.c
@@ -144,7 +144,8 @@ static void setup(void)
 		tst_brk(TBROK | TST_ERR, "failed to exportfs");
 
 	if (mount(server_path, CLI_PATH, "nfs", 0, "addr=127.0.0.1")) {
-		if (errno == EOPNOTSUPP || errno == ECONNREFUSED)
+		if (errno == EOPNOTSUPP || errno == ECONNREFUSED
+			|| errno == ETIMEDOUT)
 			tst_brk(TCONF | TERRNO, "nfs server not set up?");
 		tst_brk(TBROK | TERRNO, "mount() nfs failed");
 	}
-- 
1.8.3.1


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

* [LTP] [PATCH 1/2] statx07: add fsid= to exports
  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 12:56 ` Cyril Hrubis
  1 sibling, 0 replies; 5+ messages in thread
From: Cyril Hrubis @ 2019-12-13 12:56 UTC (permalink / raw)
  To: ltp

Hi!
Looks good, acked.

-- 
Cyril Hrubis
chrubis@suse.cz

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

* [LTP] [PATCH 2/2] statx07: handle ETIMEDOUT when rpcbind.socket is not started
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2019-12-13 13:03 UTC (permalink / raw)
  To: ltp

Hi!
Acked as well.

-- 
Cyril Hrubis
chrubis@suse.cz

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

* [LTP] [PATCH 2/2] statx07: handle ETIMEDOUT when rpcbind.socket is not started
  2019-12-13 13:03   ` Cyril Hrubis
@ 2019-12-16 12:51     ` Jan Stancek
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Stancek @ 2019-12-16 12:51 UTC (permalink / raw)
  To: ltp



----- Original Message -----
> Hi!
> Acked as well.
> 

Both pushed.


^ permalink raw reply	[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 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.