llib-lvolmgt revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
85N/A/*
85N/A * CDDL HEADER START
85N/A *
85N/A * The contents of this file are subject to the terms of the
85N/A * Common Development and Distribution License (the "License").
85N/A * You may not use this file except in compliance with the License.
85N/A *
85N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
85N/A * or http://www.opensolaris.org/os/licensing.
85N/A * See the License for the specific language governing permissions
85N/A * and limitations under the License.
85N/A *
85N/A * When distributing Covered Code, include this CDDL HEADER in each
85N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
85N/A * If applicable, add the following below this CDDL HEADER, with the
85N/A * fields enclosed by brackets "[]" replaced with your own identifying
85N/A * information: Portions Copyright [yyyy] [name of copyright owner]
85N/A *
85N/A * CDDL HEADER END
85N/A */
5680N/A/* LINTLIBRARY */
85N/A/* PROTOLIB1 */
5680N/A
5680N/A/*
5680N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
85N/A * Use is subject to license terms.
85N/A */
85N/A#pragma ident "%Z%%M% %I% %E% SMI"
6274N/A
844N/A#include <stdio.h>
6274N/A#include <stdlib.h>
85N/A#include <string.h>
6274N/A#include <dirent.h>
2899N/A#include <string.h>
7243N/A#include <errno.h>
7243N/A#include <limits.h>
7243N/A#include <unistd.h>
7243N/A#include <volmgt.h>
5680N/A#include <sys/types.h>
5680N/A#include <sys/stat.h>
5680N/A#include <sys/param.h>
5680N/A
5680N/A/* volmgt_fsi.c */
85N/Aint volmgt_acquire(char *, char *, int, char **, pid_t *);
85N/Aint volmgt_release(char *);
5680N/A
85N/A/* volattr.c */
85N/Achar *media_getattr(char *, char *);
85N/Aint media_setattr(char *, char *, char *);
5680N/Au_longlong_t media_getid(char *);
85N/A
85N/A/* volname.c */
181N/Achar *media_findname(char *);
85N/A
2344N/A/* volutil.c */
int volmgt_check(char *);
int volmgt_inuse(char *);
int volmgt_ownspath(char *);
const char *volmgt_root(void);
int volmgt_running(void);
char *volmgt_symdev(char *);
char *volmgt_symname(char *);
int volmgt_feature_enabled(char *);