Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/x68k Mark LFS partitions as "BSD lfs ".
details: https://anonhg.NetBSD.org/src/rev/ce97449a7282
branches: trunk
changeset: 481748:ce97449a7282
user: itohy <itohy%NetBSD.org@localhost>
date: Sat Feb 05 07:38:10 2000 +0000
description:
Mark LFS partitions as "BSD lfs ".
Now, swap partition should be "BSD swap" unless COMPAT_14.
diffstat:
sys/arch/x68k/x68k/disksubr.c | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diffs (41 lines):
diff -r 5365798c7cc6 -r ce97449a7282 sys/arch/x68k/x68k/disksubr.c
--- a/sys/arch/x68k/x68k/disksubr.c Sat Feb 05 04:44:00 2000 +0000
+++ b/sys/arch/x68k/x68k/disksubr.c Sat Feb 05 07:38:10 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.10 2000/01/18 19:52:40 thorpej Exp $ */
+/* $NetBSD: disksubr.c,v 1.11 2000/02/05 07:38:10 itohy Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -159,8 +159,16 @@
#endif
if (!bcmp(dp->dp_typname, "Human68k", 8))
fstype = FS_MSDOS;
+ else if (!bcmp(dp->dp_typname, "BSD ffs ", 8))
+ fstype = FS_BSDFFS;
+ else if (!bcmp(dp->dp_typname, "BSD lfs ", 8))
+ fstype = FS_BSDLFS;
+ else if (!bcmp(dp->dp_typname, "BSD swap", 8))
+ fstype = FS_SWAP;
+#ifndef COMPAT_14
else if (part == 1)
fstype = FS_SWAP;
+#endif
else
fstype = FS_BSDFFS; /* XXX */
lp->d_partitions[part].p_fstype = fstype; /* XXX */
@@ -373,6 +381,14 @@
dp->dp_flag = 2; /* $B;HMQ2DG=(B */
break;
+ case FS_BSDLFS:
+ np = "BSD lfs ";
+ if (part == 0)
+ dp->dp_flag = 0; /* $B<+F05/F0(B */
+ else
+ dp->dp_flag = 2; /* $B;HMQ2DG=(B */
+ break;
+
case FS_UNUSED:
np = "\0\0\0\0\0\0\0\0";
start = size = 0;
Home |
Main Index |
Thread Index |
Old Index