mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: added -P option to $DF_PROG
Added -P option to $DF_PROG and changed the invocation of
'df' command in generic/{251,260,273,275} testcases
with $DF_PROG.
Otherwise the testcases will fail if the scratch
device has a long name (for example, if it's an LVM volume).
Because df outputs its usage stats with two lines:
/dev/mapper/xfstests-disk1
3030800 4608 2868908 1% /tmp/mnt/disk1
Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
committed by
Rich Johnston
parent
efbdf561bd
commit
bfdd1e72b3
+1
-1
@@ -151,7 +151,7 @@ export PS_ALL_FLAGS="-ef"
|
||||
|
||||
export DF_PROG="`set_prog_path df`"
|
||||
[ "$DF_PROG" = "" ] && _fatal "df not found"
|
||||
[ "$HOSTOS" = "Linux" ] && export DF_PROG="$DF_PROG -T"
|
||||
[ "$HOSTOS" = "Linux" ] && export DF_PROG="$DF_PROG -T -P"
|
||||
|
||||
export XFS_LOGPRINT_PROG="`set_prog_path xfs_logprint`"
|
||||
export XFS_REPAIR_PROG="`set_prog_path xfs_repair`"
|
||||
|
||||
Reference in New Issue
Block a user