public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix _require_fs_space on remote file systems
@ 2016-02-17 10:23 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2016-02-17 10:23 UTC (permalink / raw)
  To: fstests

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 <hch@lst.de>

diff --git a/common/rc b/common/rc
index 6abd52d..c91a2f0 100644
--- a/common/rc
+++ b/common/rc
@@ -1906,7 +1906,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"
 }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-17 10:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-17 10:23 [PATCH] fix _require_fs_space on remote file systems Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox