From: Christoph Hellwig Date: Thu, 8 May 2025 05:34:35 +0000 (+0200) Subject: xfs: add a test to check that data growfs fails with internal rt device X-Git-Tag: v2025.05.11~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ac4afb483f4e735d493cfd126c9f8b1d37cb9ca9;p=xfstests-dev.git xfs: add a test to check that data growfs fails with internal rt device The internal RT device directly follows the data device on the same block device. This implies the data device can't be grown, and growfs should handle this gracefully. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/tests/xfs/637 b/tests/xfs/637 new file mode 100755 index 00000000..92d727fc --- /dev/null +++ b/tests/xfs/637 @@ -0,0 +1,24 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2024 Christoph Hellwig. +# +# FS QA Test No. 637 +# +# Check that trying to grow a data device followed by the internal RT device +# fails gracefully with EINVAL. +# +. ./common/preamble +_begin_fstest quick auto growfs ioctl zone + +_require_scratch +_require_zoned_device $SCRATCH_DEV + +echo "Creating file system" +_scratch_mkfs_xfs >>$seqres.full 2>&1 +_scratch_mount + +echo "Trying to grow file system (should fail)" +$XFS_GROWFS_PROG -d $SCRATCH_MNT >>$seqres.full 2>&1 + +status=0 +exit diff --git a/tests/xfs/637.out b/tests/xfs/637.out new file mode 100644 index 00000000..2dcf668d --- /dev/null +++ b/tests/xfs/637.out @@ -0,0 +1,3 @@ +QA output created by 637 +Creating file system +Trying to grow file system (should fail)