diff --git a/Makefile.am b/Makefile.am index 3b405bc4..3dcbea74 100644 --- a/Makefile.am +++ b/Makefile.am @@ -224,7 +224,7 @@ endif echo --- Check the --gen-conf command $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --gen-conf bench/content echo --- Filter - $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) -d disk1 check + $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS_VERBOSE) -c $(CONF) -d disk1 check $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS_VERBOSE) -c $(CONF) -f "*a" -f "a/" -f "/b/a*" check echo --- Delete some files and sync rm bench/disk4/a/9* @@ -489,8 +489,8 @@ endif rm bench/disk4/a/6* $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) -t 10 sync --test-force-content-text cp bench/content bench/content.txt - $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) test-rewrite - $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) --test-force-content-text test-rewrite + $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS_VERBOSE) -c $(CONF) test-rewrite + $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS_VERBOSE) -c $(CONF) --test-force-content-text test-rewrite cmp bench/content bench/content.txt $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) check -l test.log $(TESTENV) ./mktest$(EXEEXT) generate 4 6 $(CHECKCOUNT) $(CHECKSIZE) diff --git a/TODO b/TODO index 3844ba5b..dbb6c571 100644 --- a/TODO +++ b/TODO @@ -30,7 +30,7 @@ If they do not match, stop the processing. This can be done to avoid to use not synchronized parity and content files, resulting in wrong data. But if the sync process is killed we need a way to resyncronize them. -Or maybe we should allow parity never than content, but not viceversa. +Or maybe we should allow parity newer than content, but not viceversa. * Add an option for dup to list only duplicates with different name. This supposing that if a file has the same name, it's intentionally duplicated. @@ -104,6 +104,7 @@ File with the same name will get an extra extension like ".1", ".2". * Use Async IO for Linux (libaio). See thread: https://sourceforge.net/p/snapraid/discussion/1677233/thread/a300a10b/ +Docs at: http://www.fsl.cs.sunysb.edu/~vass/linux-aio.txt * Create a filesystem snapshot at every sync, and use it in all the other commands automatically. diff --git a/cmdline/state.c b/cmdline/state.c index 78f57372..9a0fbecd 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -2150,11 +2150,13 @@ static void state_read_text(struct snapraid_state* state, const char* path, STRE /* if no info is present */ if (!info) { + /* LCOV_EXCL_START */ /* set a fake info block */ info = info_make(save_time, 0, 0); /* insert the info in the array */ info_set(&state->infoarr, b, info); + /* LCOV_EXCL_STOP */ } } }