diff --git a/sbin/mbrlabel/mbrlabel.c b/sbin/mbrlabel/mbrlabel.c index 3c61105d4cf7..222b108fdaa9 100644 --- a/sbin/mbrlabel/mbrlabel.c +++ b/sbin/mbrlabel/mbrlabel.c @@ -1,4 +1,4 @@ -/* $NetBSD: mbrlabel.c,v 1.20 2002/05/21 01:39:56 yamt Exp $ */ +/* $NetBSD: mbrlabel.c,v 1.21 2002/09/28 00:56:26 dbj Exp $ */ /* * Copyright (C) 1998 Wolfgang Solfrank. @@ -33,7 +33,7 @@ #include #ifndef lint -__RCSID("$NetBSD: mbrlabel.c,v 1.20 2002/05/21 01:39:56 yamt Exp $"); +__RCSID("$NetBSD: mbrlabel.c,v 1.21 2002/09/28 00:56:26 dbj Exp $"); #endif /* not lint */ #include @@ -106,6 +106,7 @@ static struct typetab { { MBR_PTYPE_LNXSWAP, FS_SWAP }, { MBR_PTYPE_NETBSD, FS_BSDFFS }, { MBR_PTYPE_NTFS, FS_NTFS }, + { MBR_PTYPE_APPLEUFS, FS_APPLEUFS }, { 0, 0 } }; @@ -223,6 +224,7 @@ getparts(int sd, u_int32_t off, u_int32_t extoff, int verbose) fstypenames[npe.p_fstype], unused + 'a'); switch (npe.p_fstype) { case FS_BSDFFS: + case FS_APPLEUFS: npe.p_size = 16384; /* XXX */ npe.p_fsize = 1024; npe.p_frag = 8; diff --git a/sys/sys/disklabel_mbr.h b/sys/sys/disklabel_mbr.h index 45029b556704..394511211144 100644 --- a/sys/sys/disklabel_mbr.h +++ b/sys/sys/disklabel_mbr.h @@ -1,4 +1,4 @@ -/* $NetBSD: disklabel_mbr.h,v 1.8 2002/06/17 15:07:06 itojun Exp $ */ +/* $NetBSD: disklabel_mbr.h,v 1.9 2002/09/28 00:56:25 dbj Exp $ */ /* * Copyright (c) 1994, 1998 Christopher G. Demetriou @@ -83,6 +83,7 @@ struct mbr_partition { #define MBR_PTYPE_EXT_LNX 0x85 /* Linux extended partition */ #define MBR_PTYPE_NTFSVOL 0x87 /* NTFS volume set or HPFS mirrored */ #define MBR_PTYPE_PREP 0x41 /* PReP */ +#define MBR_PTYPE_APPLEUFS 0xa8 /* Apple UFS */ /* Isolate the relevant bits to get sector and cylinder. */ #define MBR_PSECT(s) ((s) & 0x3f)