common: fix _require_fs_space on remote file systems
authorChristoph Hellwig <hch@infradead.org>
Thu, 18 Feb 2016 23:51:47 +0000 (10:51 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Feb 2016 23:51:47 +0000 (10:51 +1100)
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>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc

index 3e98bcb8544dc8cb064843213f4e4c4da6b67e09..af16c81509ca33faf2c1de00f665f8879da719cf 100644 (file)
--- 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"
 }