generic/273: Remove hard coded block size
authorChandan Rajendra <chandan@linux.vnet.ibm.com>
Mon, 9 May 2016 00:45:19 +0000 (10:45 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 9 May 2016 00:45:19 +0000 (10:45 +1000)
commit9cafe2a12da367b50778e4af844cb6b80be06808
tree9729a50d144f820192c98b35172eb51b4572b301
parent9ad045acc8d339c587b1a5843ac14cddd3cd01b4
generic/273: Remove hard coded block size

The space occupied by files in the 'origin' directory is calculated with
the assumption that 4k is the block size of the underlying filesystem.
This causes the test to fail with ENOSPC errors when running on
filesystems with larger block sizes. To fix the issue, this commit makes
use of the the block size obtained from the mounted filesystem.

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/273