mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs: abstract xfs_info into $XFS_INFO_PROG
Abstract calls to xfs_info into $XFS_INFO_PROG like we do for all other xfs utilities. [Eryu: require xfs_info to be present if FSTYP is xfs] Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
0fca2e5233
commit
4609a0009d
+1
-1
@@ -61,7 +61,7 @@ _scratch_mkfs_xfs > /dev/null
|
||||
|
||||
echo "+ mount fs image"
|
||||
_scratch_mount
|
||||
dblksz="$(xfs_info "${SCRATCH_MNT}" | grep naming.*bsize | sed -e 's/^.*bsize=//g' -e 's/\([0-9]*\).*$/\1/g')"
|
||||
dblksz="$($XFS_INFO_PROG "${SCRATCH_MNT}" | grep naming.*bsize | sed -e 's/^.*bsize=//g' -e 's/\([0-9]*\).*$/\1/g')"
|
||||
nr="$((dblksz / 12))"
|
||||
blksz="$(stat -f -c '%s' "${SCRATCH_MNT}")"
|
||||
leaf_lblk="$((32 * 1073741824 / blksz))"
|
||||
|
||||
Reference in New Issue
Block a user