2 .\" Copyright (c) 2001, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
4 .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
5 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH VOLMGT_ROOT 3VOLMGT "Mar 8, 2007"
8 volmgt_root \- return the volume management root directory
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lvolmgt\fR [ \fIlibrary\fR ... ]
14 \fBconst char *\fR\fBvolmgt_root\fR(\fBvoid\fR);
20 This function is obsolete. The management of removable media by the Volume
21 Management feature, including \fBvold\fR, has been replaced by software that
22 supports the Hardware Abstraction Layer (HAL). Programmatic support for HAL is
23 through the HAL APIs, which are documented on the HAL web site. See
24 \fBhal\fR(5). The return value of this function is undefined.
27 The \fBvolmgt_root()\fR function returns the current volume management root
28 directory, which by default is \fB/vol\fR but can be configured to be in a
33 The return from this function is undefined.
37 This function may fail if an \fBopen()\fR of \fB/dev/volctl\fR fails. If this
38 occurs a pointer to the default Volume Management root directory is returned.
41 \fBExample 1 \fRFinding the Volume Management Root directory.
44 To find out where the volume management root directory is:
49 if ((path = volmgt_root()) != NULL) {
50 (void) printf("Volume Management root dir=%s\en", path);
52 (void) printf("can't find Volume Management root dir\en");
64 default location for the volume management root directory
70 See \fBattributes\fR(5) for descriptions of the following attributes:
78 ATTRIBUTE TYPE ATTRIBUTE VALUE
82 Interface Stability Obsolete
88 \fBopen\fR(2), \fBvolmgt_check\fR(3VOLMGT), \fBvolmgt_inuse\fR(3VOLMGT),
89 \fBvolmgt_running\fR(3VOLMGT), \fBattributes\fR(5), \fBhal\fR(5)
93 This function returns the default root directory location even when volume
94 management is not running.