Author: pfg
Date: Fri Apr 29 20:56:58 2016
New Revision: 298808
URL: https://svnweb.freebsd.org/changeset/base/298808

Log:
  sys/geom: spelling fixes in comments.
  
  No functional change.

Modified:
  head/sys/geom/bde/g_bde_lock.c
  head/sys/geom/geom_bsd_enc.c
  head/sys/geom/geom_ccd.c
  head/sys/geom/geom_dev.c
  head/sys/geom/geom_disk.c
  head/sys/geom/geom_kern.c
  head/sys/geom/geom_mbr_enc.c
  head/sys/geom/geom_sunlabel_enc.c
  head/sys/geom/journal/g_journal.c
  head/sys/geom/mirror/g_mirror.c
  head/sys/geom/part/g_part_bsd64.c
  head/sys/geom/part/g_part_if.m
  head/sys/geom/part/g_part_ldm.c
  head/sys/geom/raid/tr_raid1.c
  head/sys/geom/raid/tr_raid1e.c
  head/sys/geom/raid3/g_raid3.c
  head/sys/geom/vinum/geom_vinum_drive.c
  head/sys/geom/vinum/geom_vinum_subr.c

Modified: head/sys/geom/bde/g_bde_lock.c
==============================================================================
--- head/sys/geom/bde/g_bde_lock.c      Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/bde/g_bde_lock.c      Fri Apr 29 20:56:58 2016        
(r298808)
@@ -289,7 +289,7 @@ g_bde_decode_lock(struct g_bde_softc *sc
  * Security objectives: Encode/Decode the metadata encrypted by key-material.
  *
  * A simple AES/128/CBC will do.  We take care to always store the metadata
- * in the same endianess to make it MI.
+ * in the same endianness to make it MI.
  *
  * In the typical case the metadata is stored in encrypted format in sector
  * zero on the media, but at the users discretion or if the piece of the

Modified: head/sys/geom/geom_bsd_enc.c
==============================================================================
--- head/sys/geom/geom_bsd_enc.c        Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/geom_bsd_enc.c        Fri Apr 29 20:56:58 2016        
(r298808)
@@ -35,7 +35,7 @@
 
 /*
  * Functions to encode and decode struct disklabel and struct partition into
- * a bytestream of little endianess and correct packing.
+ * a bytestream of little endianness and correct packing.
  *
  * NB!  This file must be usable both in kernel and userland.
  */

Modified: head/sys/geom/geom_ccd.c
==============================================================================
--- head/sys/geom/geom_ccd.c    Fri Apr 29 20:53:39 2016        (r298807)
+++ head/sys/geom/geom_ccd.c    Fri Apr 29 20:56:58 2016        (r298808)
@@ -271,7 +271,7 @@ ccdinit(struct gctl_req *req, struct ccd
 
        /*
         * If uniform interleave is desired set all sizes to that of
-        * the smallest component.  This will guarentee that a single
+        * the smallest component.  This will guarantee that a single
         * interleave table is generated.
         *
         * Lost space must be taken into account when calculating the
@@ -291,7 +291,7 @@ ccdinit(struct gctl_req *req, struct ccd
                 * Check to see if an even number of components
                 * have been specified.  The interleave must also
                 * be non-zero in order for us to be able to 
-                * guarentee the topology.
+                * guarantee the topology.
                 */
                if (cs->sc_ndisks % 2) {
                        gctl_error(req,

Modified: head/sys/geom/geom_dev.c
==============================================================================
--- head/sys/geom/geom_dev.c    Fri Apr 29 20:53:39 2016        (r298807)
+++ head/sys/geom/geom_dev.c    Fri Apr 29 20:56:58 2016        (r298808)
@@ -630,8 +630,8 @@ g_dev_strategy(struct bio *bp)
 
        for (;;) {
                /*
-                * XXX: This is not an ideal solution, but I belive it to
-                * XXX: deadlock safe, all things considered.
+                * XXX: This is not an ideal solution, but I believe it to
+                * XXX: deadlock safely, all things considered.
                 */
                bp2 = g_clone_bio(bp);
                if (bp2 != NULL)
@@ -686,7 +686,7 @@ g_dev_callback(void *arg)
  * - Clear any dump settings.
  * - Request asynchronous device destruction to prevent any more requests
  *   from coming in.  The provider is already marked with an error, so
- *   anything which comes in in the interrim will be returned immediately.
+ *   anything which comes in the interim will be returned immediately.
  */
 
 static void

Modified: head/sys/geom/geom_disk.c
==============================================================================
--- head/sys/geom/geom_disk.c   Fri Apr 29 20:53:39 2016        (r298807)
+++ head/sys/geom/geom_disk.c   Fri Apr 29 20:56:58 2016        (r298808)
@@ -107,7 +107,7 @@ g_disk_access(struct g_provider *pp, int
        if (sc == NULL || (dp = sc->dp) == NULL || dp->d_destroyed) {
                /*
                 * Allow decreasing access count even if disk is not
-                * avaliable anymore.
+                * available anymore.
                 */
                if (r <= 0 && w <= 0 && e <= 0)
                        return (0);

Modified: head/sys/geom/geom_kern.c
==============================================================================
--- head/sys/geom/geom_kern.c   Fri Apr 29 20:53:39 2016        (r298807)
+++ head/sys/geom/geom_kern.c   Fri Apr 29 20:56:58 2016        (r298808)
@@ -76,7 +76,7 @@ int g_notaste;
  * part of I/O prioritization by deciding which bios/bioqs to service
  * in what order.
  *
- * We have only one thread in each direction, it is belived that until
+ * We have only one thread in each direction, it is believed that until
  * a very non-trivial workload in the UP/DOWN path this will be enough,
  * but more than one can actually be run without problems.
  *

Modified: head/sys/geom/geom_mbr_enc.c
==============================================================================
--- head/sys/geom/geom_mbr_enc.c        Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/geom_mbr_enc.c        Fri Apr 29 20:56:58 2016        
(r298808)
@@ -25,7 +25,7 @@
  */
 
 /* Functions to encode or decode struct dos_partition into a bytestream
- * of correct endianess and packing.  These functions do no validation
+ * of correct endianness and packing.  These functions do no validation
  * or sanity checking, they only pack/unpack the fields correctly.
  *
  * NB!  This file must be usable both in kernel and userland.

Modified: head/sys/geom/geom_sunlabel_enc.c
==============================================================================
--- head/sys/geom/geom_sunlabel_enc.c   Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/geom_sunlabel_enc.c   Fri Apr 29 20:56:58 2016        
(r298808)
@@ -26,7 +26,7 @@
  * SUCH DAMAGE.
  */
 /* Functions to encode or decode struct sun_disklabel into a bytestream
- * of correct endianess and packing.
+ * of correct endianness and packing.
  *
  * NB!  This file must be usable both in kernel and userland.
  */

Modified: head/sys/geom/journal/g_journal.c
==============================================================================
--- head/sys/geom/journal/g_journal.c   Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/journal/g_journal.c   Fri Apr 29 20:56:58 2016        
(r298808)
@@ -520,7 +520,7 @@ g_journal_write_header(struct g_journal_
 /*
  * Every journal record has a header and data following it.
  * Functions below are used to decode the header before storing it to
- * little endian and to encode it after reading to system endianess.
+ * little endian and to encode it after reading to system endianness.
  */
 static void
 g_journal_record_header_encode(struct g_journal_record_header *hdr,
@@ -581,7 +581,7 @@ g_journal_record_header_decode(const u_c
 
 /*
  * Function reads metadata from a provider (via the given consumer), decodes
- * it to system endianess and verifies its correctness.
+ * it to system endianness and verifies its correctness.
  */
 static int
 g_journal_metadata_read(struct g_consumer *cp, struct g_journal_metadata *md)
@@ -1846,7 +1846,7 @@ g_journal_sync(struct g_journal_softc *s
        for (;;) {
                /*
                 * If the biggest record won't fit, look for a record header or
-                * journal header from the begining.
+                * journal header from the beginning.
                 */
                GJ_VALIDATE_OFFSET(offset, sc);
                error = g_journal_sync_read(cp, bp, offset, buf);

Modified: head/sys/geom/mirror/g_mirror.c
==============================================================================
--- head/sys/geom/mirror/g_mirror.c     Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/mirror/g_mirror.c     Fri Apr 29 20:56:58 2016        
(r298808)
@@ -1048,7 +1048,7 @@ g_mirror_kernel_dump(struct bio *bp)
        /*
         * We configure dumping to the first component, because this component
         * will be used for reading with 'prefer' balance algorithm.
-        * If the component with the higest priority is currently disconnected
+        * If the component with the highest priority is currently disconnected
         * we will not be able to read the dump after the reboot if it will be
         * connected and synchronized later. Can we do something better?
         */
@@ -1277,7 +1277,7 @@ g_mirror_sync_release(struct g_mirror_so
  * Handle synchronization requests.
  * Every synchronization request is two-steps process: first, READ request is
  * send to active provider and then WRITE request (with read data) to the 
provider
- * beeing synchronized. When WRITE is finished, new synchronization request is
+ * being synchronized. When WRITE is finished, new synchronization request is
  * send.
  */
 static void

Modified: head/sys/geom/part/g_part_bsd64.c
==============================================================================
--- head/sys/geom/part/g_part_bsd64.c   Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/part/g_part_bsd64.c   Fri Apr 29 20:56:58 2016        
(r298808)
@@ -58,7 +58,7 @@ FEATURE(geom_part_bsd64, "GEOM partition
 struct disklabel64 {
        char      d_reserved0[512];     /* reserved or unused */
        u_int32_t d_magic;              /* the magic number */
-       u_int32_t d_crc;                /* crc32() d_magic thru last part */
+       u_int32_t d_crc;                /* crc32() d_magic through last part */
        u_int32_t d_align;              /* partition alignment requirement */
        u_int32_t d_npartitions;        /* number of partitions */
        struct uuid d_stor_uuid;        /* unique uuid for label */

Modified: head/sys/geom/part/g_part_if.m
==============================================================================
--- head/sys/geom/part/g_part_if.m      Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/part/g_part_if.m      Fri Apr 29 20:56:58 2016        
(r298808)
@@ -201,7 +201,7 @@ METHOD int setunset {
 };
 
 # type() - return a string representation of the partition type.
-# Preferrably, the alias names.
+# Preferably, the alias names.
 METHOD const char * type {
         struct g_part_table *table;
         struct g_part_entry *entry;

Modified: head/sys/geom/part/g_part_ldm.c
==============================================================================
--- head/sys/geom/part/g_part_ldm.c     Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/part/g_part_ldm.c     Fri Apr 29 20:56:58 2016        
(r298808)
@@ -1220,7 +1220,7 @@ ldm_gpt_probe(struct g_part_table *baset
        int error;
 
        /*
-        * XXX: We use some knowlege about GEOM_PART_GPT internal
+        * XXX: We use some knowledge about GEOM_PART_GPT internal
         * structures, but it is easier than parse GPT by himself.
         */
        g_topology_lock();

Modified: head/sys/geom/raid/tr_raid1.c
==============================================================================
--- head/sys/geom/raid/tr_raid1.c       Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/raid/tr_raid1.c       Fri Apr 29 20:56:58 2016        
(r298808)
@@ -840,8 +840,8 @@ rebuild_round_done:
                 * disk, remapping the bad sector.  Do we need to do that by
                 * queueing a request to the main worker thread?  It doesn't
                 * affect the return code of this current read, and can be
-                * done at our liesure.  However, to make the code simpler, it
-                * is done syncrhonously.
+                * done at our leisure.  However, to make the code simpler, it
+                * is done synchronously.
                 */
                G_RAID_LOGREQ(3, bp, "Recovered data from other drive");
                cbp = g_clone_bio(pbp);
@@ -858,7 +858,7 @@ rebuild_round_done:
        if (pbp->bio_pflags & G_RAID_BIO_FLAG_LOCKED) {
                /*
                 * We're done with a recovery, mark the range as unlocked.
-                * For any write errors, we agressively fail the disk since
+                * For any write errors, we aggressively fail the disk since
                 * there was both a READ and a WRITE error at this location.
                 * Both types of errors generally indicates the drive is on
                 * the verge of total failure anyway.  Better to stop trusting

Modified: head/sys/geom/raid/tr_raid1e.c
==============================================================================
--- head/sys/geom/raid/tr_raid1e.c      Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/raid/tr_raid1e.c      Fri Apr 29 20:56:58 2016        
(r298808)
@@ -1096,7 +1096,7 @@ rebuild_round_done:
        if ((mask & (1U << 31)) != 0) {
                /*
                 * We're done with a recovery, mark the range as unlocked.
-                * For any write errors, we agressively fail the disk since
+                * For any write errors, we aggressively fail the disk since
                 * there was both a READ and a WRITE error at this location.
                 * Both types of errors generally indicates the drive is on
                 * the verge of total failure anyway.  Better to stop trusting

Modified: head/sys/geom/raid3/g_raid3.c
==============================================================================
--- head/sys/geom/raid3/g_raid3.c       Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/raid3/g_raid3.c       Fri Apr 29 20:56:58 2016        
(r298808)
@@ -1587,7 +1587,7 @@ g_raid3_sync_release(struct g_raid3_soft
  * Handle synchronization requests.
  * Every synchronization request is two-steps process: first, READ request is
  * send to active provider and then WRITE request (with read data) to the 
provider
- * beeing synchronized. When WRITE is finished, new synchronization request is
+ * being synchronized. When WRITE is finished, new synchronization request is
  * send.
  */
 static void

Modified: head/sys/geom/vinum/geom_vinum_drive.c
==============================================================================
--- head/sys/geom/vinum/geom_vinum_drive.c      Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/vinum/geom_vinum_drive.c      Fri Apr 29 20:56:58 2016        
(r298808)
@@ -76,7 +76,7 @@ gv_legacy_header_type(uint8_t *hdr, int 
        uint32_t *i32;
        int arch_32, arch_64, i;
 
-       /* Set arch according to endianess. */
+       /* Set arch according to endianness. */
        if (bigendian) {
                arch_32 = GV_LEGACY_POWERPC;
                arch_64 = GV_LEGACY_SPARC64;

Modified: head/sys/geom/vinum/geom_vinum_subr.c
==============================================================================
--- head/sys/geom/vinum/geom_vinum_subr.c       Fri Apr 29 20:53:39 2016        
(r298807)
+++ head/sys/geom/vinum/geom_vinum_subr.c       Fri Apr 29 20:56:58 2016        
(r298808)
@@ -72,7 +72,7 @@ gv_parse_config(struct gv_softc *sc, cha
                bptr = aptr;
                cptr = aptr;
 
-               /* Seperate input lines. */
+               /* Separate input lines. */
                while (*bptr != '\n')
                        bptr++;
                *bptr = '\0';
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to