private static int toBlockCount(long size, int blockSize) {
    return (int) LongMath.divide(size, blockSize, RoundingMode.FLOOR);
  }
Returns the nearest multiple of {@code blockSize} that is <= {@code size}.
jimfs/src/main/java/com/google/common/jimfs/HeapDisk.java