Fixes the Windows regression test.

This commit is contained in:
Andrea Mazzoleni 2014-07-11 23:33:19 +02:00
parent 71ff0620ce
commit ea4eafb60d
2 changed files with 5 additions and 4 deletions

View file

@ -1031,13 +1031,14 @@ static int scan_dir(struct snapraid_scan* scan, int output, const char* dir, con
/* LCOV_EXCL_STOP */
}
#if HAVE_STRUCT_DIRENT_D_INO
if (state->opt.force_order == SORT_ALPHA) {
/* if requested sort alphabetically */
/* this is mainly done for testing to ensure to always */
/* process in the same way in different platforms */
tommy_list_sort(&list, dd_name_compare);
} else if (!disk->has_volatile_inodes) {
}
#if HAVE_STRUCT_DIRENT_D_INO
else if (!disk->has_volatile_inodes) {
/* if inodes are persistent */
/* sort the list of dir entries by inodes */
tommy_list_sort(&list, dd_ino_compare);