Signed-off-by: Christoph Hellwig <hch@lst.de>
case $FSTYP in
xfs)
local rt_ops
+ local zone_type=`_zone_type $SCRATCH_DEV`
if [ -b "$SCRATCH_RTDEV" ]; then
local rtdevsize=`blockdev --getsize64 $SCRATCH_RTDEV`
_notrun "Scratch rt device too small"
fi
rt_ops="-r size=$fssize"
+ elif [ "${zone_type}" != "none" ] ||
+ [[ $MKFS_OPTIONS =~ "zoned=1" ]]; then
+ # Maybe also add back the size check, but it'll require
+ # somewhat complicated arithmetics for the size of the
+ # conventional zones
+ rt_ops="-r size=$fssize"
fi
# don't override MKFS_OPTIONS that set a block size.