<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 20, 2020 at 1:50 PM Viresh Kumar <<a href="mailto:viresh.kumar@linaro.org" target="_blank">viresh.kumar@linaro.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 20-02-20, 13:41, Li Wang wrote:<br>
> > + TEST(fsconfig(fd, FSCONFIG_SET_PATH, "foo", tst_device->dev,<br>
> > AT_FDCWD));<br>
> > + if (TST_RET == -1) {<br>
> > + if (TST_ERR == EOPNOTSUPP) {<br>
> > + tst_res(TINFO, "fsconfig(): FSCONFIG_SET_PATH not<br>
> > supported");<br>
<br>
On my ARM setup, I always hit this path for few of the syscalls :(<br>
<br>
> > + } else {<br>
> > + tst_res(TFAIL | TERRNO, "fsconfig() failed");<br>
> ><br>
> <br>
> The test reports an EINVAL error when testing fsconfig() with<br>
> 'FSCONFIG_SET_PATH' on XFS. I'm now trying to look close to this issue.<br>
> <br>
> kernel: 5.6.0-rc2+ x86_64<br>
> <br>
> tst_test.c:1278: INFO: Testing on xfs<br>
> tst_mkfs.c:90: INFO: Formatting /dev/loop0 with xfs opts='' extra opts=''<br>
> tst_test.c:1217: INFO: Timeout per run is 0h 05m 00s<br>
> fsconfig01.c:46: FAIL: fsconfig() failed: EINVAL (22)<br>
<br>
Both "foo" and tst_device->dev may be wrong here unfortunately. Same<br>
for few other commands like: _PATH, _PATH_EMPTY, _FD..<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">If the parameter '_key' is replaced by 'ro' or 'rw', then the test always gets passed, the same behavior occurred in fspick01 too.</div></div><div class="gmail_default" style="font-size:small"><br></div></div><div><div class="gmail_default" style="font-size:small">I'm not sure if the usage is correct for fsconfig(), it'd be great if FS guys could give advice.</div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>