tests/btrfs/012: check size after mounted
PATCH v2 1/1 tests/btrfs/012: check size after mounted
move '_require_fs_space' after mounted.
==before patch==
btrfs/012 [not run] This test requires at least 0GB free on /fs/scratch to run
==after patch==
btrfs/012 189s ... 194s
Ran: btrfs/012
Passed all 1 tests
--- tests/btrfs/012 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/btrfs/012 +2 -2
@@ -31,8 +31,6 @@ _require_command "$E2FSCK_PROG" e2fsck # ext4 does not support zoned block device _require_non_zoned_device "${SCRATCH_DEV}" -_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
@@ -41,6 +39,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
Signature · 1 line
2.20.1
Quoted 6 lines · Zhu Yifei
move '
_require_fs_space' after mounted.==before patch==
btrfs/012 [not run] This test requires at least 0GB free on /fs/scratch to run
Quoted 6 lines
==after patch==
btrfs/012 189s ... 194s
Ran: btrfs/012
Passed all 1 testsSigned-off-by Zhu Yifei <[email protected]>
Looks good,
In the future, for any changes related to btrfs tests, can you also please cc [email protected]?
Thanks.
Quoted 29 lines
--- tests/btrfs/012 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tests/btrfs/012 +2
-3@@ -31,8 +31,6 @@ _require_command "$E2FSCK_PROG" e2fsck # ext4 does not support zoned block device _require_non_zoned_device "${SCRATCH_DEV}" -_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@@ -41,6 +39,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 --2.20.1
Signature · 3 lines
Filipe David Manana, “Whether you think you can, or you think you can't — you're right.”
Quoted 24 lines
-----Original Message-----
From: Filipe Manana <[email protected]>
Sent: Monday, October 25, 2021 6:35 PM
To: Zhu, YifeiX <[email protected]>
Cc: Eryu <[email protected]>; fstests <[email protected]>; Li, Philip <[email protected]>
Subject: Re: [PATCH v2 xfstests-dev] tests/btrfs/012: check size after mountedQuoted 5 lines · Zhu Yifei
move '
_require_fs_space' after mounted.==before patch==
btrfs/012 [not run] This test requires at least 0GB free on /fs/scratch torun
Quoted 6 lines
==after patch==
btrfs/012 189s ... 194s
Ran: btrfs/012
Passed all 1 tests
Quoted 9 lines
Quoted 1 line
Signed-off-by Zhu Yifei <[email protected]>Looks good,
Reviewed-by Filipe Manana <[email protected]>In the future, for any changes related to btrfs tests, can you also please cc [email protected]?
Ok, got it, let me resend and cc linux-btrfs.
Quoted 40 lines
Thanks.
tests/btrfs/012 _require_command "$E2FSCK_PROG" e2fsck # ext4
Quoted 9 lines
--- tests/btrfs/012 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tests/btrfs/012 index renamed from tests/btrfs/012 +0
-0
3040a655..29552b14100755tests/btrfs/012 +0
-0@@ -31,8 +31,6 @@ _require_command "$E2FSCK_PROG" e2fsck # ext4does
Quoted 10 lines
not support zoned block device
_require_non_zoned_device"${SCRATCH_DEV}"-_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 @@ -41,6 +39,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 mountQuoted 10 lines
tests/btrfs/012 +3
-2-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 --2.20.1
--
Filipe David Manana,“Whether you think you can, or you think you can't — you're right.”