Adds and new -A option to only check hashes.

This commit is contained in:
Andrea Mazzoleni 2012-10-07 23:18:10 +02:00
parent 06637e9264
commit 1078bd4500
9 changed files with 242 additions and 161 deletions

View file

@ -4,6 +4,7 @@ Name{number}
Synopsis
:snapraid [-c, --conf CONFIG] [-f, --filter PATTERN] [-H, --filter-nohidden]
: [-N, --find-by-name]
: [-A, --audit-only]
: [-Z, --force-zero] [-E, --force-empty]
: [-s, --start BLKSTART] [-t, --count BLKCOUNT]
: [-v, --verbose]
@ -206,6 +207,8 @@ Commands
Checks all the files and the redundancy data.
All the files are hashed and compared with the snapshot saved
in the previous "sync" command.
If you use the -A, --audit-only option, only the file
data is checked, and the redundandy data is ignored.
Files are identified by path, and checked by content.
Nothing is modified.
@ -235,7 +238,8 @@ Options
-f, --filter PATTERN
Filters the files to operate on with the "check" and "fix"
commands. This option is ignored with the "sync" command.
commands.
This option cannot be used with the "sync" command.
See the PATTERN section for more details in the
pattern specifications.
This option can be used many times.
@ -246,6 +250,11 @@ Options
the ones starting with '.'. In Windows they are the ones with the
hidden attribute.
-A, --audit-only
When checking, only verify the hash of the files, without
doing any kind of check on the redundancy data.
This option can be used only with the "check" command.
-N, --find-by-name
When syncing finds the files by path instead than by inode.
This option allows a fast sync command after having replaced