xref: /titanic_51/usr/src/lib/libvolmgt/common/llib-lvolmgt (revision 10db1377dafab8ba3feedef26db9c5d8539a5cd1)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License").  You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/* LINTLIBRARY */
23/* PROTOLIB1 */
24
25/*
26 * Copyright(c) 1997 by Sun Microsystems, Inc.
27 * All rights reserved.
28 */
29#pragma	ident	"%Z%%M%	%I%	%E% SMI"
30
31#include	<stdio.h>
32#include	<stdlib.h>
33#include	<string.h>
34#include	<dirent.h>
35#include	<string.h>
36#include	<errno.h>
37#include	<limits.h>
38#include	<unistd.h>
39#include	<volmgt.h>
40#include	<sys/types.h>
41#include	<sys/stat.h>
42#include	<sys/param.h>
43#include	<sys/vol.h>
44
45/* volmgt_fsi.c */
46int volmgt_acquire(char *, char *, int, char **, pid_t *);
47int volmgt_release(char *);
48
49/* volattr.c */
50char *media_getattr(char *, char *);
51int media_setattr(char *, char *, char *);
52u_longlong_t media_getid(char *);
53
54/* volname.c */
55char *media_findname(char *);
56
57/* volutil.c */
58int volmgt_check(char *);
59int volmgt_inuse(char *);
60int volmgt_ownspath(char *);
61const char *volmgt_root(void);
62int volmgt_running(void);
63char *volmgt_symdev(char *);
64char *volmgt_symname(char *);
65int volmgt_feature_enabled(char *);
66