mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
In the messages uses WARNING in uppercase.
This commit is contained in:
parent
e800b190a3
commit
4fb96c0dec
4 changed files with 8 additions and 8 deletions
2
pool.c
2
pool.c
|
|
@ -146,7 +146,7 @@ static void make_link(const char* pool_dir, struct snapraid_disk* disk, const ch
|
|||
ret = symlink(linkto, path);
|
||||
if (ret != 0) {
|
||||
if (errno == EEXIST) {
|
||||
fprintf(stderr, "warning: Duplicate pooling for '%s'\n", path);
|
||||
fprintf(stderr, "WARNING! Duplicate pooling for '%s'\n", path);
|
||||
#ifdef _WIN32
|
||||
} else if (errno == EPERM) {
|
||||
fprintf(stderr, "You must run as Adminstrator to be able to create symlinks.\n");
|
||||
|
|
|
|||
4
scan.c
4
scan.c
|
|
@ -740,7 +740,7 @@ static int scan_dir(struct snapraid_scan* scan, struct snapraid_state* state, in
|
|||
/* in Unix don't follow mount points in different devices */
|
||||
/* in Windows we are already skipping them reporting them as special files */
|
||||
if ((uint64_t)st.st_dev != disk->device) {
|
||||
fprintf(stderr, "warning: Ignoring mount point '%s' because it appears to be in a different device\n", path_next);
|
||||
fprintf(stderr, "WARNING! Ignoring mount point '%s' because it appears to be in a different device\n", path_next);
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
|
|
@ -764,7 +764,7 @@ static int scan_dir(struct snapraid_scan* scan, struct snapraid_state* state, in
|
|||
}
|
||||
} else {
|
||||
if (filter_path(&state->filterlist, disk->name, sub_next) == 0) {
|
||||
fprintf(stderr, "warning: Ignoring special '%s' file '%s'\n", stat_desc(&st), path_next);
|
||||
fprintf(stderr, "WARNING! Ignoring special '%s' file '%s'\n", stat_desc(&st), path_next);
|
||||
} else {
|
||||
if (state->opt.verbose) {
|
||||
printf("Excluding special '%s' file '%s'\n", stat_desc(&st), path_next);
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ int main(int argc, char* argv[])
|
|||
opt.force_device = 1;
|
||||
break;
|
||||
case 'N' :
|
||||
fprintf(stderr, "warning: Option --find-by-name, -N is deprecated and does nothing!\n");
|
||||
fprintf(stderr, "WARNING! Option --find-by-name, -N is deprecated and does nothing!\n");
|
||||
break;
|
||||
case 'a' :
|
||||
audit_only = 1;
|
||||
|
|
|
|||
8
state.c
8
state.c
|
|
@ -3127,7 +3127,7 @@ void state_read(struct snapraid_state* state)
|
|||
|
||||
/* otherwise continue */
|
||||
if (node->next) {
|
||||
fprintf(stderr, "warning: Content file '%s' not found, trying with another copy...\n", path);
|
||||
fprintf(stderr, "WARNING! Content file '%s' not found, trying with another copy...\n", path);
|
||||
|
||||
/* ensure to rewrite all the content files */
|
||||
state->need_write = 1;
|
||||
|
|
@ -3143,7 +3143,7 @@ void state_read(struct snapraid_state* state)
|
|||
/* create the initial mapping */
|
||||
state_map(state);
|
||||
|
||||
fprintf(stderr, "warning: No content file found. Assuming empty.\n");
|
||||
fprintf(stderr, "No content file found. Assuming empty.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -3174,8 +3174,8 @@ void state_read(struct snapraid_state* state)
|
|||
} else {
|
||||
/* if the size is different */
|
||||
if (other_st.st_size != st.st_size) {
|
||||
fprintf(stderr, "warning: Content files '%s' and '%s' have a different size!\n", path, other_path);
|
||||
fprintf(stderr, "warning: Likely one of the two is broken!\n");
|
||||
fprintf(stderr, "WARNING! Content files '%s' and '%s' have a different size!\n", path, other_path);
|
||||
fprintf(stderr, "Likely one of the two is broken!\n");
|
||||
|
||||
/* ensure to rewrite all the content files */
|
||||
state->need_write = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue