mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Improve snapshot fallback warning messages to inform users of reduced recovery capability if files changed since the last sync
This commit is contained in:
parent
31fc380609
commit
abcdd688dd
2 changed files with 9 additions and 5 deletions
|
|
@ -434,7 +434,7 @@ static int windows_rebuild_link(const struct fssnapshot_struct* fss, const char*
|
|||
|
||||
/* if no device path, assume snapshot absent */
|
||||
if (device_path[0] == 0) {
|
||||
log_error(0, "WARNING! Snapshot '%s' DeviceObject lost or removed externally.\n", name);
|
||||
log_error(ENOENT, "WARNING! Snapshot '%s' DeviceObject lost or removed externally.\n", name);
|
||||
/* remove stale links */
|
||||
windows_rmdir(guid_link);
|
||||
windows_rmdir(link_path);
|
||||
|
|
|
|||
|
|
@ -6187,7 +6187,8 @@ void state_snapshot_read(struct snapraid_state* state)
|
|||
if (res > 0)
|
||||
continue;
|
||||
if (res < 0) {
|
||||
log_error(0, "WARNING! Disk %s snapshot mount failed, falling back to live filesystem...\n", disk->name);
|
||||
log_error(EUSER, "WARNING! Disk %s snapshot mount failed, falling back to live filesystem.\n", disk->name);
|
||||
log_error(EUSER, "Recovery capability may be reduced if files have changed since the last successful sync.\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -6200,7 +6201,8 @@ void state_snapshot_read(struct snapraid_state* state)
|
|||
msg_progress("Using disk %s stable snapshot...\n", disk->name);
|
||||
} else {
|
||||
/* fallback to standard mount point */
|
||||
log_error(0, "WARNING! Disk %s snapshot missing, falling back to live filesystem...\n", disk->name);
|
||||
log_error(EUSER, "WARNING! Disk %s snapshot missing, falling back to live filesystem.\n", disk->name);
|
||||
log_error(EUSER, "Recovery capability may be reduced if files have changed since the last successful sync.\n");
|
||||
msg_progress("Using disk %s live filesystem...\n", disk->name);
|
||||
}
|
||||
}
|
||||
|
|
@ -6226,7 +6228,8 @@ void state_snapshot_write(struct snapraid_state* state, tommy_list* filterlist_d
|
|||
if (res > 0)
|
||||
continue;
|
||||
if (res < 0) {
|
||||
log_error(0, "WARNING! Disk %s snapshot mount failed, falling back to live filesystem...\n", disk->name);
|
||||
log_error(EUSER, "WARNING! Disk %s snapshot mount failed, falling back to live filesystem.\n", disk->name);
|
||||
log_error(EUSER, "Recovery capability may be reduced if files have changed since the last successful sync.\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -6261,7 +6264,8 @@ void state_snapshot_write(struct snapraid_state* state, tommy_list* filterlist_d
|
|||
msg_progress("Using disk %s stable snapshot...\n", disk->name);
|
||||
} else {
|
||||
/* fallback to standard mount point */
|
||||
log_error(0, "WARNING! Disk %s snapshot missing, falling back to live filesystem...\n", disk->name);
|
||||
log_error(EUSER, "WARNING! Disk %s snapshot missing, falling back to live filesystem.\n", disk->name);
|
||||
log_error(EUSER, "Recovery capability may be reduced if files have changed since the last successful sync.\n");
|
||||
msg_progress("Using disk %s live filesystem...\n", disk->name);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue