[PATCH] fix _require_fs_space on remote file systems

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



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@xxxxxx>

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"
 }
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux