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 rev 1.31 from trunk. (cgd)



details:   https://anonhg.NetBSD.org/src/rev/a5b8b2e74ff0
branches:  netbsd-1-4
changeset: 469246:a5b8b2e74ff0
user:      cgd <cgd%NetBSD.org@localhost>
date:      Fri Aug 20 05:39:30 1999 +0000

description:
pull up rev 1.31 from trunk. (cgd)

diffstat:

 sys/msdosfs/msdosfs_fat.c |  18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)

diffs (53 lines):

diff -r 888a9127802e -r a5b8b2e74ff0 sys/msdosfs/msdosfs_fat.c
--- a/sys/msdosfs/msdosfs_fat.c Fri Aug 20 05:39:26 1999 +0000
+++ b/sys/msdosfs/msdosfs_fat.c Fri Aug 20 05:39:30 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_fat.c,v 1.30 1998/08/09 20:52:20 perry Exp $   */
+/*     $NetBSD: msdosfs_fat.c,v 1.30.6.1 1999/08/20 05:39:30 cgd Exp $ */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -216,7 +216,7 @@
                /*
                 * Stop with all reserved clusters, not just with EOF.
                 */
-               if ((cn | ~pmp->pm_fatmask) >= CLUST_RSRVD)
+               if (cn >= (CLUST_RSRVD & pmp->pm_fatmask))
                        goto hiteof;
                byteoffset = FATOFS(pmp, cn);
                fatblock(pmp, byteoffset, &bn, &bsize, &bo);
@@ -238,15 +238,6 @@
                if (FAT12(pmp) && (prevcn & 1))
                        cn >>= 4;
                cn &= pmp->pm_fatmask;
-
-               /*
-                * Force the special cluster numbers
-                * to be the same for all cluster sizes
-                * to let the rest of msdosfs handle
-                * all cases the same.
-                */
-               if ((cn | ~pmp->pm_fatmask) >= CLUST_RSRVD)
-                       cn |= ~pmp->pm_fatmask;
        }
 
        if (!MSDOSFSEOF(pmp, cn)) {
@@ -554,9 +545,6 @@
                if (FAT12(pmp) & (cn & 1))
                        readcn >>= 4;
                readcn &= pmp->pm_fatmask;
-               /* map reserved fat entries to same values for all fats */
-               if ((readcn | ~pmp->pm_fatmask) >= CLUST_RSRVD)
-                       readcn |= ~pmp->pm_fatmask;
                *oldcontents = readcn;
        }
        if (function & FAT_SET) {
@@ -901,8 +889,6 @@
                        break;
                }
                cluster &= pmp->pm_fatmask;
-               if ((cluster | ~pmp->pm_fatmask) >= CLUST_RSRVD)
-                       cluster |= pmp->pm_fatmask;
        }
        if (bp)
                updatefats(pmp, bp, bn);



Home | Main Index | Thread Index | Old Index