def get_allocate_size(node, vol):
    """Determine 'allocate_size' value for a given volume
    """
    if len(node.meta['disks']) == 1 and vol['allocate_size'] == 'full-disk':
        return 'all'
    else:
        return vol['allocate_size']