Detects the case of physical offsets not reported beucase the file doesn't have one.

This commit is contained in:
Andrea Mazzoleni 2013-09-28 15:33:56 +02:00
parent cffbba8aee
commit 6deecb26de
6 changed files with 36 additions and 10 deletions

2
scan.c
View file

@ -974,7 +974,7 @@ void state_scan(struct snapraid_state* state, int output)
/* if the file is not empty, count duplicate physical offsets */
if (state->opt.force_order == SORT_PHYSICAL && file->size != 0) {
if (phy_count > 0 && file->physical == phy_last)
if (phy_count > 0 && file->physical == phy_last && phy_last != FILEPHY_WITHOUT_OFFSET)
++phy_dup;
phy_last = file->physical;
++phy_count;