public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/fspick: Call fsconfig with FSCONFIG_CMD_RECONFIGURE
@ 2020-03-20  4:52 Viresh Kumar
  2020-03-20 12:04 ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2020-03-20  4:52 UTC (permalink / raw)
  To: ltp

Make sure mountpoint is reconfigured after all the recent changes by
calling fsconfig() with FSCONFIG_CMD_RECONFIGURE.

Suggested-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 testcases/kernel/syscalls/fspick/fspick01.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/testcases/kernel/syscalls/fspick/fspick01.c b/testcases/kernel/syscalls/fspick/fspick01.c
index 3b3635b20195..b5a35bf61e2c 100644
--- a/testcases/kernel/syscalls/fspick/fspick01.c
+++ b/testcases/kernel/syscalls/fspick/fspick01.c
@@ -43,6 +43,12 @@ static void run(unsigned int n)
 		goto out;
 	}
 
+	TEST(fsconfig(fspick_fd, FSCONFIG_CMD_RECONFIGURE, NULL, NULL, 0));
+	if (TST_RET == -1) {
+		tst_res(TFAIL | TTERRNO, "fsconfig() failed");
+		goto out;
+	}
+
 	tst_res(TPASS, "%s: fspick() passed", tc->name);
 
 out:
-- 
2.21.0.rc0.269.g1a574e7a288b


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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-20  4:52 [LTP] [PATCH] syscalls/fspick: Call fsconfig with FSCONFIG_CMD_RECONFIGURE Viresh Kumar
2020-03-20 12:04 ` Petr Vorel
2020-03-23  3:14   ` Viresh Kumar

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