Use xlat_mbr_fstype() so that we can mount FAT removable media properly.

This commit is contained in:
tsutsui 2008-03-03 15:22:01 +00:00
parent 0dd978c139
commit a9ae1f2955

View File

@ -1,4 +1,4 @@
/* $NetBSD: disksubr.c,v 1.23 2008/01/02 11:48:24 ad Exp $ */
/* $NetBSD: disksubr.c,v 1.24 2008/03/03 15:22:01 tsutsui Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.23 2008/01/02 11:48:24 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.24 2008/03/03 15:22:01 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -162,11 +162,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp,
pp = &lp->d_partitions[RAW_PART + 1 + i];
pp->p_offset = dp->mbrp_start;
pp->p_size = dp->mbrp_size;
if (dp->mbrp_type == MBR_PTYPE_LNXEXT2)
pp->p_fstype = FS_EX2FS;
if (dp->mbrp_type == MBR_PTYPE_LNXSWAP)
pp->p_fstype = FS_SWAP;
pp->p_fstype = xlat_mbr_fstype(dp->mbrp_type);
/* is this ours? */
if (dp == ourdp) {