<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 Tue, Apr 30, 2019 at 5:08 PM Murphy Zhou <<a href="mailto:xzhou@redhat.com">xzhou@redhat.com</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"><span class="gmail_default" style="font-size:small">...</span><br>
> > > > + if (fs_type == TST_OVERLAYFS_MAGIC && errno == EINVAL) {<br>
> > > > + tst_resm(TCONF, "Swapfile on overlayfs not<br>
> > implemeted");<br>
> > > > + return;<br>
> > > > + }<br>
> > > ><br>
> > ><br>
> > > The code looks correct.<br>
> > ><br>
> > > But it already has a test skipping for BTRFS, is there any possibility to<br>
> > > combine these filesystems check together?<br>
> ><br>
> > Good idea~ Sending V2.<br>
> ><br>
> <br>
> One more comment.<br>
> <br>
> I just noticed that it also has an FS skipping list in setup(), do u think<br>
> can we move BTRFS and OVERLAYFS to there?<br>
<br>
Great! That makes perfect sense. Also I'm thinking a few other tweaks<br>
needed:<br>
<br>
NFS now actually support swapfiles. Let's remove it from skip list;<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">But AFAIK someone still run LTP on old distro/kernel, so we can't guarantee the test works fine in that situation. So, my opinion is to reserve the NFS, or do you have a better way to make test more flexible?</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Skip all swapon/swapoff tests on TMPFS BTRFS OVERLAYFS;<br>
Add CIFS_MAGIC, then skip on it too;<br>
Remove existing BTRFS return value tweaks.<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Agree.</div></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>