Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/fs/msdosfs Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/c0fff2c2eeaa
branches:  netbsd-8
changeset: 434575:c0fff2c2eeaa
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jan 22 12:34:25 2018 +0000

description:
Pull up following revision(s) (requested by mlelstv in ticket #508):
        sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.129
relax sanity check. It's ok to have more FAT sectors than needed.

diffstat:

 sys/fs/msdosfs/msdosfs_vfsops.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 148a4b7db490 -r c0fff2c2eeaa sys/fs/msdosfs/msdosfs_vfsops.c
--- a/sys/fs/msdosfs/msdosfs_vfsops.c   Mon Jan 22 12:32:38 2018 +0000
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c   Mon Jan 22 12:34:25 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_vfsops.c,v 1.127.4.1 2017/09/23 17:58:25 snj Exp $     */
+/*     $NetBSD: msdosfs_vfsops.c,v 1.127.4.2 2018/01/22 12:34:25 martin 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.127.4.1 2017/09/23 17:58:25 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.127.4.2 2018/01/22 12:34:25 martin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -724,8 +724,8 @@
        fatbytes = (pmp->pm_maxcluster+1) * pmp->pm_fatmult / pmp->pm_fatdiv;
        fatblocksecs = howmany(fatbytes, pmp->pm_BytesPerSec);
 
-       if (pmp->pm_FATsecs != fatblocksecs) {
-               DPRINTF("FATsecs %lu != real %lu\n", pmp->pm_FATsecs,
+       if (pmp->pm_FATsecs < fatblocksecs) {
+               DPRINTF("FATsecs %lu < real %lu\n", pmp->pm_FATsecs,
                        fatblocksecs);
                error = EINVAL;
                goto error_exit;



Home | Main Index | Thread Index | Old Index