From: Nikolay Borisov <nborisov@suse.com>
To: fstests@vger.kernel.org
Cc: linux-btrfs@vger.kernel.org, Nikolay Borisov <nborisov@suse.com>
Subject: [PATCH] btrfs/205: Ignore output of chattr command
Date: Thu, 20 Aug 2020 12:30:06 +0300 [thread overview]
Message-ID: <20200820093006.26458-1-nborisov@suse.com> (raw)
With newer kernels, containing upstream commit f37c563bab42 ("btrfs:
add missing check for nocow and compression inode flags") chattr would
produce an error :
/usr/bin/chattr: Invalid argument while setting flags on /media/scratch/foo1
That's due to the aforementioned commit making the checks stricter. This
is not critical for the purpose of the test so it can be safely
ignored.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
---
tests/btrfs/205 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/btrfs/205 b/tests/btrfs/205
index 66355678f7d2..ab4261488ebe 100755
--- a/tests/btrfs/205
+++ b/tests/btrfs/205
@@ -48,7 +48,7 @@ run_tests()
# extent. It has a file size of 128K.
echo "Creating file foo1"
touch $SCRATCH_MNT/foo1
- $CHATTR_PROG +c $SCRATCH_MNT/foo1
+ $CHATTR_PROG +c $SCRATCH_MNT/foo1 > /dev/null 2>&1
$XFS_IO_PROG -c "pwrite -S 0xab 0 4K" \
-c "fsync" \
-c "pwrite -S 0xab 4K 124K" \
--
2.17.1
next reply other threads:[~2020-08-20 13:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-20 9:30 Nikolay Borisov [this message]
2020-08-20 10:29 ` [PATCH] btrfs/205: Ignore output of chattr command Filipe Manana
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200820093006.26458-1-nborisov@suse.com \
--to=nborisov@suse.com \
--cc=fstests@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).