Restore file mtime after synced-only recovery writes

This commit is contained in:
Andrea Mazzoleni 2026-09-25 10:41:50 +02:00
parent 46dbfa9b08
commit 5b0a8e0c8e
2 changed files with 34 additions and 0 deletions

View file

@ -1280,6 +1280,20 @@ int snapraid_main(int argc, char* argv[])
/* LCOV_EXCL_STOP */
}
if (opt.syncedonly && blockstart_set) {
/* LCOV_EXCL_START */
log_fatal(EUSER, "You cannot use -S, --start with -e, --filter-error or -b, --filter-block-error\n");
exit(EXIT_FAILURE);
/* LCOV_EXCL_STOP */
}
if (opt.syncedonly && blockcount_set) {
/* LCOV_EXCL_START */
log_fatal(EUSER, "You cannot use -B, --count with -e, --filter-error or -b, --filter-block-error\n");
exit(EXIT_FAILURE);
/* LCOV_EXCL_STOP */
}
if (opt.prehash && opt.force_nocopy) {
/* LCOV_EXCL_START */
log_fatal(EUSER, "You cannot use the -h, --pre-hash and -N, --force-nocopy options simultaneously\n");