On Fri, Mar 26, 2021 at 04:41:33PM +0100, Pavel Reichl wrote: > Signed-off-by: Pavel Reichl <preichl@xxxxxxxxxx> > --- > tests/generic/554 | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/tests/generic/554 b/tests/generic/554 > index fa4f97d2..365628e2 100755 > --- a/tests/generic/554 > +++ b/tests/generic/554 > @@ -46,7 +46,15 @@ $XFS_IO_PROG -f -c "pwrite -S 0x61 0 128k" $SCRATCH_MNT/file >> $seqres.full 2>& > > echo swap files return ETXTBUSY > _format_swapfile $SCRATCH_MNT/swapfile 16m > -swapon $SCRATCH_MNT/swapfile > +if [ "$FSTYP" = "exfat" ]; then > + # exfat does not support posix file permisions, so warning is > + # to be expected > + swapon $SCRATCH_MNT/swapfile 2>&1 |\ > + grep -v 'insecure permission' >> $seqres.full > +else > + swapon $SCRATCH_MNT/swapfile > +fi Introduce a new helper like _format_swapfile and do the check there? Thanks, Eryu > + > $XFS_IO_PROG -f -c "copy_range -l 32k $SCRATCH_MNT/file" $SCRATCH_MNT/swapfile > swapoff $SCRATCH_MNT/swapfile > > -- > 2.30.2