Sorts files by inode before calling stat().

This commit is contained in:
Andrea Mazzoleni 2013-10-02 23:05:22 +02:00
parent ec172efb5c
commit 8ea5ed3230
8 changed files with 171 additions and 28 deletions

View file

@ -238,7 +238,7 @@ static void import_dir(struct snapraid_state* state, const char* dir)
pathslash(path, sizeof(path));
pathcat(path, sizeof(path), name);
#if HAVE_DIRENT_LSTAT
#if HAVE_STRUCT_DIRENT_D_STAT
/* convert dirent to lstat result */
dirent_lstat(dd, &st);
#else