common/xfs: refactor agcount calculation for mounted filesystems
[xfstests-dev.git] / tests / xfs / 091
index 5d6cd363ad26e94f9350e70bb43ff0cedc22dd97..be56d8ae413180ef03a10f5289bca57b0820d40f 100755 (executable)
@@ -64,7 +64,7 @@ for x in `seq 2 64`; do
        touch "${TESTFILE}.${x}"
 done
 inode="$(stat -c '%i' "${TESTFILE}.1")"
-agcount="$($XFS_INFO_PROG "${SCRATCH_MNT}" | grep agcount= | sed -e 's/^.*agcount=\([0-9]*\),.*$/\1/g')"
+agcount="$(_xfs_mount_agcount $SCRATCH_MNT)"
 umount "${SCRATCH_MNT}"
 
 echo "+ check fs"