diff mbox

[RESEND,v2] fstests: btrfs/079: Fix wrong value passed to available space check.

Message ID 54913a3d3aca9142fe5ebf3ee06ff6e7a7736678.1468275843.git.osandov@fb.com (mailing list archive)
State New, archived
Headers show

Commit Message

Omar Sandoval July 11, 2016, 10:27 p.m. UTC
From: Qu Wenruo <quwenruo@cn.fujitsu.com>

Wrong value is passed to _require_fs_space, which should be in unit of
kilobyte(1024), but passed in unit of gigabyte(1024^3).

Fix it.

Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
---
This is from January of last year, looks like it fell through the cracks.

 tests/btrfs/079 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/tests/btrfs/079 b/tests/btrfs/079
index 6aee3a373f91..ed4eb727ee2b 100755
--- a/tests/btrfs/079
+++ b/tests/btrfs/079
@@ -72,7 +72,7 @@  rm -f $seqres.full
 
 _scratch_mkfs >>$seqres.full 2>&1
 _scratch_mount
-_require_fs_space $SCRATCH_MNT $(($filesize / 1024 / 1024 / 1024))
+_require_fs_space $SCRATCH_MNT $(($filesize / 1024))
 $XFS_IO_PROG -f -c "falloc 0 $filesize" $testfile
 
 dd_work() {