xref: /onnv-gate/usr/src/cmd/format/checkdev.h (revision 767:0aa24dfb5d87)
1*767Ssjelinek /*
2*767Ssjelinek  * CDDL HEADER START
3*767Ssjelinek  *
4*767Ssjelinek  * The contents of this file are subject to the terms of the
5*767Ssjelinek  * Common Development and Distribution License, Version 1.0 only
6*767Ssjelinek  * (the "License").  You may not use this file except in compliance
7*767Ssjelinek  * with the License.
8*767Ssjelinek  *
9*767Ssjelinek  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*767Ssjelinek  * or http://www.opensolaris.org/os/licensing.
11*767Ssjelinek  * See the License for the specific language governing permissions
12*767Ssjelinek  * and limitations under the License.
13*767Ssjelinek  *
14*767Ssjelinek  * When distributing Covered Code, include this CDDL HEADER in each
15*767Ssjelinek  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*767Ssjelinek  * If applicable, add the following below this CDDL HEADER, with the
17*767Ssjelinek  * fields enclosed by brackets "[]" replaced with your own identifying
18*767Ssjelinek  * information: Portions Copyright [yyyy] [name of copyright owner]
19*767Ssjelinek  *
20*767Ssjelinek  * CDDL HEADER END
21*767Ssjelinek  */
22*767Ssjelinek /*
23*767Ssjelinek  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*767Ssjelinek  * Use is subject to license terms.
25*767Ssjelinek  */
26*767Ssjelinek 
27*767Ssjelinek #ifndef	_CHECKDEV_H
28*767Ssjelinek #define	_CHECKDEV_H
29*767Ssjelinek 
30*767Ssjelinek #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*767Ssjelinek 
32*767Ssjelinek #ifdef	__cplusplus
33*767Ssjelinek extern "C" {
34*767Ssjelinek #endif
35*767Ssjelinek 
36*767Ssjelinek /*
37*767Ssjelinek  *	Prototypes for ANSI C
38*767Ssjelinek  */
39*767Ssjelinek int	checkmount(diskaddr_t start, diskaddr_t end);
40*767Ssjelinek int	checkswap(diskaddr_t start, diskaddr_t end);
41*767Ssjelinek int	check_label_with_mount(void);
42*767Ssjelinek int	check_label_with_swap(void);
43*767Ssjelinek int	checkdevinuse(char *cur_disk_path, diskaddr_t start, diskaddr_t end,
44*767Ssjelinek 	    int print, int check_label);
45*767Ssjelinek 
46*767Ssjelinek 
47*767Ssjelinek #ifdef	__cplusplus
48*767Ssjelinek }
49*767Ssjelinek #endif
50*767Ssjelinek 
51*767Ssjelinek #endif	/* _CHECKDEV_H */
52