/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _LAYOUT_REQUEST_H
#define _LAYOUT_REQUEST_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include "libdiskmgt.h"
#include "volume_dlist.h"
#include "volume_defaults.h"
#include "volume_devconfig.h"
/* XXX these are really in layout.c */
extern int release_request_caches();
extern int set_request_diskset(char *disksset);
extern char *get_request_diskset();
extern void unset_request_diskset();
extern void unset_toplevel_request();
extern void unset_request_defaults();
extern int get_device_access_name(
char **name);
/*
* get list of HBAs, disks or slices that are available
* to satisfy the given request
*/
extern int slice_is_available(
char *name,
boolean_t *bool);
extern int disks_get_avail_slices(
extern int select_hbas_with_n_disks(
int mindisks,
extern int hba_get_avail_disks_and_space(
/*
* get lists of HBAs and disks that are used by volumes
*/
extern int get_hbas_and_disks_used_by_volumes(
extern int get_hbas_and_disks_used_by_volume(
/*
* accessors to get user-settable device parameters,
* values come from either the request or the diskset
* or global defaults
*/
extern int get_stripe_min_comp(
extern int get_stripe_max_comp(
extern int get_stripe_interlace(
extern int get_mirror_read_strategy(
extern int get_mirror_write_strategy(
extern int get_mirror_pass(
extern int get_mirror_nsubs(
extern int get_volume_faultrecov(
extern int get_volume_redundancy_level(
extern int get_volume_npaths(
extern int get_default_hsp_name(
char **name);
extern int get_disks_for_target(
char *name,
#ifdef __cplusplus
}
#endif
#endif /* _LAYOUT_REQUEST_H */