fsswitch.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 1994-1996, 2002-2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/sysmacros.h>
#include <sys/bootsyms.h>
static char *fsmsg = "Fstype has not been selected yet!\n";
static char *msg_noops = "not fs_ops supplied\n";
/*
* return fs_ops pointer for a given file system name
*/
struct boot_fs_ops *
get_fs_ops_pointer(char *fsw_name)
{
int fsw_idx;
}
return ((struct boot_fs_ops *)NULL);
}
/*
* set default file system type
*/
void
set_default_fs(char *fsw_name)
{
int fsw_idx;
return;
}
prom_panic("");
}
/*
* clear default file system type
*/
void
clr_default_fs(void)
{
}
struct boot_fs_ops *
get_default_fs(void)
{
return (dfl_fsw);
}
void
{
/*NOTREACHED*/
}
int
{
/*NOTREACHED*/
return (0);
}
int
{
/*NOTREACHED*/
}
int
{
/*NOTREACHED*/
}
int
unmountroot(void)
{
return ((*dfl_fsw->fsw_unmountroot)());
/*NOTREACHED*/
}
/*ARGSUSED*/
int
{
/*NOTREACHED*/
}
{
/*NOTREACHED*/
}
void
{
return;
}
/*NOTREACHED*/
}
int
{
int ret;
if (ret == -1)
return (-1);
return (0);
}
int
{
}
return (ret);
}
{
/*NOTREACHED*/
}
/*
* Kernel Interface
*/
int
{
/*NOTREACHED*/
}
/*
* hi and lo refer to the MS end of the off_t word
* and the LS end of the off_t word for when we want
* to support 64-bit offsets. For now, lseek() just
* supports 32 bits.
*/
/*ARGSUSED*/
{
/*NOTREACHED*/
}
{
/*NOTREACHED*/
}
int
kern_close(int fd)
{
/*NOTREACHED*/
}
int
{
/*NOTREACHED*/
}
int
{
/*NOTREACHED*/
}
int
kern_mountroot(char *path)
{
}
int
kern_unmountroot(void)
{
return (unmountroot());
}