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