+ if [[ $fstype == "zfs" ]] && [[ ${OSTSIZE} -lt ${zmin} ]]; then
+ local real_dev=$(ostvdevname $num)
+ local num_sectors=$(get_num_sectors $facet $real_dev)
+ local phy_bytes=$((num_sectors * 512))
+
+ if [ ${phy_bytes} -lt ${zmin} ] ; then
+ log "ost${num}: OSTSIZE ${OSTSIZE} less than 30GiB"
+ log "ost${num}: Block device ${phy_bytes} too small"
+ log " .. skipping this ost"
+ continue
+ fi
+ # Backing block device is big enough
+ skipped=0
+ log "ost${num}: OSTSIZE ${OSTSIZE} too small, increasing to 30GiB [temporarily]"
+ format_ost ${num}
+ # NOTE: OSTSIZE is in KB
+ export OSTSIZE=$((zmin >> 10))
+ fi
+
+ # Mount the OST as an ldiskfs or zfs filesystem.