Remaining patches to fix up tmpfs testing
cover Remaining patches to fix up tmpfs testing
These commits had some outstanding review comments, which have been addressed in this patch series.
Hugh Dickins (1):
xfstests: remove dependency on /proc/partitions for generic/312
Theodore Ts'o (3):
generic: add _require_odirect for generic/125
defrag: require extents support for ext4 defrag
common: filter warning messages from mkfs.ext4
common/defrag | 4 +++- common/rc | 2 +- tests/generic/125 | 1 + tests/generic/312 | 5 ----- tests/generic/group | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-)
Signature · 1 line
2.5.0
PATCH 1/4 xfstests: remove dependency on /proc/partitions for generic/312
From: Hugh Dickins <[email protected]>
We don't need to do this test at all, since _scratch_mkfs_sized will
do this check for us. This allows this test to work with tmpfs.
--- tests/generic/312 | 5 ----- 1 file changed, 5 deletions(-)
tests/generic/312 +0 -5
@@ -51,11 +51,6 @@ _require_scratch # 5G in byte fssize=$((2**30 * 5)) -required_blocks=$(($fssize / 1024)) -dev_blocks=$(grep -w $(_short_dev $SCRATCH_DEV) /proc/partitions | $AWK_PROG '{print $3}') -if [ $required_blocks -gt $dev_blocks ];then - _notrun "this test requires \$SCRATCH_DEV has ${fssize}B space" -fi rm -f $seqres.full _scratch_mkfs_sized $fssize >>$seqres.full 2>&1
Signature · 1 line
2.5.0
Re: [PATCH 1/4] xfstests: remove dependency on /proc/partitions for generic/312
Looks fine,
PATCH 2/4 generic: add _require_odirect for generic/125
In reply to Theodore Ts'oAlso remove generic/125 from the auto group, and add it to the new pnfs group. This is to document where this test might be useful; it's not really going to be useful for most normal on-disk file systems, so remove it from the auto group.
--- tests/generic/125 | 1 + tests/generic/group | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
tests/generic/125 +1 -0
@@ -41,6 +41,7 @@ _supported_os Linux _require_test _require_user +_require_odirect TESTDIR=$TEST_DIR/ftrunc TESTFILE=$TESTDIR/ftrunc.tmp
tests/generic/group +1 -1
@@ -127,7 +127,7 @@ 122 auto quick clone dedupe 123 perms auto quick 124 pattern auto quick -125 other auto +125 other pnfs 126 perms auto quick 127 rw auto 128 perms auto quick
Signature · 1 line
2.5.0
Re: [PATCH 2/4] generic: add _require_odirect for generic/125
Looks fine,
PATCH 3/4 defrag: require extents support for ext4 defrag
In reply to Theodore Ts'oThe e4defrag program requires the use of fallocate, which in turn means that the file system must have extents. Enforce this requirement so we don't get test failure noise when testing ext4's ext3 compatibility.
--- common/defrag | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
common/defrag +3 -1
@@ -27,7 +27,9 @@ _require_defrag() DEFRAG_PROG="$XFS_FSR_PROG" ;; ext4|ext4dev) - DEFRAG_PROG="$E4DEFRAG_PROG" + DEFRAG_PROG="$E4DEFRAG_PROG" + dumpe2fs -h $SCRATCH_DEV 2> /dev/null | grep -wq extent || \ + _notrun "file system does not have extents, needed for defrag" ;; btrfs) DEFRAG_PROG="$BTRFS_UTIL_PROG filesystem defragment"
Signature · 1 line
2.5.0
Re: [PATCH 3/4] defrag: require extents support for ext4 defrag
Looks fine,
PATCH 4/4 common: filter warning messages from mkfs.ext4
In reply to Theodore Ts'oCommit 4a5cda8102828 ("xfstests: do not unmount tmpfs during remount") changed generic/135 to no longer redirect stderr to /dev/null when running _scratch_mkfs. This caused ext4 using a 1k block size to fail when running this test because mkfs.ext4 would issue a warning message about the use of a non-block size that wasn't expected by golden output for the test. Fix this by filtering out warning messages in _scratch_mkfs_ext4.
--- common/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/rc +1 -1
@@ -655,7 +655,7 @@ _scratch_mkfs_ext4() fi # output stored mkfs output - cat $tmp_dir.mkfserr >&2 + grep -v ^Warning: $tmp_dir.mkfserr >&2 cat $tmp_dir.mkfsstd rm -f $tmp_dir.mkfserr $tmp_dir.mkfsstd
Signature · 1 line
2.5.0
Re: [PATCH 4/4] common: filter warning messages from mkfs.ext4
Looks fine,