From 818445e944314e0366ff1d4d99bddf4b060bff5c Mon Sep 17 00:00:00 2001 From: dbj Date: Sat, 28 Sep 2002 01:17:09 +0000 Subject: [PATCH] recognize FS_APPLEUFS partitions part of PR #17345 --- sys/arch/i386/i386/disksubr.c | 7 +++++-- sys/arch/macppc/macppc/disksubr.c | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c index 7748a261b7c0..44e513c16602 100644 --- a/sys/arch/i386/i386/disksubr.c +++ b/sys/arch/i386/i386/disksubr.c @@ -1,4 +1,4 @@ -/* $NetBSD: disksubr.c,v 1.45 2002/02/19 17:09:44 wiz Exp $ */ +/* $NetBSD: disksubr.c,v 1.46 2002/09/28 01:17:09 dbj Exp $ */ /* * Copyright (c) 1982, 1986, 1988 Regents of the University of California. @@ -36,7 +36,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.45 2002/02/19 17:09:44 wiz Exp $"); +__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.46 2002/09/28 01:17:09 dbj Exp $"); #include #include @@ -208,6 +208,9 @@ readdisklabel(dev, strat, lp, osdep) if (dp->mbrp_typ == MBR_PTYPE_NTFS) pp->p_fstype = FS_NTFS; + if (dp->mbrp_typ == MBR_PTYPE_APPLEUFS) + pp->p_fstype = FS_APPLEUFS; + /* is this ours? */ if (dp == ourdp) { /* need sector address for SCSI/IDE, diff --git a/sys/arch/macppc/macppc/disksubr.c b/sys/arch/macppc/macppc/disksubr.c index 6ca8eec92253..6c5d455eb3cf 100644 --- a/sys/arch/macppc/macppc/disksubr.c +++ b/sys/arch/macppc/macppc/disksubr.c @@ -1,4 +1,4 @@ -/* $NetBSD: disksubr.c,v 1.24 2002/09/10 11:31:10 dbj Exp $ */ +/* $NetBSD: disksubr.c,v 1.25 2002/09/28 01:17:10 dbj Exp $ */ /* * Copyright (c) 1982, 1986, 1988 Regents of the University of California. @@ -233,7 +233,7 @@ whichType(struct part_map_entry *part, u_int8_t *fstype, int *clust) *fstype = FS_HFS; } else if (strcmp(PART_TYPE_APPLEUFS, typestr) == 0) { type = SCRATCH_PART; - *fstype = FS_OTHER; + *fstype = FS_APPLEUFS; } else if (strcmp(PART_TYPE_LINUX, typestr) == 0) { type = SCRATCH_PART; *fstype = FS_OTHER;