mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Removes references to old 'inv' blocks.
This commit is contained in:
parent
8f953903cc
commit
235a9cbbf1
1 changed files with 5 additions and 5 deletions
10
state.c
10
state.c
|
|
@ -932,8 +932,8 @@ void state_read(struct snapraid_state* state)
|
|||
sungetc(c, f);
|
||||
}
|
||||
|
||||
if (strcmp(tag, "blk") == 0 || strcmp(tag, "inv") == 0 || strcmp(tag, "new") == 0 || strcmp(tag, "chg") == 0) {
|
||||
/* "blk"/"inv"/"new"/"chg" command */
|
||||
if (strcmp(tag, "blk") == 0 || strcmp(tag, "new") == 0 || strcmp(tag, "chg") == 0) {
|
||||
/* "blk"/""new"/"chg" command */
|
||||
block_off_t v_pos;
|
||||
struct snapraid_block* block;
|
||||
snapraid_info info;
|
||||
|
|
@ -984,7 +984,7 @@ void state_read(struct snapraid_state* state)
|
|||
if (v_pos > blockmax)
|
||||
blockmax = v_pos + 1;
|
||||
|
||||
/* read the hash only for 'blk/inv/chg', and not for 'new' */
|
||||
/* read the hash only for 'blk/chg', and not for 'new' */
|
||||
if (tag[0] != 'n') {
|
||||
c = sgetc(f);
|
||||
if (c != ' ') {
|
||||
|
|
@ -1022,7 +1022,7 @@ void state_read(struct snapraid_state* state)
|
|||
/* the real block info will overwrite this */
|
||||
info = info_make(st.st_mtime, 0, 0);
|
||||
|
||||
/* insert the block in the block array */
|
||||
/* insert the info in the array */
|
||||
info_set(&state->infoarr, v_pos, info);
|
||||
|
||||
/* stat */
|
||||
|
|
@ -1090,7 +1090,7 @@ void state_read(struct snapraid_state* state)
|
|||
|
||||
info = info_make(t, bad, rehash);
|
||||
|
||||
/* insert the block in the block array */
|
||||
/* insert the info in the array */
|
||||
info_set(&state->infoarr, v_pos, info);
|
||||
} else if (strcmp(tag, "off") == 0) {
|
||||
/* "off" command */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue