Support loading the kernel from ustarfs.

This commit is contained in:
ragge 1999-06-30 18:30:42 +00:00
parent 1128e4c837
commit 3b8e9ab16d
2 changed files with 6 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.1 1999/03/06 16:36:05 ragge Exp $ */
/* $NetBSD: conf.c,v 1.2 1999/06/30 18:30:42 ragge Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -40,6 +40,7 @@
#include "lib/libsa/stand.h"
#include "lib/libsa/ufs.h"
#include "lib/libsa/nfs.h"
#include "lib/libsa/ustarfs.h"
#include "vaxstand.h"
@ -83,10 +84,9 @@ int cnvtab[] = {
int ndevs = (sizeof(devsw)/sizeof(devsw[0]));
struct fs_ops file_system[] = {
{ ufs_open, ufs_close, ufs_read, ufs_write, ufs_seek, ufs_stat }
};
struct fs_ops nfs_system[] = {
{ ustarfs_open, ustarfs_close, ustarfs_read, ustarfs_write,
ustarfs_seek, ustarfs_stat },
{ ufs_open, ufs_close, ufs_read, ufs_write, ufs_seek, ufs_stat },
{ nfs_open, nfs_close, nfs_read, nfs_write, nfs_seek, nfs_stat },
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: devopen.c,v 1.1 1999/03/06 16:36:05 ragge Exp $ */
/* $NetBSD: devopen.c,v 1.2 1999/06/30 18:30:42 ragge Exp $ */
/*
* Copyright (c) 1997 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -45,7 +45,6 @@ devopen(f, fname, file)
{
int dev, ctlr, unit, part, adapt, i, a[4], x;
struct devsw *dp;
extern struct fs_ops nfs_system[];
extern int cnvtab[];
char *s, *c, *u;
@ -111,7 +110,6 @@ devopen(f, fname, file)
opendev = MAKEBOOTDEV(dev, adapt, ctlr, unit, part);
if (dev > 95) { /* MOP boot over network, root & swap over NFS */
bcopy(nfs_system, file_system, sizeof(struct fs_ops));
i = (*dp->dv_open)(f, dp->dv_name);
} else
i = (*dp->dv_open)(f, adapt, ctlr, unit, part);