def _enough_avail_space_on_disk(partition_size_mib, idisk):
    """Checks that there is enough space on the disk to accommodate the
    required partition.
    :returns None if the disk can't accommodate the partition
             The disk's ID if the disk can accommodate the partition
    """
    return idisk.available_mib >= partition_size_mib