From: Qu Wenruo Date: Mon, 11 Jul 2016 22:27:17 +0000 (-0700) Subject: btrfs/079: Fix wrong value passed to available space check X-Git-Tag: v2022.05.01~2440 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=20abd130a8daa423adc0b62aa4aaca1b03549eab;p=users%2Fhch%2Fxfstests-dev.git btrfs/079: Fix wrong value passed to available space check Wrong value is passed to _require_fs_space, which should be in unit of kilobyte(1024), but passed in unit of gigabyte(1024^3). Reviewed-by: David Sterba Signed-off-by: Qu Wenruo Signed-off-by: Eryu Guan --- diff --git a/tests/btrfs/079 b/tests/btrfs/079 index 6aee3a373..ed4eb727e 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() {