Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/msdosfs Pull up revision 1.14 (requested by jdolecek):



details:   https://anonhg.NetBSD.org/src/rev/8a08c4216aa5
branches:  netbsd-1-4
changeset: 470538:8a08c4216aa5
user:      he <he%NetBSD.org@localhost>
date:      Sun Apr 30 13:11:22 2000 +0000

description:
Pull up revision 1.14 (requested by jdolecek):
  Correct broken "LP64 fix" introduced in last pullup, and better
  explain sense of MSDOSFSEOF() macro.  Fixes PR#9116, PR#9206 and
  part of PR#8037.

diffstat:

 sys/msdosfs/fat.h |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r fbafa798074d -r 8a08c4216aa5 sys/msdosfs/fat.h
--- a/sys/msdosfs/fat.h Sun Apr 30 13:07:07 2000 +0000
+++ b/sys/msdosfs/fat.h Sun Apr 30 13:11:22 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fat.h,v 1.12.8.1 1999/08/20 05:39:26 cgd Exp $ */
+/*     $NetBSD: fat.h,v 1.12.8.2 2000/04/30 13:11:22 he Exp $  */
 
 /*-
  * Copyright (C) 1994, 1997 Wolfgang Solfrank.
@@ -80,7 +80,14 @@
 #define        FAT16(pmp)      (pmp->pm_fatmask == FAT16_MASK)
 #define        FAT32(pmp)      (pmp->pm_fatmask == FAT32_MASK)
 
-#define        MSDOSFSEOF(pmp, cn)     ((cn) == (CLUST_EOFS & (pmp)->pm_fatmask))
+/*
+ * M$ in it's unlimited wisdom desided that EOF mark is anything
+ * between 0xfffffff8 and 0xffffffff (masked by appropriate fatmask,
+ * of course).
+ * Note that cn is supposed to be already adjusted accordingly to FAT type.
+ */ 
+#define        MSDOSFSEOF(pmp, cn)     \
+       (((cn) & CLUST_EOFS) == (CLUST_EOFS & (pmp)->pm_fatmask))
 
 #ifdef _KERNEL
 /*



Home | Main Index | Thread Index | Old Index