mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Fixes a typo in messages.
This commit is contained in:
parent
6178b1be83
commit
efd8a3c01a
3 changed files with 11 additions and 11 deletions
2
elem.c
2
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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
rehash.c
2
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
18
state.c
18
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue