Without this, 273 was failing in cryptic ways for me
if the device size was < 2G.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
[ -z "$blocksize" ] && blocksize=4096
blocks=`expr $fssize / $blocksize`
+ if [ "$HOSTOS" == "Linux" ]; then
+ devsize=`blockdev --getsize64 $SCRATCH_DEV`
+ [ "$fssize" -gt "$devsize" ] && _notrun "Scratch device too small"
+ fi
+
case $FSTYP in
xfs)
_scratch_mkfs_xfs -d size=$fssize -b size=$blocksize