* [PATCH xfstests] btrfs/012: check size after mounted
@ 2021-10-21 1:59 Zhu, YifeiX
2021-10-24 16:00 ` Eryu Guan
0 siblings, 1 reply; 2+ messages in thread
From: Zhu, YifeiX @ 2021-10-21 1:59 UTC (permalink / raw)
To: fstests@vger.kernel.org; +Cc: Li, Philip, Ma, XinjianX, Li, ZhijianX
check the disk size is enougth for test, should move '_require_fs_space' after mounted.
fix error:
btrfs/012 [not run] This test requires at least 0GB free on /fs/scratch to run
Signed-off-by: Zhu Yifei <yifeix.zhu@intel.com>
---
tests/btrfs/012 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/btrfs/012 b/tests/btrfs/012 index 46341e9..8b11cf9 100755
--- a/tests/btrfs/012
+++ b/tests/btrfs/012
@@ -29,8 +29,6 @@ _require_command "$BTRFS_CONVERT_PROG" btrfs-convert _require_command "$MKFS_EXT4_PROG" mkfs.ext4 _require_command "$E2FSCK_PROG" e2fsck
-_require_fs_space $SCRATCH_MNT $(du -s /lib/modules/`uname -r` | ${AWK_PROG} '{print $1}')
-
BLOCK_SIZE=`_get_block_size $TEST_DIR`
# Create & populate an ext4 filesystem
@@ -39,6 +37,8 @@ $MKFS_EXT4_PROG -F -b $BLOCK_SIZE $SCRATCH_DEV > $seqres.full 2>&1 || \ # Manual mount so we don't use -t btrfs or selinux context mount -t ext4 $SCRATCH_DEV $SCRATCH_MNT
+_require_fs_space $SCRATCH_MNT $(du -s /lib/modules/`uname -r` |
+${AWK_PROG} '{print $1}')
+
cp -aR /lib/modules/`uname -r`/ $SCRATCH_MNT _scratch_unmount
--
1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH xfstests] btrfs/012: check size after mounted
2021-10-21 1:59 [PATCH xfstests] btrfs/012: check size after mounted Zhu, YifeiX
@ 2021-10-24 16:00 ` Eryu Guan
0 siblings, 0 replies; 2+ messages in thread
From: Eryu Guan @ 2021-10-24 16:00 UTC (permalink / raw)
To: Zhu, YifeiX
Cc: fstests@vger.kernel.org, Li, Philip, Ma, XinjianX, Li, ZhijianX
On Thu, Oct 21, 2021 at 01:59:04AM +0000, Zhu, YifeiX wrote:
> check the disk size is enougth for test, should move '_require_fs_space' after mounted.
> fix error:
> btrfs/012 [not run] This test requires at least 0GB free on /fs/scratch to run
>
> Signed-off-by: Zhu Yifei <yifeix.zhu@intel.com>
> ---
> tests/btrfs/012 | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/btrfs/012 b/tests/btrfs/012 index 46341e9..8b11cf9 100755
> --- a/tests/btrfs/012
> +++ b/tests/btrfs/012
> @@ -29,8 +29,6 @@ _require_command "$BTRFS_CONVERT_PROG" btrfs-convert _require_command "$MKFS_EXT4_PROG" mkfs.ext4 _require_command "$E2FSCK_PROG" e2fsck
This patch doesn't apply, and it seems the above context is somwhow
merged into one line, would you please double check?
>
> -_require_fs_space $SCRATCH_MNT $(du -s /lib/modules/`uname -r` | ${AWK_PROG} '{print $1}')
> -
> BLOCK_SIZE=`_get_block_size $TEST_DIR`
>
> # Create & populate an ext4 filesystem
> @@ -39,6 +37,8 @@ $MKFS_EXT4_PROG -F -b $BLOCK_SIZE $SCRATCH_DEV > $seqres.full 2>&1 || \ # Manual mount so we don't use -t btrfs or selinux context mount -t ext4 $SCRATCH_DEV $SCRATCH_MNT
>
> +_require_fs_space $SCRATCH_MNT $(du -s /lib/modules/`uname -r` |
Trailing whitespace introduced in above line.
Thanks,
Eryu
> +${AWK_PROG} '{print $1}')
> +
> cp -aR /lib/modules/`uname -r`/ $SCRATCH_MNT _scratch_unmount
>
> --
> 1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-24 16:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-21 1:59 [PATCH xfstests] btrfs/012: check size after mounted Zhu, YifeiX
2021-10-24 16:00 ` Eryu Guan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox