From ae348ae083b6094505bda8632e00bd5a1d00bbad Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 24 Jul 2013 21:56:52 +0200 Subject: [PATCH] Disables mount point check in Windows. It's not clear how to check that. --- scan.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scan.c b/scan.c index 333b29f5..56502591 100644 --- a/scan.c +++ b/scan.c @@ -675,9 +675,14 @@ static int scan_dir(struct snapraid_scan* scan, struct snapraid_state* state, in } } else if (S_ISDIR(st.st_mode)) { if (filter_dir(&state->filterlist, disk->name, sub_next) == 0) { +#ifndef _WIN32 + /* in unix don't follow mount points in different devices */ + /* in windows, it's not clear how to check that */ if (st.st_dev != disk->device) { - fprintf(stderr, "warning: Ignoring mount point '%s'\n", path_next); - } else { + fprintf(stderr, "warning: Ignoring mount point '%s' because it appears to be in a different device\n", path_next); + } else +#endif + { char sub_dir[PATH_MAX]; /* recurse */