diff --git a/elem.c b/elem.c index 75834998..e3735763 100644 --- a/elem.c +++ b/elem.c @@ -583,7 +583,7 @@ int disk_is_empty(struct snapraid_disk* disk, block_off_t blockmax) /* if there is a deleted block, the disk is not empty */ return 0; default: - fprintf(stderr, "Internal incosistency for used block in disk '%s' without files\n", disk->name); + fprintf(stderr, "Internal inconsistency for used block in disk '%s' without files\n", disk->name); exit(EXIT_FAILURE); } } diff --git a/rehash.c b/rehash.c index c557b507..261d7e2b 100644 --- a/rehash.c +++ b/rehash.c @@ -66,7 +66,7 @@ void state_rehash(struct snapraid_state* state) } if (info_get_rehash(info)) { - fprintf(stderr, "Internal incosistency for a rehash already in progress\n"); + fprintf(stderr, "Internal inconsistency for a rehash already in progress\n"); exit(EXIT_FAILURE); } diff --git a/state.c b/state.c index 214ec75c..8e5d39a6 100644 --- a/state.c +++ b/state.c @@ -768,7 +768,7 @@ static void state_map(struct snapraid_state* state) } if (j==0) { - fprintf(stderr, "Internal incosistency for mapping '%s'\n", map->name); + fprintf(stderr, "Internal inconsistency for mapping '%s'\n", map->name); exit(EXIT_FAILURE); } @@ -1073,7 +1073,7 @@ static void state_read_text(struct snapraid_state* state, const char* path, STRE rehash = 1; if (state->prevhash == HASH_UNDEFINED) { - fprintf(stderr, "Internal incosistency for missing previous checksum in '%s' at line %u\n", path, line); + fprintf(stderr, "Internal inconsistency for missing previous checksum in '%s' at line %u\n", path, line); exit(EXIT_FAILURE); } } else { @@ -1632,7 +1632,7 @@ static void state_read_text(struct snapraid_state* state, const char* path, STRE /* check that the stored parity size matches the loaded state */ if (blockmax != parity_size(state)) { - fprintf(stderr, "Internal incosistency in parity size in '%s' at line %u\n", path, line); + fprintf(stderr, "Internal inconsistency in parity size in '%s' at line %u\n", path, line); exit(EXIT_FAILURE); } state->loaded_blockmax = blockmax; @@ -1740,7 +1740,7 @@ static void state_write_text(struct snapraid_state* state, STREAM* f) /* find the disk for this mapping */ disk = find_disk(state, map->name); if (!disk) { - fprintf(stderr, "Internal incosistency for unmapped disk '%s'\n", map->name); + fprintf(stderr, "Internal inconsistency for unmapped disk '%s'\n", map->name); exit(EXIT_FAILURE); } @@ -2299,7 +2299,7 @@ static void state_read_binary(struct snapraid_state* state, const char* path, ST if (rehash && state->prevhash == HASH_UNDEFINED) { decoding_error(path, f); - fprintf(stderr, "Internal incosistency for missing previous checksum!\n"); + fprintf(stderr, "Internal inconsistency for missing previous checksum!\n"); exit(EXIT_FAILURE); } @@ -2316,13 +2316,13 @@ static void state_read_binary(struct snapraid_state* state, const char* path, ST if (position_has_any_hash(state, v_pos)) { if (!info) { decoding_error(path, f); - fprintf(stderr, "Internal incosistency for missing info!\n"); + fprintf(stderr, "Internal inconsistency for missing info!\n"); exit(EXIT_FAILURE); } } else { if (info) { decoding_error(path, f); - fprintf(stderr, "Internal incosistency for unexpected info!\n"); + fprintf(stderr, "Internal inconsistency for unexpected info!\n"); exit(EXIT_FAILURE); } } @@ -2683,7 +2683,7 @@ static void state_read_binary(struct snapraid_state* state, const char* path, ST /* check that the stored parity size matches the loaded state */ if (blockmax != parity_size(state)) { - fprintf(stderr, "Internal incosistency in parity size in '%s' at offset %"PRIi64"\n", path, stell(f)); + fprintf(stderr, "Internal inconsistency in parity size in '%s' at offset %"PRIi64"\n", path, stell(f)); exit(EXIT_FAILURE); } state->loaded_blockmax = blockmax; @@ -2804,7 +2804,7 @@ static void state_write_binary(struct snapraid_state* state, STREAM* f) /* find the disk for this mapping */ disk = find_disk(state, map->name); if (!disk) { - fprintf(stderr, "Internal incosistency for unmapped disk '%s'\n", map->name); + fprintf(stderr, "Internal inconsistency for unmapped disk '%s'\n", map->name); exit(EXIT_FAILURE); }