Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amiga/amiga Recognize Linux ext2fs partitions. (Use...



details:   https://anonhg.NetBSD.org/src/rev/6d49efe43c4e
branches:  trunk
changeset: 472383:6d49efe43c4e
user:      is <is%NetBSD.org@localhost>
date:      Wed Apr 28 22:35:27 1999 +0000

description:
Recognize Linux ext2fs partitions. (Used to be marked as unknown).

diffstat:

 sys/arch/amiga/amiga/adosglue.h |   5 ++++-
 sys/arch/amiga/amiga/disksubr.c |  10 +++++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diffs (64 lines):

diff -r 443f54ede656 -r 6d49efe43c4e sys/arch/amiga/amiga/adosglue.h
--- a/sys/arch/amiga/amiga/adosglue.h   Wed Apr 28 19:33:41 1999 +0000
+++ b/sys/arch/amiga/amiga/adosglue.h   Wed Apr 28 22:35:27 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: adosglue.h,v 1.4 1994/12/28 09:27:45 chopps Exp $      */
+/*     $NetBSD: adosglue.h,v 1.5 1999/04/28 22:35:27 is Exp $  */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -44,6 +44,8 @@
 #define DOST_DOS       0x444f5300      /* 'DOSx' AmigaDos partition */
 #define DOST_AMIX      0x554e4900      /* 'UNIx' AmigaDos partition */
 #define DOST_MUFS      0x6d754600      /* 'muFx' AmigaDos partition (muFS) */
+#define DOST_EXT2      0x4c4e5800      /* 'LNX0' Linux fs partition (ext2fs) */
+#define DOST_LNXSWP    0x53575000      /* 'LNX0' Linux swap partition */
 
 struct adostype {
        u_char archtype;        /* see ADT_xxx below */
@@ -57,6 +59,7 @@
 #define ADT_NETBSDSWAP 3
 #define ADT_NETBSDUSER 4
 #define ADT_AMIX       5
+#define ADT_EXT2       6
 
 #define ISFSARCH_NETBSD(adt) \
        ((adt).archtype >= ADT_NETBSDROOT && (adt).archtype <= ADT_NETBSDUSER)
diff -r 443f54ede656 -r 6d49efe43c4e sys/arch/amiga/amiga/disksubr.c
--- a/sys/arch/amiga/amiga/disksubr.c   Wed Apr 28 19:33:41 1999 +0000
+++ b/sys/arch/amiga/amiga/disksubr.c   Wed Apr 28 22:35:27 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disksubr.c,v 1.28 1998/04/17 17:39:22 veego Exp $      */
+/*     $NetBSD: disksubr.c,v 1.29 1999/04/28 22:35:27 is Exp $ */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -304,6 +304,7 @@
                case ADT_NETBSDUSER:
                case ADT_AMIGADOS:
                case ADT_AMIX:
+               case ADT_EXT2:
                case ADT_UNKNOWN:
                        pp = &lp->d_partitions[lp->d_npartitions];
                        break;
@@ -570,6 +571,7 @@
                else
                        adt.fstype = FS_ADOS;
                return(adt);
+       
        case DOST_AMIX:
                adt.archtype = ADT_AMIX;
                if (b1 == 2)
@@ -595,6 +597,12 @@
                printf(" using: 0x%lx instead\n", dostype);
 #endif
                return(getadostype(dostype));
+
+       case DOST_EXT2:
+               adt.archtype = ADT_EXT2;
+               adt.fstype = FS_EX2FS;
+               return(adt);
+
        default:
 #ifdef DIAGNOSTIC
                printf("warning unknown dostype: 0x%lx marking unused\n",



Home | Main Index | Thread Index | Old Index