From c8edf2f002167e73c964ee94063004cc49fefdb1 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 28 Dec 2014 18:28:44 +0100 Subject: [PATCH] In scrub don't check the inode to verify if the file is synced. On filesystem without persistent inode, they can be different from one run to another. In sync they are automatically adjusted, but not in scrub. --- cmdline/scrub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdline/scrub.c b/cmdline/scrub.c index b6e4b0ec..7f3480ba 100644 --- a/cmdline/scrub.c +++ b/cmdline/scrub.c @@ -289,7 +289,7 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par if (handle[j].st.st_size != block_file_get(block)->size || handle[j].st.st_mtime != block_file_get(block)->mtime_sec || STAT_NSEC(&handle[j].st) != block_file_get(block)->mtime_nsec - || handle[j].st.st_ino != block_file_get(block)->inode + /* don't check the inode to support filesystem without persistent inodes */ ) { /* report that the block and the file are not synced */ block_is_unsynced = 1;