Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/msdosfs PR/23773: Tero Kivinen: Cannot mount msdos fi...
details: https://anonhg.NetBSD.org/src/rev/92e725fa5fca
branches: trunk
changeset: 584167:92e725fa5fca
user: christos <christos%NetBSD.org@localhost>
date: Sat Sep 10 17:33:45 2005 +0000
description:
PR/23773: Tero Kivinen: Cannot mount msdos filesystems if filesystem size >
128GB
PR/31287: Fabien Devaux: msdosfs now can mount >128MB filesystems
diffstat:
sys/fs/msdosfs/msdosfs_vfsops.c | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
diffs (43 lines):
diff -r 35a184a600fa -r 92e725fa5fca sys/fs/msdosfs/msdosfs_vfsops.c
--- a/sys/fs/msdosfs/msdosfs_vfsops.c Sat Sep 10 17:19:55 2005 +0000
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c Sat Sep 10 17:33:45 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msdosfs_vfsops.c,v 1.26 2005/08/29 23:57:35 xtraeme Exp $ */
+/* $NetBSD: msdosfs_vfsops.c,v 1.27 2005/09/10 17:33:45 christos 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.26 2005/08/29 23:57:35 xtraeme Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.27 2005/09/10 17:33:45 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_quota.h"
@@ -441,7 +441,6 @@
u_int8_t SecPerClust;
int ronly, error;
int bsize = 0, dtype = 0, tmp;
- u_long dirsperblk;
/* Flush out any old buffers remaining from a previous use. */
if ((error = vinvalbuf(devvp, V_SAVE, p->p_ucred, p, 0, 0)) != 0)
@@ -531,16 +530,6 @@
pmp->pm_HiddenSects = getushort(b33->bpbHiddenSecs);
pmp->pm_HugeSectors = pmp->pm_Sectors;
}
- dirsperblk = pmp->pm_BytesPerSec / sizeof(struct direntry);
- if (pmp->pm_HugeSectors > 0xffffffff / dirsperblk + 1) {
- /*
- * We cannot deal currently with this size of disk
- * due to fileid limitations (see msdosfs_getattr and
- * msdosfs_readdir)
- */
- error = EINVAL;
- goto error_exit;
- }
if (pmp->pm_RootDirEnts == 0) {
if (bsp->bs710.bsBootSectSig2 != BOOTSIG2
Home |
Main Index |
Thread Index |
Old Index