btrfs-progs: mkfs: Fix typos in strings and comments
Signed-off-by: Yevgeny Popovych <yevgenyp@pointgrab.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
db84e5908d
commit
9ff39d48aa
|
@ -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 +
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue