Remove additional GEMDOS only check on fstype, and update comment
This commit is contained in:
parent
d9e19ce400
commit
d82fca09e4
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: msdosfs_vfsops.c,v 1.70 2008/12/26 03:38:52 jmcneill Exp $ */
|
||||
/* $NetBSD: msdosfs_vfsops.c,v 1.71 2009/02/05 18:39:15 abs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
|
||||
@ -48,7 +48,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.70 2008/12/26 03:38:52 jmcneill Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.71 2009/02/05 18:39:15 abs Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
@ -202,7 +202,7 @@ update_mp(mp, argp)
|
||||
pmp->pm_flags |= argp->flags & MSDOSFSMNT_MNTOPT;
|
||||
|
||||
/*
|
||||
* GEMDOS knows nothing (yet) about win95
|
||||
* GEMDOS knows nothing about win95 long filenames
|
||||
*/
|
||||
if (pmp->pm_flags & MSDOSFSMNT_GEMDOSFS)
|
||||
pmp->pm_flags |= MSDOSFSMNT_NOWIN95;
|
||||
@ -528,8 +528,7 @@ msdosfs_mountfs(devvp, mp, l, argp)
|
||||
}
|
||||
if (argp->flags & MSDOSFSMNT_GEMDOSFS) {
|
||||
bsize = secsize;
|
||||
if (bsize != 512 ||
|
||||
(dtype != DTYPE_FLOPPY && fstype != FS_MSDOS)) {
|
||||
if (bsize != 512) {
|
||||
DPRINTF(("bsize %d dtype %d fstype %d\n", bsize, dtype,
|
||||
fstype));
|
||||
error = EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user