vold_obj.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* 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 the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdlib.h>
#include <string.h>
#include "vold.h"
void
{
}
}
void
{
}
void
{
}
void
{
}
void
{
}
/* XXX: not currently used */
void
{
}
void
{
}
void
{
}
/* XXX: not currently used */
void
{
}
/*
* Add or remove the volume from a drive on this machine.
* To remove, specify a path of NULL.
*/
void
{
}
/*
* Change the flags associated with a volume. These get
* converted into "properties" when they get written to the nis+
* database.
* Flags are normally set by props_set, so we don't try to do
* anything fancy here.
*/
void
{
}
void
{
}
void
{
}
}
/* DEPRECIATED */
/*ARGSUSED*/
void
{
ASSERT(0);
#ifdef NO_LONGER_USED
fatal("obj_copy: objects aren't the same type\n");
/*NOTREACHED*/
}
case VV_CHR:
case VV_BLK:
break;
case VV_DIR:
break;
case VV_LINK:
break;
case VV_SYMLINK:
break;
default:
fatal("obj_copy: unknown object type %d, name %s\n",
}
#endif
}
/*
* Free all the memory associated with any type object.
*/
void
{
case VV_BLK:
case VV_CHR: {
}
if (v->v_mtype) {
}
(void) dev_devmapfree(v);
/*
* dev_devmapfree rewacks v_location which means that
* we have to free it *after* rather than before.
*/
if (v->v_location)
free(v->v_location);
break;
}
case VV_SYMLINK: {
break;
}
case VV_LINK:
case VV_DIR:
case VV_PART:
break;
}
}
obj_t *
{
extern size_t label_size(int);
case VV_BLK:
case VV_CHR: {
if (v->v_location) {
}
if (v->v_mtype) {
}
break;
}
case VV_SYMLINK: {
break;
}
case VV_LINK: {
break;
}
case VV_DIR: {
break;
}
case VV_PART: {
break;
}
default:
/*NOTREACHED*/
}
return (nobj);
}
/*
* Return a path that represents the "base" of an object.
*/
char *
{
char *s, *p, *q;
break;
}
}
p += strlen("rdsk/");
q = strdup(p);
free(s);
return (q);
}