[sheepdog] [PATCH 08/10] sheep/store: fix typo
Ruoyu
liangry at ucweb.com
Tue Aug 5 09:30:29 CEST 2014
Signed-off-by: Ruoyu <liangry at ucweb.com>
---
sheep/md.c | 4 ++--
sheep/plain_store.c | 8 ++++----
sheep/store.c | 2 +-
sheep/vdi.c | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/sheep/md.c b/sheep/md.c
index 8f4d5be..fdc2ed7 100644
--- a/sheep/md.c
+++ b/sheep/md.c
@@ -261,7 +261,7 @@ out:
}
/*
- * If path is broken during initilization or not support xattr return 0. We can
+ * If path is broken during initialization or not support xattr return 0. We can
* safely use 0 to represent failure case because 0 space path can be
* considered as broken path.
*/
@@ -664,7 +664,7 @@ static int md_check_and_move(uint64_t oid, uint32_t epoch, uint8_t ec_index,
if (!strcmp(old, new))
return SD_RES_SUCCESS;
- /* We can't use rename(2) accross device */
+ /* We can't use rename(2) across device */
if (md_move_object(oid, old, new) < 0) {
sd_err("move old %s to new %s failed", old, new);
return SD_RES_EIO;
diff --git a/sheep/plain_store.c b/sheep/plain_store.c
index 5991bf3..876582c 100644
--- a/sheep/plain_store.c
+++ b/sheep/plain_store.c
@@ -364,7 +364,7 @@ int default_read(uint64_t oid, const struct siocb *iocb)
ret = default_read_from_path(oid, path, iocb);
/*
- * If the request is againt the older epoch, try to read from
+ * If the request is against the older epoch, try to read from
* the stale directory
*/
if (ret == SD_RES_NO_OBJ && iocb->epoch > 0 &&
@@ -511,9 +511,9 @@ out:
* For replicated object, if any of the replica belongs to this node, we
* consider it not stale.
*
- * For erasured object, since every copy is unique and if it migrates to other
- * node(index gets changed even it has some other copy belongs to it) because
- * of hash ring changes, we consider it stale.
+ * For erasure coded object, since every copy is unique and if it migrates to
+ * other node(index gets changed even it has some other copy belongs to it)
+ * because of hash ring changes, we consider it stale.
*/
static bool oid_stale(uint64_t oid, int ec_index, struct vnode_info *vinfo)
{
diff --git a/sheep/store.c b/sheep/store.c
index 80e0406..8843fb8 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -348,7 +348,7 @@ out:
return ret;
}
-/* Initilize all the global pathnames used internally */
+/* Initialize all the global pathnames used internally */
int init_global_pathnames(const char *d, char *argp)
{
int ret;
diff --git a/sheep/vdi.c b/sheep/vdi.c
index 433fcd2..eacb140 100644
--- a/sheep/vdi.c
+++ b/sheep/vdi.c
@@ -775,7 +775,7 @@ static int fill_vdi_info_range(uint32_t left, uint32_t right,
*/
info->snapid = inode->snap_id + 1;
if (vdi_is_snapshot(inode))
- /* Current workding VDI is deleted */
+ /* Current working VDI is deleted */
break;
}
info->create_time = inode->create_time;
--
1.8.3.2
More information about the sheepdog
mailing list