Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/msdosfs Stylistic changes in comments/strings:



details:   https://anonhg.NetBSD.org/src/rev/faa0df500eef
branches:  trunk
changeset: 782496:faa0df500eef
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Nov 04 17:57:59 2012 +0000

description:
Stylistic changes in comments/strings:
"FAT" and "fat" are different things, use the appropriate case.
"GEMDOS" is all caps.

diffstat:

 sys/fs/msdosfs/bootsect.h       |   4 +-
 sys/fs/msdosfs/bpb.h            |   6 +-
 sys/fs/msdosfs/denode.h         |  14 ++++----
 sys/fs/msdosfs/fat.h            |  12 +++---
 sys/fs/msdosfs/msdosfs_denode.c |   6 +-
 sys/fs/msdosfs/msdosfs_fat.c    |  64 ++++++++++++++++++++--------------------
 sys/fs/msdosfs/msdosfs_vfsops.c |  26 ++++++++--------
 sys/fs/msdosfs/msdosfsmount.h   |  20 ++++++------
 8 files changed, 76 insertions(+), 76 deletions(-)

diffs (truncated from 526 to 300 lines):

diff -r e72d9c31f1be -r faa0df500eef sys/fs/msdosfs/bootsect.h
--- a/sys/fs/msdosfs/bootsect.h Sun Nov 04 17:53:29 2012 +0000
+++ b/sys/fs/msdosfs/bootsect.h Sun Nov 04 17:57:59 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bootsect.h,v 1.4 2006/08/14 14:06:26 gdt Exp $ */
+/*     $NetBSD: bootsect.h,v 1.5 2012/11/04 17:57:59 jakllsch Exp $    */
 
 /*
  * Written by Paul Popelka (paulp%uts.amdahl.com@localhost)
@@ -70,7 +70,7 @@
 };
 #ifdef atari
 /*
- * The boot sector on a gemdos fs is a little bit different from the msdos fs
+ * The boot sector on a GEMDOS FS is a little bit different from the MSDOS FS
  * format. Currently there is no need to declare a separate structure, the
  * bootsector33 struct will do.
  */
diff -r e72d9c31f1be -r faa0df500eef sys/fs/msdosfs/bpb.h
--- a/sys/fs/msdosfs/bpb.h      Sun Nov 04 17:53:29 2012 +0000
+++ b/sys/fs/msdosfs/bpb.h      Sun Nov 04 17:57:59 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bpb.h,v 1.6 2007/01/27 07:18:10 cbiere Exp $   */
+/*     $NetBSD: bpb.h,v 1.7 2012/11/04 17:57:59 jakllsch Exp $ */
 
 /*
  * Written by Paul Popelka (paulp%uts.amdahl.com@localhost)
@@ -85,7 +85,7 @@
 
 #ifdef atari
 /*
- * BPB for gemdos filesystems. Atari leaves the obsolete stuff undefined.
+ * BPB for GEMDOS filesystems. Atari leaves the obsolete stuff undefined.
  * Currently there is no need for a separate BPB structure.
  */
 #if 0
@@ -96,7 +96,7 @@
        u_int8_t        bpbFATs;        /* number of FATs               */
        u_int16_t       bpbRootDirEnts; /* number of root directory entries */
        u_int16_t       bpbSectors;     /* total number of sectors      */
-       u_int8_t        bpbUseless1;    /* meaningless on gemdos fs     */
+       u_int8_t        bpbUseless1;    /* meaningless on GEMDOS FS     */
        u_int16_t       bpbFATsecs;     /* number of sectors per FAT    */
        u_int16_t       bpbUseless2;    /* meaningless for harddisk fs  */
        u_int16_t       bpbUseless3;    /* meaningless for harddisk fs  */
diff -r e72d9c31f1be -r faa0df500eef sys/fs/msdosfs/denode.h
--- a/sys/fs/msdosfs/denode.h   Sun Nov 04 17:53:29 2012 +0000
+++ b/sys/fs/msdosfs/denode.h   Sun Nov 04 17:57:59 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: denode.h,v 1.19 2011/04/04 19:16:58 hannken Exp $      */
+/*     $NetBSD: denode.h,v 1.20 2012/11/04 17:57:59 jakllsch Exp $     */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -101,7 +101,7 @@
 #define        MSDOSFSROOT_OFS 0x1fffffff
 
 /*
- * The fat cache structure. fc_fsrcn is the filesystem relative cluster
+ * The FAT cache structure. fc_fsrcn is the filesystem relative cluster
  * number that corresponds to the file relative cluster number in this
  * structure (fc_frcn).
  */
@@ -111,11 +111,11 @@
 };
 
 /*
- * The fat entry cache as it stands helps make extending files a "quick"
- * operation by avoiding having to scan the fat to discover the last
+ * The FAT entry cache as it stands helps make extending files a "quick"
+ * operation by avoiding having to scan the FAT to discover the last
  * cluster of the file. The cache also helps sequential reads by
  * remembering the last cluster read from the file.  This also prevents us
- * from having to rescan the fat to find the next cluster to read.  This
+ * from having to rescan the FAT to find the next cluster to read.  This
  * cache is probably pretty worthless if a file is opened by multiple
  * processes.
  */
@@ -128,7 +128,7 @@
 #define        FCE_EMPTY       0xffffffff      /* doesn't represent an actual cluster # */
 
 /*
- * Set a slot in the fat cache.
+ * Set a slot in the FAT cache.
  */
 #define        fc_setcache(dep, slot, frcn, fsrcn) \
        (dep)->de_fc[slot].fc_frcn = frcn; \
@@ -169,7 +169,7 @@
        u_short de_MDate;       /* modification date */
        u_long de_StartCluster; /* starting cluster of file */
        u_long de_FileSize;     /* size of file in bytes */
-       struct fatcache de_fc[FC_SIZE]; /* fat cache */
+       struct fatcache de_fc[FC_SIZE]; /* FAT cache */
 };
 
 /*
diff -r e72d9c31f1be -r faa0df500eef sys/fs/msdosfs/fat.h
--- a/sys/fs/msdosfs/fat.h      Sun Nov 04 17:53:29 2012 +0000
+++ b/sys/fs/msdosfs/fat.h      Sun Nov 04 17:57:59 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fat.h,v 1.6 2012/11/04 17:35:27 jakllsch Exp $ */
+/*     $NetBSD: fat.h,v 1.7 2012/11/04 17:57:59 jakllsch Exp $ */
 
 /*-
  * Copyright (C) 1994, 1997 Wolfgang Solfrank.
@@ -68,13 +68,13 @@
 
 /*
  * MSDOSFS:
- * Return true if filesystem uses 12 bit fats. Microsoft Programmer's
+ * Return true if filesystem uses 12 bit FATs. Microsoft Programmer's
  * Reference says if the maximum cluster number in a filesystem is greater
  * than 4084 ((CLUST_RSRVD - CLUST_FIRST) & FAT12_MASK) then we've got a
- * 16 bit fat filesystem. While mounting, the result of this test is stored
+ * 16 bit FAT filesystem. While mounting, the result of this test is stored
  * in pm_fatentrysize.
  * GEMDOS-flavour (atari):
- * If the filesystem is on floppy we've got a 12 bit fat filesystem, otherwise
+ * If the filesystem is on floppy we've got a 12 bit FAT filesystem, otherwise
  * 16 bit. We check the d_type field in the disklabel struct while mounting
  * and store the result in the pm_fatentrysize. Note that this kind of
  * detection gets flakey when mounting a vnd-device.
@@ -97,8 +97,8 @@
  * These are the values for the function argument to the function
  * fatentry().
  */
-#define        FAT_GET         0x0001  /* get a fat entry */
-#define        FAT_SET         0x0002  /* set a fat entry */
+#define        FAT_GET         0x0001  /* get a FAT entry */
+#define        FAT_SET         0x0002  /* set a FAT entry */
 #define        FAT_GET_AND_SET (FAT_GET | FAT_SET)
 
 /*
diff -r e72d9c31f1be -r faa0df500eef sys/fs/msdosfs/msdosfs_denode.c
--- a/sys/fs/msdosfs/msdosfs_denode.c   Sun Nov 04 17:53:29 2012 +0000
+++ b/sys/fs/msdosfs/msdosfs_denode.c   Sun Nov 04 17:57:59 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_denode.c,v 1.46 2011/06/16 09:21:02 hannken Exp $      */
+/*     $NetBSD: msdosfs_denode.c,v 1.47 2012/11/04 17:57:59 jakllsch Exp $     */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_denode.c,v 1.46 2011/06/16 09:21:02 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_denode.c,v 1.47 2012/11/04 17:57:59 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -348,7 +348,7 @@
        ldep->de_dev = pmp->pm_dev;
        ldep->de_dirclust = dirclust;
        ldep->de_diroffset = diroffset;
-       fc_purge(ldep, 0);      /* init the fat cache for this denode */
+       fc_purge(ldep, 0);      /* init the FAT cache for this denode */
 
        /*
         * Insert the denode into the hash queue and lock the denode so it
diff -r e72d9c31f1be -r faa0df500eef sys/fs/msdosfs/msdosfs_fat.c
--- a/sys/fs/msdosfs/msdosfs_fat.c      Sun Nov 04 17:53:29 2012 +0000
+++ b/sys/fs/msdosfs/msdosfs_fat.c      Sun Nov 04 17:57:59 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_fat.c,v 1.20 2012/04/09 11:10:06 hannken Exp $ */
+/*     $NetBSD: msdosfs_fat.c,v 1.21 2012/11/04 17:57:59 jakllsch Exp $        */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_fat.c,v 1.20 2012/04/09 11:10:06 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_fat.c,v 1.21 2012/11/04 17:57:59 jakllsch Exp $");
 
 /*
  * kernel include files.
@@ -226,8 +226,8 @@
                *sp = pmp->pm_bpcluster;
 
        /*
-        * Rummage around in the fat cache, maybe we can avoid tromping
-        * thru every fat entry for the file. And, keep track of how far
+        * Rummage around in the FAT cache, maybe we can avoid tromping
+        * thru every FAT entry for the file. And, keep track of how far
         * off the cache was from where we wanted to be.
         */
        i = 0;
@@ -309,13 +309,13 @@
                *cnp = i;
        if (bp)
                brelse(bp, 0);
-       /* update last file cluster entry in the fat cache */
+       /* update last file cluster entry in the FAT cache */
        fc_setcache(dep, FC_LASTFC, i - 1, prevcn);
        return (E2BIG);
 }
 
 /*
- * Find the closest entry in the fat cache to the cluster we are looking
+ * Find the closest entry in the FAT cache to the cluster we are looking
  * for.
  */
 void
@@ -339,7 +339,7 @@
 }
 
 /*
- * Purge the fat cache in denode dep of all entries relating to file
+ * Purge the FAT cache in denode dep of all entries relating to file
  * relative cluster frcn and beyond.
  */
 void
@@ -356,13 +356,13 @@
 }
 
 /*
- * Update the fat.
- * If mirroring the fat, update all copies, with the first copy as last.
- * Else update only the current fat (ignoring the others).
+ * Update the FAT.
+ * If mirroring the FAT, update all copies, with the first copy as last.
+ * Else update only the current FAT (ignoring the others).
  *
  * pmp  - msdosfsmount structure for filesystem to update
- * bp   - addr of modified fat block
- * fatbn - block number relative to begin of filesystem of the modified fat block.
+ * bp   - addr of modified FAT block
+ * fatbn - block number relative to begin of filesystem of the modified FAT block.
  */
 void
 updatefats(struct msdosfsmount *pmp, struct buf *bp, u_long fatbn)
@@ -421,11 +421,11 @@
 
        if (pmp->pm_flags & MSDOSFS_FATMIRROR) {
                /*
-                * Now copy the block(s) of the modified fat to the other copies of
-                * the fat and write them out.  This is faster than reading in the
-                * other fats and then writing them back out.  This could tie up
-                * the fat for quite a while. Preventing others from accessing it.
-                * To prevent us from going after the fat quite so much we use
+                * Now copy the block(s) of the modified FAT to the other copies of
+                * the FAT and write them out.  This is faster than reading in the
+                * other FATs and then writing them back out.  This could tie up
+                * the FAT for quite a while. Preventing others from accessing it.
+                * To prevent us from going after the FAT quite so much we use
                 * delayed writes, unless they specified "synchronous" when the
                 * filesystem was mounted.  If synch is asked for then use
                 * bwrite()'s and really slow things down.
@@ -444,7 +444,7 @@
        }
 
        /*
-        * Write out the first (or current) fat last.
+        * Write out the first (or current) FAT last.
         */
        if (pmp->pm_flags & MSDOSFSMNT_WAITONFAT)
                bwrite(bp);
@@ -456,7 +456,7 @@
 }
 
 /*
- * Updating entries in 12 bit fats is a pain in the butt.
+ * Updating entries in 12 bit FATs is a pain in the butt.
  *
  * The following picture shows where nibbles go when moving from a 12 bit
  * cluster number into the appropriate bytes in the FAT.
@@ -513,21 +513,21 @@
 }
 
 /*
- * Get or Set or 'Get and Set' the cluster'th entry in the fat.
+ * Get or Set or 'Get and Set' the cluster'th entry in the FAT.
  *
  * function    - whether to get or set a fat entry
  * pmp         - address of the msdosfsmount structure for the filesystem
- *               whose fat is to be manipulated.
+ *               whose FAT is to be manipulated.
  * cn          - which cluster is of interest
  * oldcontents - address of a word that is to receive the contents of the
  *               cluster'th entry if this is a get function
  * newcontents - the new value to be written into the cluster'th element of
- *               the fat if this is a set function.
+ *               the FAT if this is a set function.
  *
- * This function can also be used to free a cluster by setting the fat entry
+ * This function can also be used to free a cluster by setting the FAT entry
  * for a cluster to 0.
  *
- * All copies of the fat are updated if this is a set function. NOTE: If
+ * All copies of the FAT are updated if this is a set function. NOTE: If
  * fatentry() marks a cluster as free it does not update the inusemap in
  * the msdosfsmount structure. This is left to the caller.
  */
@@ -606,7 +606,7 @@
                case FAT32_MASK:
                        /*
                         * According to spec we have to retain the
-                        * high order bits of the fat entry.



Home | Main Index | Thread Index | Old Index