libdiskstatus.h revision 24db46411fd54f70c35b94bb952eb7ba040e43b4
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * CDDL HEADER START
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * The contents of this file are subject to the terms of the
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * Common Development and Distribution License (the "License").
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * You may not use this file except in compliance with the License.
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * See the License for the specific language governing permissions
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * and limitations under the License.
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * When distributing Covered Code, include this CDDL HEADER in each
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * If applicable, add the following below this CDDL HEADER, with the
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * fields enclosed by brackets "[]" replaced with your own identifying
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * information: Portions Copyright [yyyy] [name of copyright owner]
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * CDDL HEADER END
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * Use is subject to license terms.
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock#pragma ident "%Z%%M% %I% %E% SMI"
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrockextern "C" {
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * Error definitions
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock EDS_NOMEM = EDS_BASE, /* memory allocation failure */
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock EDS_NOT_SUPPORTED, /* status information not supported */
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock EDS_NOT_SIMULATOR, /* not a valid simulator file */
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * Basic library functions
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrockextern disk_status_t *disk_status_open(const char *, int *);
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrockextern const char *disk_status_errmsg(int);
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * Miscellaneous functions.
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrockextern const char *disk_status_path(disk_status_t *);
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * Main entry point.
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock * Utility function to simulate predictive failure (device-specific).
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrockextern int disk_status_test_predfail(disk_status_t *);
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock#endif /* _LIBDISKSTATUS_H */