From: Christoph Hellwig Date: Thu, 18 Feb 2016 23:51:47 +0000 (+1100) Subject: common: fix _require_fs_space on remote file systems X-Git-Tag: v2022.05.01~2596 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b7441181b158170a7ecf2e7c4746eced020d77e3;p=xfstests-dev.git common: fix _require_fs_space on remote file systems Remove the -l flag to df so that it works properly on NFS and co. This fixes various failures in new COW tests on NFS. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/common/rc b/common/rc index 3e98bcb8..af16c815 100644 --- a/common/rc +++ b/common/rc @@ -1927,7 +1927,7 @@ _require_fs_space() BLOCKS=$2 # in units of 1024 let GB=$BLOCKS/1024/1024 - FREE_BLOCKS=`df -klP $MNT | grep -v Filesystem | awk '{print $4}'` + FREE_BLOCKS=`df -kP $MNT | grep -v Filesystem | awk '{print $4}'` [ $FREE_BLOCKS -lt $BLOCKS ] && \ _notrun "This test requires at least ${GB}GB free on $MNT to run" }