From patchwork Wed Apr 28 04:09:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 12227937 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F7F6C43600 for ; Wed, 28 Apr 2021 04:09:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E51CA60720 for ; Wed, 28 Apr 2021 04:09:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234376AbhD1EJu (ORCPT ); Wed, 28 Apr 2021 00:09:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:53932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233960AbhD1EJp (ORCPT ); Wed, 28 Apr 2021 00:09:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5ABFA613F1; Wed, 28 Apr 2021 04:09:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619582941; bh=lW7lFlbmUaXKOOdn5osdf44wOyG07HxU6Aquzssyb0Y=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=rinPTcr2Gyo5N2/sRkW6oMJaQKlnq5FMAqETGXaiE3IIXvEYgsgJpIw0VnkhCChCn W8rSZsyJNNci2A61EUs8hvRkNU2r/GRU1GVVtpsUej5545BlWj2ZFKrhYZVrPzHGpA DxJNjvQLtcqtBr9oogSU5i+oH34KL9E9iUxrt88AWtxcEVNOl7oSO6m7HuwxN80RpP RKBB0VAfN2VTHLIGXGQKRevLewBxXNRHNj3Wn0pLHu/HvYwssli0fIOsKRGx72jgbS BXjYtNIWlHb1k4c5VQtKTTvHklNFhzG3W6tbNVLFYqpCUTPp6HgqoeiIiUo8nG8UlD FIMdRcDabMy4A== Subject: [PATCH 1/5] xfs/276: remove unnecessary mkfs golden output From: "Darrick J. Wong" To: djwong@kernel.org, guaneryu@gmail.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org, guan@eryu.me Date: Tue, 27 Apr 2021 21:09:00 -0700 Message-ID: <161958294062.3452351.18374824154438201788.stgit@magnolia> In-Reply-To: <161958293466.3452351.14394620932744162301.stgit@magnolia> References: <161958293466.3452351.14394620932744162301.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org From: Darrick J. Wong A previous update to this test dropped the clause where the mkfs standard output gets sent to /dev/null. The filtered mkfs output isn't needed here and it breaks the test, so fix that. Fixes: e97f96e5 ("xfs/27[26]: force realtime on or off as needed") Signed-off-by: Darrick J. Wong Reviewed-by: Brian Foster --- tests/xfs/276 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/xfs/276 b/tests/xfs/276 index 6e2b2fb4..afea48ad 100755 --- a/tests/xfs/276 +++ b/tests/xfs/276 @@ -35,7 +35,7 @@ _require_test_program "punch-alternating" rm -f "$seqres.full" echo "Format and mount" -_scratch_mkfs | _filter_mkfs 2> "$tmp.mkfs" +_scratch_mkfs | _filter_mkfs 2> "$tmp.mkfs" >/dev/null . $tmp.mkfs cat "$tmp.mkfs" > $seqres.full _scratch_mount From patchwork Wed Apr 28 04:09:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 12227941 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7E63C433B4 for ; Wed, 28 Apr 2021 04:09:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B9672613F9 for ; Wed, 28 Apr 2021 04:09:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234674AbhD1EJw (ORCPT ); Wed, 28 Apr 2021 00:09:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:54066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234587AbhD1EJv (ORCPT ); Wed, 28 Apr 2021 00:09:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7179460720; Wed, 28 Apr 2021 04:09:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619582947; bh=xNhvbDzwY83lOSf4Cd6ynyV6nL64Z+F28X0La4D2f5U=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=bwFB6JT2HrwoPip55zHAngxRAyLuJwxngB+L4WO9IivbS2uGWSMVRHvvvxkJq7QFY RFoG9ZiVcy397HcGG0sJcJ9Eh04weY0iupxYBjwGGPQkRj+E/mvf1F4mwA8KQC6Ivi EZPbGuqwgwAjutH2+G6ICHxBs48JjS47gWKoe1bJFq5WxerVm4dVsGKLS9Ger/othx TqIpwg3z5W/PZe7DOfnFt+eqhZ243piVZzcIMzjdwLkzJCwDSpUvwYNPuJxqf9zRsE R9ewF0oS+NhMOSpC1GqAMm7fiTjWXFn512xEn7c1UO0KsTiGpp89D5e2A5ALlkN9ep c4veQb0wVrHwA== Subject: [PATCH 2/5] generic/{094,225}: fix argument to _require_file_block_size_equals_fs_block_size From: "Darrick J. Wong" To: djwong@kernel.org, guaneryu@gmail.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org, guan@eryu.me Date: Tue, 27 Apr 2021 21:09:06 -0700 Message-ID: <161958294676.3452351.8192861960078318002.stgit@magnolia> In-Reply-To: <161958293466.3452351.14394620932744162301.stgit@magnolia> References: <161958293466.3452351.14394620932744162301.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org From: Darrick J. Wong Fix the incorrect parameter being passed to this new predicate. Signed-off-by: Darrick J. Wong Reviewed-by: Brian Foster --- common/rc | 3 ++- tests/generic/094 | 2 +- tests/generic/225 | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/rc b/common/rc index 2cf550ec..6752c92d 100644 --- a/common/rc +++ b/common/rc @@ -4174,7 +4174,8 @@ _get_block_size() } # Require that the fundamental allocation unit of a file is the same as the -# filesystem block size. +# filesystem block size. The sole parameter must be the root dir of a +# filesystem. _require_file_block_size_equals_fs_block_size() { local file_alloc_unit="$(_get_file_block_size $1)" diff --git a/tests/generic/094 b/tests/generic/094 index 8c292473..20ef158e 100755 --- a/tests/generic/094 +++ b/tests/generic/094 @@ -43,7 +43,7 @@ _require_test_program "fiemap-tester" # FIEMAP test doesn't like finding unwritten blocks after it punches out # a partial rt extent. test "$FSTYP" = "xfs" && \ - _require_file_block_size_equals_fs_block_size $fiemapfile + _require_file_block_size_equals_fs_block_size $SCRATCH_MNT seed=`date +%s` diff --git a/tests/generic/225 b/tests/generic/225 index fac688df..1a7963e8 100755 --- a/tests/generic/225 +++ b/tests/generic/225 @@ -43,7 +43,7 @@ _require_test_program "fiemap-tester" # FIEMAP test doesn't like finding unwritten blocks after it punches out # a partial rt extent. test "$FSTYP" = "xfs" && \ - _require_file_block_size_equals_fs_block_size $fiemapfile + _require_file_block_size_equals_fs_block_size $SCRATCH_MNT seed=`date +%s` From patchwork Wed Apr 28 04:09:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 12227943 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E3C8C433B4 for ; Wed, 28 Apr 2021 04:09:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 534DA613F1 for ; Wed, 28 Apr 2021 04:09:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229464AbhD1EJ5 (ORCPT ); Wed, 28 Apr 2021 00:09:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:54146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbhD1EJ5 (ORCPT ); Wed, 28 Apr 2021 00:09:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A41B60720; Wed, 28 Apr 2021 04:09:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619582953; bh=MXKb7c+JEa063s9FYkl2+xArK9lVxucj5qXOfwbJQns=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Qb8v0e8z+BY2CM7yC64RJbFJZe/nfM8ZDqPf1Ap2KJVHza3/QXUSfXx3SabNF3c5d FZjPx/HO21fNApwmz7TgSbCprpsMpXnS2j4ui4mxCvEB6dsxSiWWKa0Shc4ib67N5J 2Vt2jIfzSghJjumucUuuHGDAGerCmOXQxfdtLA195kwzXXsBUJu58454aOjYOk06Q2 M/2XBuHCpmPIDXab+1vMzo85XYRPGQsx0Uo3GMGV4y1zaCAzyDyTFAnGZERro30zoE xfrejREWc8QSeH+ffUbp/+5Ny/nQo80HsMkumVO2eIdT0rfLRrfXOW0uoSzIbb2We3 KFrZIGbcj+NLQ== Subject: [PATCH 3/5] generic/449: always fill up the data device From: "Darrick J. Wong" To: djwong@kernel.org, guaneryu@gmail.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org, guan@eryu.me Date: Tue, 27 Apr 2021 21:09:12 -0700 Message-ID: <161958295276.3452351.11071488836337123863.stgit@magnolia> In-Reply-To: <161958293466.3452351.14394620932744162301.stgit@magnolia> References: <161958293466.3452351.14394620932744162301.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org From: Darrick J. Wong This is yet another one of those tests that looks at what happens when we run out of space for more metadata (in this case, xattrs). Make sure that the 256M we write to the file to try to stimulate ENOSPC gets written to the same place that xfs puts xattr data -- the data device. Signed-off-by: Darrick J. Wong Reviewed-by: Brian Foster --- tests/generic/449 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/generic/449 b/tests/generic/449 index a2d882df..5fd15367 100755 --- a/tests/generic/449 +++ b/tests/generic/449 @@ -43,6 +43,11 @@ _require_attrs trusted _scratch_mkfs_sized $((256 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount || _fail "mount failed" +# This is a test of xattr behavior when we run out of disk space for xattrs, +# so make sure the pwrite goes to the data device and not the rt volume. +test "$FSTYP" = "xfs" && \ + $XFS_IO_PROG -c 'chattr -t' $SCRATCH_MNT + TFILE=$SCRATCH_MNT/testfile.$seq # Create the test file and choose its permissions From patchwork Wed Apr 28 04:09:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 12227945 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF2DAC433ED for ; Wed, 28 Apr 2021 04:09:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C0419613F1 for ; Wed, 28 Apr 2021 04:09:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231600AbhD1EKG (ORCPT ); Wed, 28 Apr 2021 00:10:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:54228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbhD1EKD (ORCPT ); Wed, 28 Apr 2021 00:10:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5C68D613ED; Wed, 28 Apr 2021 04:09:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619582959; bh=R7nCZy89RdQgnqUbWy/r0m10bWwb7qxNH36FxMAD6+U=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=rusUT98eVi8KcSqYCSq4W7PPbzM1U2p8DLU5mO3uNWFQwGpIJntJEia6OPOcYZt1l n4A/7RqH0reiPBKbTo8tEZjQOhTJHulSQyhrZVSHDUjHHF6t0uFl3B+Ivz/FonZI1T 8YLhVMBiGmQW6RG7l/8Lq+qF3HSex35avFH0FQ2b2CfzaVtNBXhAaGm0GZpfcxLRBM iP7Giwe3Yb7o9t/sFSdzq9SKK/SW65LoOb9r4i1FnIZxkbpPidRH7zPBSqcqbmlqdo BAC0+JqeD7F99pkqrOdAA7HVr3L+uqpSeGheCaq78Q3tlx+kf8NyBMIIemdSpG/B0H QsI7jCcEHf+WQ== Subject: [PATCH 4/5] xfs/004: don't fail test due to realtime files From: "Darrick J. Wong" To: djwong@kernel.org, guaneryu@gmail.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org, guan@eryu.me Date: Tue, 27 Apr 2021 21:09:18 -0700 Message-ID: <161958295873.3452351.8562454394626118217.stgit@magnolia> In-Reply-To: <161958293466.3452351.14394620932744162301.stgit@magnolia> References: <161958293466.3452351.14394620932744162301.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org From: Darrick J. Wong This test exercises xfs_db functionality that relates to the free space btrees on the data device. Therefore, make sure that the files we create are not realtime files. Signed-off-by: Darrick J. Wong Reviewed-by: Brian Foster --- tests/xfs/004 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/xfs/004 b/tests/xfs/004 index 141cf03a..7633071c 100755 --- a/tests/xfs/004 +++ b/tests/xfs/004 @@ -28,6 +28,10 @@ _populate_scratch() _scratch_mkfs_xfs | tee -a $seqres.full | _filter_mkfs 2>$tmp.mkfs . $tmp.mkfs _scratch_mount + # This test looks at specific behaviors of the xfs_db freesp command, + # which reports on the contents of the free space btrees for the data + # device. Don't let anything get created on the realtime volume. + $XFS_IO_PROG -c 'chattr -t' $SCRATCH_MNT dd if=/dev/zero of=$SCRATCH_MNT/foo count=200 bs=4096 >/dev/null 2>&1 & dd if=/dev/zero of=$SCRATCH_MNT/goo count=400 bs=4096 >/dev/null 2>&1 & dd if=/dev/zero of=$SCRATCH_MNT/moo count=800 bs=4096 >/dev/null 2>&1 & From patchwork Wed Apr 28 04:09:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 12227947 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 117E5C433B4 for ; Wed, 28 Apr 2021 04:09:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E0343613F1 for ; Wed, 28 Apr 2021 04:09:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229437AbhD1EKK (ORCPT ); Wed, 28 Apr 2021 00:10:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:54316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234436AbhD1EKJ (ORCPT ); Wed, 28 Apr 2021 00:10:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5FE08613F9; Wed, 28 Apr 2021 04:09:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619582965; bh=vCQs2qZKXCWNOopS++qbkc0wL7f4psbDajdHIaGIPjg=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=CjU6AE4+iDWz3zVDrNMFc1Zn/t4bxaqGQL8vHLmxhdeYOl3q2K0SzYcIpXoISLLhz BOKFas/hNHDgGu38AwX0CPCL+q371eANqqxU/bcER6FqJe+KWCAmeDrPRyCBvZSpG1 6E2V6DBWAdY2MNXeXENwfKC8nsGHelvbCpIoNczzdhv9g+7FU25C2H4QgC+n1Qom78 MZiHB93XY/CVXDeoKipSjbEHBjzy0RyHNRFMMfDKB279/0d4/7UFSQPIK199qK7p17 IxLoNCU3xGpB5VbhgNQlITpiVYtYboYjgBgbupQKD+IrIEpuM1yspZ8se2XePV8d7/ PqlwJncY537zA== Subject: [PATCH 5/5] xfs/49[12]: skip pre-lazysbcount filesystems From: "Darrick J. Wong" To: djwong@kernel.org, guaneryu@gmail.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org, guan@eryu.me Date: Tue, 27 Apr 2021 21:09:24 -0700 Message-ID: <161958296475.3452351.7075798777673076839.stgit@magnolia> In-Reply-To: <161958293466.3452351.14394620932744162301.stgit@magnolia> References: <161958293466.3452351.14394620932744162301.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org From: Darrick J. Wong Prior to lazysbcount, the xfs mount code blindly trusted the value of the fdblocks counter in the primary super, which means that the kernel doesn't detect the fuzzed fdblocks value at all. V4 is deprecated and pre-lazysbcount V4 hasn't been the default for ~14 years, so we'll just skip these two tests on those old filesystems. Signed-off-by: Darrick J. Wong --- tests/xfs/491 | 5 +++++ tests/xfs/492 | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/tests/xfs/491 b/tests/xfs/491 index 6420202b..9fd0ab56 100755 --- a/tests/xfs/491 +++ b/tests/xfs/491 @@ -36,6 +36,11 @@ _require_scratch echo "Format and mount" _scratch_mkfs > $seqres.full 2>&1 + +# pre-lazysbcount filesystems blindly trust the primary sb fdblocks +_check_scratch_xfs_features LAZYSBCOUNT &>/dev/null || \ + _notrun "filesystem requires lazysbcount" + _scratch_mount >> $seqres.full 2>&1 echo "test file" > $SCRATCH_MNT/testfile diff --git a/tests/xfs/492 b/tests/xfs/492 index 522def47..c4b087b5 100755 --- a/tests/xfs/492 +++ b/tests/xfs/492 @@ -36,6 +36,11 @@ _require_scratch echo "Format and mount" _scratch_mkfs > $seqres.full 2>&1 + +# pre-lazysbcount filesystems blindly trust the primary sb fdblocks +_check_scratch_xfs_features LAZYSBCOUNT &>/dev/null || \ + _notrun "filesystem requires lazysbcount" + _scratch_mount >> $seqres.full 2>&1 echo "test file" > $SCRATCH_MNT/testfile