llib-lvolmgt revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
9cee5bb02863bf191e12cd4297adabf1971020deAutomatic Updater/*
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * CDDL HEADER START
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews *
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson * The contents of this file are subject to the terms of the
c13b8351b4dfb18806af4eb3c0fea240d83d1f82Andreas Gustafsson * Common Development and Distribution License (the "License").
c13b8351b4dfb18806af4eb3c0fea240d83d1f82Andreas Gustafsson * You may not use this file except in compliance with the License.
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson *
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c13b8351b4dfb18806af4eb3c0fea240d83d1f82Andreas Gustafsson * or http://www.opensolaris.org/os/licensing.
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson * See the License for the specific language governing permissions
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson * and limitations under the License.
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson *
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson * When distributing Covered Code, include this CDDL HEADER in each
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson * If applicable, add the following below this CDDL HEADER, with the
a185ac41ac0627ec711d13bf6fdd8a830b753060Andreas Gustafsson * fields enclosed by brackets "[]" replaced with your own identifying
1928be262ca25485f4d7f0f6473fc5cafa0c3905Andreas Gustafsson * information: Portions Copyright [yyyy] [name of copyright owner]
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson *
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson * CDDL HEADER END
55e5c51e661e23e24573db84114a3837817745c9Evan Hunt */
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews/* LINTLIBRARY */
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson/* PROTOLIB1 */
ca44fe49bec16436cd95ace0af2e244f2096b284Brian Wellington
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson/*
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
1928be262ca25485f4d7f0f6473fc5cafa0c3905Andreas Gustafsson * Use is subject to license terms.
a185ac41ac0627ec711d13bf6fdd8a830b753060Andreas Gustafsson */
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson#pragma ident "%Z%%M% %I% %E% SMI"
e9918d6a9df388b971a4805844165dd3fc3a88caAndreas Gustafsson
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson#include <stdio.h>
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson#include <stdlib.h>
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson#include <string.h>
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson#include <dirent.h>
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson#include <string.h>
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson#include <errno.h>
0d50da49baa7d2d39146d46789d88053af5b1b50Michael Sawyer#include <limits.h>
0d50da49baa7d2d39146d46789d88053af5b1b50Michael Sawyer#include <unistd.h>
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson#include <volmgt.h>
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson#include <sys/types.h>
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson#include <sys/stat.h>
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson#include <sys/param.h>
e1e635578dedd17313312031be2759285c7c8e17Andreas Gustafsson
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson/* volmgt_fsi.c */
17be07ab818846dffb79e898da888a29c919bb02Mark Andrewsint volmgt_acquire(char *, char *, int, char **, pid_t *);
17be07ab818846dffb79e898da888a29c919bb02Mark Andrewsint volmgt_release(char *);
17be07ab818846dffb79e898da888a29c919bb02Mark Andrews
17be07ab818846dffb79e898da888a29c919bb02Mark Andrews/* volattr.c */
17be07ab818846dffb79e898da888a29c919bb02Mark Andrewschar *media_getattr(char *, char *);
17be07ab818846dffb79e898da888a29c919bb02Mark Andrewsint media_setattr(char *, char *, char *);
17be07ab818846dffb79e898da888a29c919bb02Mark Andrewsu_longlong_t media_getid(char *);
7beeb415ca3f1b230d35a8d385d99d2901cf9ff9Andreas Gustafsson
7beeb415ca3f1b230d35a8d385d99d2901cf9ff9Andreas Gustafsson/* volname.c */
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafssonchar *media_findname(char *);
7beeb415ca3f1b230d35a8d385d99d2901cf9ff9Andreas Gustafsson
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson/* volutil.c */
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafssonint volmgt_check(char *);
a185ac41ac0627ec711d13bf6fdd8a830b753060Andreas Gustafssonint volmgt_inuse(char *);
a185ac41ac0627ec711d13bf6fdd8a830b753060Andreas Gustafssonint volmgt_ownspath(char *);
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafssonconst char *volmgt_root(void);
7beeb415ca3f1b230d35a8d385d99d2901cf9ff9Andreas Gustafssonint volmgt_running(void);
7beeb415ca3f1b230d35a8d385d99d2901cf9ff9Andreas Gustafssonchar *volmgt_symdev(char *);
9cee5bb02863bf191e12cd4297adabf1971020deAutomatic Updaterchar *volmgt_symname(char *);
int volmgt_feature_enabled(char *);