2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * This file is a combination of interfaces culled from scstat.h, 2N/A * It exposes a subset of the interfaces defined in PSARC/2001/261 2N/A * for use in NWS software. 2N/A OFFLINE,
/* resource is stopped due to user action */ 2N/A FAULTED,
/* resource is stopped due to a failure */ 2N/A DEGRADED,
/* resource is running but has a minor problem */ 2N/A WAIT,
/* resource is in transition from a state to another */ 2N/A * resource is monitored but state of the resource is 2N/A * not known because either the monitor went down or 2N/A * the monitor cannot report resource state temporarily. 2N/A/* Error codes returned by scstat functions. */ 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A/* States a resource can be in */ 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A/* States a replica of a resource can be in */ 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A/* ha device node status list */ 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A/* Cluster node status */ 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A /* PSARC/2001/261. */ 2N/A/* Cluster ha device status */ 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A /* ha device name */ 2N/A /* ha device status */ 2N/A /* ha device statstr */ 2N/A /* node preference list */ 2N/A * Map scstat_errno_t to a string. 2N/A * The supplied "errbuffer" should be of at least SCSTAT_MAX_STRING_LEN 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A * Upon success, a list of objects of scstat_node_t are returned. 2N/A * The caller is responsible for freeing the space. 2N/A * Possible return values: 2N/A * SCSTAT_NOERR - success 2N/A * SCSTAT_ENOMEM - not enough memory 2N/A * SCSTAT_EPERM - not root 2N/A * SCSTAT_ENOTCLUSTER - there is no cluster 2N/A * SCCONF_EINVAL - invalid argument 2N/A * SCSTAT_EUNEXPECTED - internal or unexpected error 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A * Free all memory associated with a scstat_node_t structure. 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A * If the device service name passed in is NULL, then this function returns 2N/A * the status of all device services, otherwise it returns the status of the 2N/A * device service specified. 2N/A * The caller is responsible for freeing the space. 2N/A * Possible return values: 2N/A * SCSTAT_ENOERR - success 2N/A * SCSTAT_ENOMEM - not enough memory 2N/A * SCSTAT_EPERM - not root 2N/A * SCSTAT_ENOTCLUSTER - there is no cluster 2N/A * SCCONF_EINVAL - invalid argument 2N/A * SCSTAT_ESERVICENAME - invalid device group name 2N/A * SCSTAT_EUNEXPECTED - internal or unexpected error 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A * Free memory associated with a scstat_ds_t structure. 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A/* Maximum message string length */ 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A/* Cluster transport handle */ 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A * Get the name of a node from its "nodeid". Upon success, 2N/A * a pointer to the nodename is left in "nodenamep". 2N/A * It is the caller's responsibility to free memory allocated 2N/A * for "nodename" using free(3C). 2N/A * Possible return values: 2N/A * SCCONF_NOERR - success 2N/A * SCCONF_EPERM - not root 2N/A * SCCONF_ENOCLUSTER - there is no cluster 2N/A * SCCONF_ENOMEM - not enough memory 2N/A * SCCONF_EINVAL - invalid argument 2N/A * SCCONF_EUNEXPECTED - internal or unexpected error 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A * Map scconf_errno_t to a string. 2N/A * The supplied "errbuffer" should be of at least SCCONF_MAXSTRINGLEN 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A * Given a dev_t value, return the name of device service that contains this 2N/A * The caller is responsible for freeing the memory returned in "name". 2N/A * Possible return values: 2N/A * SCCONF_NOERR - success 2N/A * SCCONF_EPERM - not root 2N/A * SCCONF_ENOEXIST - the given device is not configured 2N/A * SCCONF_ENOMEM - not enough memory 2N/A * SCCONF_ENOCLUSTER - cluster config does not exist 2N/A * SCCONF_EUNEXPECTED - internal or unexpected error 2N/A/* This definition is covered by PSARC/2001/261. DO NOT change it. */ 2N/A#
endif /* _CFG_CLUSTER_H */