<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Viresh Kumar <<a href="mailto:viresh.kumar@linaro.org" target="_blank">viresh.kumar@linaro.org</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail_default" style="font-size:small">...</span><br>
--- /dev/null<br>
+++ b/testcases/kernel/syscalls/fspick/fspick01.c<br>
<span class="gmail_default" style="font-size:small">...</span><br>
+<br>
+static void run(unsigned int n)<br>
+{<br>
+ struct tcase *tc = &tcases[n];<br>
+ int fspick_fd;<br>
+<br>
+ TEST(fspick(AT_FDCWD, MNTPOINT, tc->flags));<br>
+ if (TST_RET == -1)<br>
+ tst_brk(TFAIL | TERRNO, "fspick() failed");<br>
+<br>
+ fspick_fd = TST_RET;<br>
+<br>
+ TEST(fsconfig(fspick_fd, FSCONFIG_SET_STRING, "user_xattr", "false", 0));<br>
+ if (TST_RET == -1) {<br>
+ SAFE_CLOSE(fspick_fd);<br>
+ tst_brk(TBROK | TERRNO, "fsconfig() failed");<br></blockquote><div><span class="gmail_default" style="font-size:small"></span></div><div><span class="gmail_default" style="font-size:small">Test kernel: 5.6.0-rc2+ x86_64</span></div><div><span class="gmail_default" style="font-size:small"></span> </div><div><span class="gmail_default" style="font-size:small"></span>tst_test.c:1278: INFO: Testing on xfs</div>tst_mkfs.c:90: INFO: Formatting /dev/loop3 with xfs opts='' extra opts=''<br>tst_test.c:1217: INFO: Timeout per run is 0h 05m 00s<br>fspick01.c:90: BROK: fsconfig() failed: EINVAL (22)<br><div><span class="gmail_default" style="font-size:small"></span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
+ }<br>
+<br>
+ TEST(fsconfig(fspick_fd, FSCONFIG_SET_FLAG, "ro", NULL, 0));<br>
+ if (TST_RET == -1) {<br>
+ SAFE_CLOSE(fspick_fd);<br>
+ tst_brk(TBROK | TERRNO, "fsconfig() failed");<br>
+ }<br>
+<br>
+ SAFE_CLOSE(fspick_fd);<br>
+ tst_res(TPASS, "%s: fspick() passed", tc->name);<br>
+}<br></blockquote><div> </div></div>-- <br><div dir="ltr"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>