xfstests: Make 204 work with different block and inode sizes.

Otherwise it fails with ENOSPC on CRC enabled filesystems because
of the larger inode size.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
Dave Chinner
2013-09-03 00:14:55 +00:00
committed by Rich Johnston
parent f7433693f4
commit a4d5b247b5
2 changed files with 40 additions and 6 deletions
+9 -1
View File
@@ -131,9 +131,17 @@ _filter_date()
}
# prints filtered output on stdout, values (use eval) on stderr
#
# Non XFS filesystems always return a 4k block size and a 256 byte inode.
_filter_mkfs()
{
case $FSTYP in
xfs)
;;
*)
perl -e 'print STDERR "dbsize=4096\nisize=256\n"'
return ;;
esac
set -
perl -ne '
if (/^meta-data=([\w,|\/.-]+)\s+isize=(\d+)\s+agcount=(\d+), agsize=(\d+) blks/) {