shift
local def_blksz
local blocksize_opt
- local rt_ops
case $FSTYP in
xfs)
[ "$fssize" -gt "$devsize" ] && _notrun "Scratch device too small"
fi
- if [ "$FSTYP" = "xfs" ] && [ -b "$SCRATCH_RTDEV" ]; then
- local rtdevsize=`blockdev --getsize64 $SCRATCH_RTDEV`
- [ "$fssize" -gt "$rtdevsize" ] && _notrun "Scratch rt device too small"
- rt_ops="-r size=$fssize"
- fi
-
case $FSTYP in
xfs)
+ local rt_ops
+
+ if [ -b "$SCRATCH_RTDEV" ]; then
+ local rtdevsize=`blockdev --getsize64 $SCRATCH_RTDEV`
+ if [ "$fssize" -gt "$rtdevsize" ]; then
+ _notrun "Scratch rt device too small"
+ fi
+ rt_ops="-r size=$fssize"
+ fi
+
# don't override MKFS_OPTIONS that set a block size.
echo $MKFS_OPTIONS |grep -E -q "b\s*size="
if [ $? -eq 0 ]; then