linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: mkfs: Fix typos
@ 2018-06-02 20:30 Yevgeny Popovych
  2018-06-06 14:51 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Yevgeny Popovych @ 2018-06-02 20:30 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Yevgeny Popovych

Signed-off-by: Yevgeny Popovych <yevgenyp@pointgrab.com>
---
 mkfs/common.c  |  2 +-
 mkfs/common.h  |  4 ++--
 mkfs/main.c    |  2 +-
 mkfs/rootdir.c | 10 +++++-----
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/mkfs/common.c b/mkfs/common.c
index 3a80050..0ace262 100644
--- a/mkfs/common.c
+++ b/mkfs/common.c
@@ -514,7 +514,7 @@ u64 btrfs_min_dev_size(u32 nodesize, int mixed, u64 meta_profile,
 	 *
 	 * Temporary chunks sizes are always fixed:
 	 * One initial sys chunk, one SINGLE meta, and one SINGLE data.
-	 * The latter two are all 8M, accroding to @calc_size of
+	 * The latter two are all 8M, according to @calc_size of
 	 * btrfs_alloc_chunk().
 	 */
 	reserved += BTRFS_BLOCK_RESERVED_1M_FOR_SUPER +
diff --git a/mkfs/common.h b/mkfs/common.h
index f6b60c2..2891290 100644
--- a/mkfs/common.h
+++ b/mkfs/common.h
@@ -16,7 +16,7 @@
 
 /*
  * Defines and function declarations for users of the mkfs API, no internal
- * defintions.
+ * definitions.
  */
 
 #ifndef __BTRFS_MKFS_COMMON_H__
@@ -45,7 +45,7 @@ enum btrfs_mkfs_block {
 struct btrfs_mkfs_config {
 	/* Label of the new filesystem */
 	const char *label;
-	/* Blck sizes */
+	/* Block sizes */
 	u32 nodesize;
 	u32 sectorsize;
 	u32 stripesize;
diff --git a/mkfs/main.c b/mkfs/main.c
index 9bfddf3..b76462a 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -1229,7 +1229,7 @@ raid_groups:
 	if (source_dir_set) {
 		ret = btrfs_mkfs_fill_dir(source_dir, root, verbose);
 		if (ret) {
-			error("error wihle filling filesystem: %d", ret);
+			error("error while filling filesystem: %d", ret);
 			goto out;
 		}
 		if (shrink_rootdir) {
diff --git a/mkfs/rootdir.c b/mkfs/rootdir.c
index 834aacc..c430bac 100644
--- a/mkfs/rootdir.c
+++ b/mkfs/rootdir.c
@@ -253,7 +253,7 @@ static int add_xattr_item(struct btrfs_trans_handle *trans,
 		if (ret < 0) {
 			if (errno == ENOTSUP)
 				return 0;
-			error("gettig a xattr value failed for %s attr %s: %s",
+			error("getting a xattr value failed for %s attr %s: %s",
 				file_name, cur_name, strerror(errno));
 			return ret;
 		}
@@ -467,7 +467,7 @@ static int traverse_directory(struct btrfs_trans_handle *trans,
 	dir_entry->dir_name = dir_name;
 	dir_entry->path = realpath(dir_name, NULL);
 	if (!dir_entry->path) {
-		error("realpath  failed for %s: %s", dir_name, strerror(errno));
+		error("realpath failed for %s: %s", dir_name, strerror(errno));
 		ret = -1;
 		goto fail_no_dir;
 	}
@@ -746,7 +746,7 @@ u64 btrfs_mkfs_size_dir(const char *dir_name, u32 sectorsize, u64 min_dev_size,
 
 
 	/*
-	 * Maximum metadata useage for every inode, which will be PATH_MAX
+	 * Maximum metadata usage for every inode, which will be PATH_MAX
 	 * for the following items:
 	 * 1) DIR_ITEM
 	 * 2) DIR_INDEX
@@ -791,7 +791,7 @@ u64 btrfs_mkfs_size_dir(const char *dir_name, u32 sectorsize, u64 min_dev_size,
 
 /*
  * Get the end position of the last device extent for given @devid;
- * @size_ret is exclsuive (means it should be aligned to sectorsize)
+ * @size_ret is exclusive (means it should be aligned to sectorsize)
  */
 static int get_device_extent_end(struct btrfs_fs_info *fs_info,
 				 u64 devid, u64 *size_ret)
@@ -852,7 +852,7 @@ static int set_device_size(struct btrfs_fs_info *fs_info,
 	int ret;
 
 	/*
-	 * Update in-meory device->total_bytes, so that at trans commit time,
+	 * Update in-memory device->total_bytes, so that at trans commit time,
 	 * super->dev_item will also get updated
 	 */
 	device->total_bytes = new_size;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] btrfs-progs: mkfs: Fix typos
  2018-06-02 20:30 [PATCH] btrfs-progs: mkfs: Fix typos Yevgeny Popovych
@ 2018-06-06 14:51 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2018-06-06 14:51 UTC (permalink / raw)
  To: Yevgeny Popovych; +Cc: linux-btrfs

On Sat, Jun 02, 2018 at 11:30:22PM +0300, Yevgeny Popovych wrote:
> Signed-off-by: Yevgeny Popovych <yevgenyp@pointgrab.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-06 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-02 20:30 [PATCH] btrfs-progs: mkfs: Fix typos Yevgeny Popovych
2018-06-06 14:51 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).