/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
*/
/*
*/
#ifndef _LIBDISKSTATUS_H
#define _LIBDISKSTATUS_H
#include <libnvpair.h>
#include "ds_scsi.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Error definitions
*/
enum {
};
/* Supported disk tests. Used in calls to dis_status_open. */
/*
* Basic library functions
*/
extern void disk_status_close(disk_status_t *);
extern const char *disk_status_errmsg(int);
extern void disk_status_set_debug(boolean_t);
extern int disk_status_errno(disk_status_t *);
/*
* Miscellaneous functions.
*/
extern const char *disk_status_path(disk_status_t *);
/*
* Main entry point.
*/
/*
* Utility function to simulate predictive failure (device-specific).
*/
extern int disk_status_test_predfail(disk_status_t *);
#ifdef __cplusplus
}
#endif
#endif /* _LIBDISKSTATUS_H */