summaryrefslogtreecommitdiffstats
path: root/xlators/features/bit-rot/src/bitd
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/bit-rot/src/bitd')
-rw-r--r--xlators/features/bit-rot/src/bitd/bit-rot-scrub.c8
-rw-r--r--xlators/features/bit-rot/src/bitd/bit-rot.c6
-rw-r--r--xlators/features/bit-rot/src/bitd/bit-rot.h6
3 files changed, 10 insertions, 10 deletions
diff --git a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c
index e393ae0f64e..8e432aee645 100644
--- a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c
+++ b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c
@@ -158,7 +158,7 @@ bitd_signature_staleness (xlator_t *this,
}
/**
- * save verison for validation in post compute stage
+ * save version for validation in post compute stage
* c.f. bitd_scrub_post_compute_check()
*/
*stale = signptr->stale ? 1 : 0;
@@ -358,7 +358,7 @@ br_scrubber_scrub_begin (xlator_t *this, struct br_fsscan_entry *fsentry)
skip_stat = _gf_true;
/**
- * open() an fd for subsequent opertaions
+ * open() an fd for subsequent operations
*/
fd = fd_create (linked_inode, 0);
if (!fd) {
@@ -419,7 +419,7 @@ br_scrubber_scrub_begin (xlator_t *this, struct br_fsscan_entry *fsentry)
if (!skip_stat)
br_inc_scrubbed_file (&priv->scrub_stat);
- GF_FREE (sign); /* alloced on post-compute */
+ GF_FREE (sign); /* allocated on post-compute */
/** fd_unref() takes care of closing fd.. like syncop_close() */
@@ -1910,7 +1910,7 @@ br_monitor_thread (void *arg)
/*
* Since, this is the topmost xlator, THIS has to be set by bit-rot
- * xlator itself (STACK_WIND wont help in this case). Also it has
+ * xlator itself (STACK_WIND won't help in this case). Also it has
* to be done for each thread that gets spawned. Otherwise, a new
* thread will get global_xlator's pointer when it does "THIS".
*/
diff --git a/xlators/features/bit-rot/src/bitd/bit-rot.c b/xlators/features/bit-rot/src/bitd/bit-rot.c
index a9b70b61f8a..66e58948fa9 100644
--- a/xlators/features/bit-rot/src/bitd/bit-rot.c
+++ b/xlators/features/bit-rot/src/bitd/bit-rot.c
@@ -947,7 +947,7 @@ out:
* last run for whatever reason (node crashes, reboots, etc..) become
* candidates for signing. This allows the signature to "catch up" with
* the current state of the object. Triggering signing is easy: perform
- * an open() followed by a close() therby resulting in call boomerang.
+ * an open() followed by a close() thereby resulting in call boomerang.
* (though not back to itself :))
*/
int
@@ -999,7 +999,7 @@ bitd_oneshot_crawl (xlator_t *subvol,
* In this case syncop_getxattr fails with ENODATA and the object
* is signed. (In real, when crawler sends lookup, bit-rot-stub
* creates the xattrs before returning lookup reply)
- * 2) Bit-rot was not enabled or BitD was dows for some reasons, during
+ * 2) Bit-rot was not enabled or BitD was does for some reasons, during
* which some files were created, but since BitD was down, were not
* signed.
* If the file was just created and was being written some data when
@@ -1457,7 +1457,7 @@ br_handle_events (void *arg)
/*
* Since, this is the topmost xlator, THIS has to be set by bit-rot
- * xlator itself (STACK_WIND wont help in this case). Also it has
+ * xlator itself (STACK_WIND won't help in this case). Also it has
* to be done for each thread that gets spawned. Otherwise, a new
* thread will get global_xlator's pointer when it does "THIS".
*/
diff --git a/xlators/features/bit-rot/src/bitd/bit-rot.h b/xlators/features/bit-rot/src/bitd/bit-rot.h
index c2c0c225792..670060c8d88 100644
--- a/xlators/features/bit-rot/src/bitd/bit-rot.h
+++ b/xlators/features/bit-rot/src/bitd/bit-rot.h
@@ -77,7 +77,7 @@ typedef enum br_child_state {
struct br_child {
pthread_mutex_t lock; /* protects child state */
- char witnessed; /* witnessed at least one succesfull
+ char witnessed; /* witnessed at least one successful
connection */
br_child_state_t c_state; /* current state of this child */
@@ -123,7 +123,7 @@ struct br_scrubber {
/**
* frequency of scanning for this subvolume. this should
- * normally be per-child, but since all childs follow the
+ * normally be per-child, but since all children follow the
* same frequency for a volume, this option ends up here
* instead of br_child_t.
*/
@@ -225,7 +225,7 @@ struct br_object {
uuid_t gfid;
- unsigned long signedversion; /* version aginst which this object will
+ unsigned long signedversion; /* version against which this object will
be signed */
br_child_t *child; /* object's subvolume */