Change "diff" to return an error if a "sync" is required

This commit is contained in:
Andrea Mazzoleni 2015-03-02 23:01:15 +01:00
parent 7e06c8eefa
commit 83d967e2c0
11 changed files with 104 additions and 16 deletions

View file

@ -191,10 +191,15 @@ void state_read(struct snapraid_state* state);
*/
void state_write(struct snapraid_state* state);
/**
* Diff all the disks.
*/
int state_diff(struct snapraid_state* state);
/**
* Scans all the disks to update the state.
*/
void state_scan(struct snapraid_state* state, int is_diff);
void state_scan(struct snapraid_state* state);
/**
* Sets the nanosecond timestamp of all files that have a zero value.