mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
In dup don't list empty files.
This commit is contained in:
parent
fd5c8ca2e4
commit
813c105da9
2 changed files with 6 additions and 1 deletions
1
HISTORY
1
HISTORY
|
|
@ -11,6 +11,7 @@ SnapRAID HISTORY
|
|||
* In Windows applies filters in case insensitive way.
|
||||
* The Windows binaries are now built with gcc 4.7.2.
|
||||
* Reduced memory occupation for hardlinks and directories.
|
||||
* In 'dup' don't list file with 0 size.
|
||||
|
||||
3.0 2013/3
|
||||
==========
|
||||
|
|
|
|||
6
dup.c
6
dup.c
|
|
@ -110,7 +110,11 @@ void state_dup(struct snapraid_state* state)
|
|||
/* if no hash, skip it */
|
||||
if (!hash)
|
||||
continue;
|
||||
|
||||
|
||||
/* if empty, skip it */
|
||||
if (!file->size == 0)
|
||||
continue;
|
||||
|
||||
hash32 = hash_hash(hash);
|
||||
|
||||
struct snapraid_hash* dup = tommy_hashdyn_search(&hashset, hash_compare, hash->hash, hash32);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue