xfstests: handle xfs_quota output w/ long devicenames

Long device names may be split onto their own line
on quota output:

Filesystem   Blocks  Quota  Limit Warn/Time    Mounted on
/dev/mapper/my-very-very-very-long-devicename
                48M      0      0  00 [------] /mnt/scratch

which breaks tests that capture quota output - currently,
only xfs/108.

Add a _filter_quota() which fixes this.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
Eric Sandeen
2013-10-06 22:46:19 +00:00
committed by Rich Johnston
parent fc671750a5
commit cd7eb340dd
2 changed files with 12 additions and 3 deletions
+3 -3
View File
@@ -71,9 +71,9 @@ test_accounting()
for file in $SCRATCH_MNT/{buffer,direct,mmap}; do
$here/src/lstat64 $file | head -3 | _filter_scratch
done
xfs_quota -c "quota -hnb -$type $id" $QARGS | _filter_scratch | _filter_spaces
xfs_quota -c "quota -hni -$type $id" $QARGS | _filter_scratch | _filter_spaces
xfs_quota -c "quota -hnr -$type $id" $QARGS | _filter_scratch | _filter_spaces
xfs_quota -c "quota -hnb -$type $id" $QARGS | _filter_quota
xfs_quota -c "quota -hni -$type $id" $QARGS | _filter_quota
xfs_quota -c "quota -hnr -$type $id" $QARGS | _filter_quota
}
export MOUNT_OPTIONS="-opquota"