Source-Changes-HG archive

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

[src/trunk]: src/sbin/newfs_msdos Use correct values for minimum and maximum ...



details:   https://anonhg.NetBSD.org/src/rev/2964724ffb85
branches:  trunk
changeset: 780621:2964724ffb85
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Tue Jul 31 13:52:44 2012 +0000

description:
Use correct values for minimum and maximum cluster counts for the various FAT
types.  These values come from a publically-avaliable document of an
infallible source that must not be named due to a violation of the document's
license restrictions.  This is justified by interoperability concerns.

diffstat:

 sbin/newfs_msdos/newfs_msdos.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (35 lines):

diff -r e4f8536d580b -r 2964724ffb85 sbin/newfs_msdos/newfs_msdos.c
--- a/sbin/newfs_msdos/newfs_msdos.c    Tue Jul 31 13:35:48 2012 +0000
+++ b/sbin/newfs_msdos/newfs_msdos.c    Tue Jul 31 13:52:44 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: newfs_msdos.c,v 1.37 2012/07/04 18:35:58 jakllsch Exp $        */
+/*     $NetBSD: newfs_msdos.c,v 1.38 2012/07/31 13:52:44 jakllsch Exp $        */
 
 /*
  * Copyright (c) 1998 Robert Nordier
@@ -33,7 +33,7 @@
 static const char rcsid[] =
   "$FreeBSD: src/sbin/newfs_msdos/newfs_msdos.c,v 1.15 2000/10/10 01:49:37 wollman Exp $";
 #else
-__RCSID("$NetBSD: newfs_msdos.c,v 1.37 2012/07/04 18:35:58 jakllsch Exp $");
+__RCSID("$NetBSD: newfs_msdos.c,v 1.38 2012/07/31 13:52:44 jakllsch Exp $");
 #endif
 #endif /* not lint */
 
@@ -74,11 +74,11 @@
 #define DEFRDE   512           /* default root directory entries */
 #define RESFTE   2             /* reserved FAT entries */
 #define MINCLS12  1            /* minimum FAT12 clusters */
-#define MINCLS16  0x1000       /* minimum FAT16 clusters */
-#define MINCLS32  2            /* minimum FAT32 clusters */
-#define MAXCLS12  0xfed        /* maximum FAT12 clusters */
-#define MAXCLS16  0xfff5       /* maximum FAT16 clusters */
-#define MAXCLS32  0xffffff5    /* maximum FAT32 clusters */
+#define MINCLS16  0xff5                /* minimum FAT16 clusters */
+#define MINCLS32  0xfff5       /* minimum FAT32 clusters */
+#define MAXCLS12  0xff4        /* maximum FAT12 clusters */
+#define MAXCLS16  0xfff4       /* maximum FAT16 clusters */
+#define MAXCLS32  0xffffff4    /* maximum FAT32 clusters */
 
 #define mincls(fat)  ((fat) == 12 ? MINCLS12 : \
                      (fat) == 16 ? MINCLS16 :  \



Home | Main Index | Thread Index | Old Index