From 0c95c8acb82db265299417918e6a4380f6a83afb Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Thu, 15 Apr 2021 11:49:03 +0200 Subject: [PATCH] common: hide permision warning from mkswap for exfat exfat does not support posix file permisions, so warning from mkswap is inavitable. This patch hides the warning message so the test won't fail. Signed-off-by: Pavel Reichl Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- common/rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/rc b/common/rc index 4d3397d6..e5a65f25 100644 --- a/common/rc +++ b/common/rc @@ -2421,7 +2421,8 @@ _format_swapfile() { # Swap files must be nocow on Btrfs. $CHATTR_PROG +C "$fname" > /dev/null 2>&1 _pwrite_byte 0x61 0 "$sz" "$fname" >> $seqres.full - $MKSWAP_PROG "$fname" >> $seqres.full + # Ignore permission complaints on filesystems that don't support perms + $MKSWAP_PROG "$fname" 2> >(grep -v 'insecure permission' >&2) >> $seqres.full } # Check that the filesystem supports swapfiles -- 2.39.5