[PATCH] xfstests: tests/generic: added -P option to df
Dave Chinner
david at fromorbit.com
Mon Oct 28 16:44:44 CDT 2013
On Tue, Oct 22, 2013 at 04:13:55PM +0400, Stanislav Kholmanskikh wrote:
> 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 at oracle.com>
> ---
> tests/generic/251 | 2 +-
> tests/generic/260 | 2 +-
> tests/generic/273 | 2 +-
> tests/generic/275 | 2 +-
> 4 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/tests/generic/251 b/tests/generic/251
> index 4126f15..eca3b0d 100755
> --- a/tests/generic/251
> +++ b/tests/generic/251
> @@ -89,7 +89,7 @@ _guess_max_minlen()
> fstrim_loop()
> {
> trap "_destroy_fstrim; exit \$status" 2 15
> - fsize=$(df | grep $SCRATCH_MNT | grep $SCRATCH_DEV | awk '{print $2}')
> + fsize=$(df -P | grep $SCRATCH_MNT | grep $SCRATCH_DEV | awk '{print $2}')
Convert to $DF_PROG and add the -P flag to that variable, please.
Cheers,
Dave.
--
Dave Chinner
david at fromorbit.com
More information about the xfs
mailing list