mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 21:30:14 -05:00
In move prints the old name before deallocating it.
This commit is contained in:
parent
b21b3076f6
commit
2eec5eb675
1 changed files with 4 additions and 4 deletions
8
scan.c
8
scan.c
|
|
@ -187,10 +187,6 @@ static void scan_file(struct snapraid_scan* scan, struct snapraid_state* state,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* remove it */
|
|
||||||
++scan->count_change;
|
|
||||||
scan_file_remove(state, disk, file);
|
|
||||||
|
|
||||||
if (state->gui) {
|
if (state->gui) {
|
||||||
fprintf(stderr, "scan:change:%s:%s\n", disk->name, file->sub);
|
fprintf(stderr, "scan:change:%s:%s\n", disk->name, file->sub);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
|
|
@ -199,6 +195,10 @@ static void scan_file(struct snapraid_scan* scan, struct snapraid_state* state,
|
||||||
printf("Change '%s/%s'\n", disk->name, file->sub);
|
printf("Change '%s/%s'\n", disk->name, file->sub);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* remove it */
|
||||||
|
++scan->count_change;
|
||||||
|
scan_file_remove(state, disk, file);
|
||||||
|
|
||||||
/* and continue to reinsert it */
|
/* and continue to reinsert it */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue