From 7ee0c0f5ef7014860d07d9320ea18ac17fa59a4e Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sat, 30 Jun 2012 17:29:16 +0200 Subject: [PATCH] If no file is present, prints a message about nothing to do. --- TODO | 4 +--- sync.c | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 880cdf29..abd29270 100644 --- a/TODO +++ b/TODO @@ -3,7 +3,7 @@ SnapRAID TODO This is the list of TODO items for SnapRAID. -- v1.10 +- v1.11 * In the repair() function the euristic to detect if we recovered after the sync, can be extended to all the subsequent blocks, because we always proceeed in block order during a sync. @@ -29,8 +29,6 @@ the filtered data to check, and not the one needed to compute the parity. * In fix an existing symlink with the same name of a file to be recovered may stop the process making the create() operation to fail. -* Recheck the 2nd issue reported at: https://sourceforge.net/projects/snapraid/forums/forum/1677233/topic/4747897 - * If a directory exists with the same name of a parity/content file be more explicative on the error message. See: https://sourceforge.net/projects/snapraid/forums/forum/1677233/topic/4861034 diff --git a/sync.c b/sync.c index 9495223f..a3107e0f 100644 --- a/sync.c +++ b/sync.c @@ -410,6 +410,8 @@ int state_sync(struct snapraid_state* state, block_off_t blockstart, block_off_t ++unrecoverable_error; /* continue, as we are already exiting */ } + } else { + printf("Nothing to do\n"); } ret = parity_sync(parity_ptr);