Add support booting from UFS2 partition for sparc.
Tested on tme emulating SS2. Closes PR port-sparc/36068.
This commit is contained in:
parent
52dab5df0c
commit
abb05145d7
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: conf.c,v 1.1 1997/06/01 03:39:33 mrg Exp $ */
|
||||
/* $NetBSD: conf.c,v 1.2 2008/04/05 06:39:08 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993 Philip A. Nelson.
|
||||
@ -37,10 +37,13 @@
|
||||
#include <lib/libsa/nfs.h>
|
||||
|
||||
struct fs_ops file_system_ufs[] = {
|
||||
{ ufs_open, ufs_close, ufs_read, ufs_write, ufs_seek, ufs_stat },
|
||||
FS_OPS(ffsv1),
|
||||
FS_OPS(ffsv2)
|
||||
};
|
||||
|
||||
struct fs_ops file_system_nfs[] = {
|
||||
{ nfs_open, nfs_close, nfs_read, nfs_write, nfs_seek, nfs_stat },
|
||||
FS_OPS(nfs)
|
||||
};
|
||||
struct fs_ops file_system[1];
|
||||
int nfsys = sizeof(file_system)/sizeof(struct fs_ops);
|
||||
|
||||
struct fs_ops file_system[2];
|
||||
int nfsys = __arraycount(file_system);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: promdev.c,v 1.20 2006/07/13 20:03:34 uwe Exp $ */
|
||||
/* $NetBSD: promdev.c,v 1.21 2008/04/05 06:39:08 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993 Paul Kranenburg
|
||||
@ -198,14 +198,17 @@ devopen(struct open_file *f, const char *fname, char **file)
|
||||
*file = (char *)fname;
|
||||
|
||||
if (pd->devtype == DT_NET) {
|
||||
bcopy(file_system_nfs, file_system, sizeof(struct fs_ops));
|
||||
nfsys = 1;
|
||||
memcpy(file_system, file_system_nfs,
|
||||
sizeof(struct fs_ops) * nfsys);
|
||||
if ((error = net_open(pd)) != 0) {
|
||||
printf("Can't open NFS network connection on `%s'\n",
|
||||
prom_bootdevice);
|
||||
return (error);
|
||||
}
|
||||
} else {
|
||||
bcopy(file_system_ufs, file_system, sizeof(struct fs_ops));
|
||||
memcpy(file_system, file_system_ufs,
|
||||
sizeof(struct fs_ops) * nfsys);
|
||||
|
||||
#ifdef NOTDEF_DEBUG
|
||||
printf("devopen: Checking disklabel for RAID partition\n");
|
||||
|
Loading…
Reference in New Issue
Block a user