Module Name: src
Committed By: tsutsui
Date: Wed Jan 16 15:46:20 UTC 2013
Modified Files:
src/sys/arch/luna68k/stand/boot: conf.c devopen.c samachdep.h version
Log Message:
Add UFS2 support. Also bump version.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/luna68k/stand/boot/conf.c \
src/sys/arch/luna68k/stand/boot/devopen.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/luna68k/stand/boot/samachdep.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/luna68k/stand/boot/version
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/luna68k/stand/boot/conf.c
diff -u src/sys/arch/luna68k/stand/boot/conf.c:1.2 src/sys/arch/luna68k/stand/boot/conf.c:1.3
--- src/sys/arch/luna68k/stand/boot/conf.c:1.2 Sun Jan 13 14:10:55 2013
+++ src/sys/arch/luna68k/stand/boot/conf.c Wed Jan 16 15:46:20 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.2 2013/01/13 14:10:55 tsutsui Exp $ */
+/* $NetBSD: conf.c,v 1.3 2013/01/16 15:46:20 tsutsui Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -92,11 +92,16 @@ int n_netif_drivers = __arraycount(netif
* Filesystem configuration
*/
#ifdef SUPPORT_DISK
-struct fs_ops file_system_ufs[] = { FS_OPS(ufs) };
+struct fs_ops file_system_disk[] = {
+ FS_OPS(ffsv1),
+ FS_OPS(ffsv2)
+};
+int nfsys_disk = __arraycount(file_system_disk);
#endif
#ifdef SUPPORT_ETHERNET
struct fs_ops file_system_nfs[] = { FS_OPS(nfs) };
#endif
-struct fs_ops file_system[1];
+#define MAX_NFSYS 5
+struct fs_ops file_system[MAX_NFSYS];
int nfsys = 1; /* we always know which one we want */
Index: src/sys/arch/luna68k/stand/boot/devopen.c
diff -u src/sys/arch/luna68k/stand/boot/devopen.c:1.2 src/sys/arch/luna68k/stand/boot/devopen.c:1.3
--- src/sys/arch/luna68k/stand/boot/devopen.c:1.2 Sun Jan 13 14:10:55 2013
+++ src/sys/arch/luna68k/stand/boot/devopen.c Wed Jan 16 15:46:20 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: devopen.c,v 1.2 2013/01/13 14:10:55 tsutsui Exp $ */
+/* $NetBSD: devopen.c,v 1.3 2013/01/16 15:46:20 tsutsui Exp $ */
/*
* Copyright (c) 1992 OMRON Corporation.
@@ -82,6 +82,7 @@ devopen(struct open_file *f, const char
int dev, unit, part;
int error;
struct devsw *dp;
+ int i;
if (make_device(fname, &dev, &unit, &part, file) != 0)
return ENXIO;
@@ -100,11 +101,15 @@ devopen(struct open_file *f, const char
return error;
}
- file_system[0] = file_system_ufs[0];
+ for (i = 0; i < nfsys_disk; i++)
+ file_system[i] = file_system_disk[i];
+ nfsys = nfsys_disk;
+
#ifdef SUPPORT_ETHERNET
if (strcmp(dp->dv_name, "le") == 0) {
/* XXX mixing local fs_ops on netboot could be troublesome */
file_system[0] = file_system_nfs[0];
+ nfsys = 1;
}
#endif
Index: src/sys/arch/luna68k/stand/boot/samachdep.h
diff -u src/sys/arch/luna68k/stand/boot/samachdep.h:1.5 src/sys/arch/luna68k/stand/boot/samachdep.h:1.6
--- src/sys/arch/luna68k/stand/boot/samachdep.h:1.5 Wed Jan 16 15:15:01 2013
+++ src/sys/arch/luna68k/stand/boot/samachdep.h Wed Jan 16 15:46:20 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: samachdep.h,v 1.5 2013/01/16 15:15:01 tsutsui Exp $ */
+/* $NetBSD: samachdep.h,v 1.6 2013/01/16 15:46:20 tsutsui Exp $ */
/*
* Copyright (c) 1982, 1990, 1993
@@ -222,7 +222,8 @@ do { \
} while (__N > 0); \
} while (/* CONSTCOND */ 0)
-extern struct fs_ops file_system_ufs[];
+extern struct fs_ops file_system_disk[];
+extern int nfsys_disk;
extern struct fs_ops file_system_nfs[];
extern const char bootprog_name[], bootprog_rev[], bootprog_kernrev[];
Index: src/sys/arch/luna68k/stand/boot/version
diff -u src/sys/arch/luna68k/stand/boot/version:1.3 src/sys/arch/luna68k/stand/boot/version:1.4
--- src/sys/arch/luna68k/stand/boot/version:1.3 Mon Jan 14 01:37:57 2013
+++ src/sys/arch/luna68k/stand/boot/version Wed Jan 16 15:46:20 2013
@@ -1,4 +1,4 @@
-$NetBSD: version,v 1.3 2013/01/14 01:37:57 tsutsui Exp $
+$NetBSD: version,v 1.4 2013/01/16 15:46:20 tsutsui Exp $
NOTE ANY CHANGES YOU MAKE TO THE BOOTBLOCKS HERE. The format of this
file is important - make sure the entries are appended on end, last item
@@ -7,3 +7,4 @@ is taken as the current.
1.0: Initial revision, based on 4.4BSD-Lite2/luna68k and NetBSD/hp300
1.1: Add netboot support.
1.2: Add support for secondary SPC SCSI on LUNA-II.
+1.3: Add UFS2 support.