btrfs-progs: fix typos in user-visible strings

* error messages
* help strings

Generated by https://github.com/jsoref/spelling

Issue: #154
Author: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: David Sterba <dsterba@suse.com>
master
Josh Soref 2018-11-26 18:08:21 +01:00 committed by David Sterba
parent b1d39a42a4
commit 2cd4a76ea9
7 changed files with 9 additions and 9 deletions

View File

@ -34,7 +34,7 @@
static void print_usage(void) static void print_usage(void)
{ {
printf("usage: btrfs-select-super -s number dev\n"); printf("usage: btrfs-select-super -s number dev\n");
printf("\t-s super copy of superbloc to overwrite the primary one (values: 1, 2)\n"); printf("\t-s super copy of superblock to overwrite the primary one (values: 1, 2)\n");
exit(1); exit(1);
} }

View File

@ -6871,7 +6871,7 @@ static int verify_backrefs(struct btrfs_fs_info *info, struct btrfs_path *path,
goto out; goto out;
fprintf(stderr, fprintf(stderr,
"attempting to repair backref discrepency for bytenr %llu\n", "attempting to repair backref discrepancy for bytenr %llu\n",
rec->start); rec->start);
/* /*
@ -7851,7 +7851,7 @@ static int check_chunk_refs(struct chunk_record *chunk_rec,
dev_extent_rec->length != length) { dev_extent_rec->length != length) {
if (!silent) if (!silent)
fprintf(stderr, fprintf(stderr,
"Chunk[%llu, %u, %llu] stripe[%llu, %llu] dismatch dev extent[%llu, %llu, %llu]\n", "Chunk[%llu, %u, %llu] stripe[%llu, %llu] mismatch dev extent[%llu, %llu, %llu]\n",
chunk_rec->objectid, chunk_rec->objectid,
chunk_rec->type, chunk_rec->type,
chunk_rec->offset, chunk_rec->offset,
@ -9484,7 +9484,7 @@ const char * const cmd_check_usage[] = {
"trees' consistency and item connectivity. In the repair mode try to", "trees' consistency and item connectivity. In the repair mode try to",
"fix the problems found. ", "fix the problems found. ",
"WARNING: the repair mode is considered dangerous and should not be used", "WARNING: the repair mode is considered dangerous and should not be used",
" without prior analysis of problems found on the flesystem." " without prior analysis of problems found on the filesystem."
"", "",
"Options:", "Options:",
" starting point selection:", " starting point selection:",

View File

@ -85,7 +85,7 @@ fi
AC_ARG_ENABLE([documentation], AC_ARG_ENABLE([documentation],
AS_HELP_STRING([--disable-documentation], [do not build domumentation]), AS_HELP_STRING([--disable-documentation], [do not build documentation]),
[], [enable_documentation=yes] [], [enable_documentation=yes]
) )
AS_IF([test "x$enable_documentation" = xyes], [DISABLE_DOCUMENTATION=0], [DISABLE_DOCUMENTATION=1]) AS_IF([test "x$enable_documentation" = xyes], [DISABLE_DOCUMENTATION=0], [DISABLE_DOCUMENTATION=1])

View File

@ -98,7 +98,7 @@ static int setup_temp_super(int fd, struct btrfs_mkfs_config *cfg,
if (*cfg->fs_uuid) { if (*cfg->fs_uuid) {
if (uuid_parse(cfg->fs_uuid, super->fsid) != 0) { if (uuid_parse(cfg->fs_uuid, super->fsid) != 0) {
error("cound not parse UUID: %s", cfg->fs_uuid); error("could not parse UUID: %s", cfg->fs_uuid);
ret = -EINVAL; ret = -EINVAL;
goto out; goto out;
} }

View File

@ -2496,7 +2496,7 @@ int main(int argc, char *argv[])
} else { } else {
if (walk_trees || sanitize != SANITIZE_NONE || compress_level) { if (walk_trees || sanitize != SANITIZE_NONE || compress_level) {
error( error(
"useing -w, -s, -c options for restore makes no sense"); "using -w, -s, -c options for restore makes no sense");
usage_error++; usage_error++;
} }
if (multi_devices && dev_cnt < 2) { if (multi_devices && dev_cnt < 2) {

View File

@ -1339,7 +1339,7 @@ int report_qgroups(int all)
if (counts.qgroup_inconsist && !counts.rescan_running && if (counts.qgroup_inconsist && !counts.rescan_running &&
counts.rescan_running == 0) { counts.rescan_running == 0) {
printf( printf(
"Rescan hasn't been initialzied, a difference in qgroup accounting is expected\n"); "Rescan hasn't been initialized, a difference in qgroup accounting is expected\n");
skip_err = true; skip_err = true;
} }
if (counts.qgroup_inconsist && !counts.rescan_running) if (counts.qgroup_inconsist && !counts.rescan_running)

View File

@ -32,7 +32,7 @@ struct btrfs_trans_handle* btrfs_start_transaction(struct btrfs_root *root,
if (!h) if (!h)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
if (root->commit_root) { if (root->commit_root) {
error("commit_root aleady set when starting transaction"); error("commit_root already set when starting transaction");
kfree(h); kfree(h);
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
} }