Displaying 1 result from an estimated 1 matches for "0fa8782".
Did you mean:
08a8784
2010 Feb 12
1
[RFC] add support for fallocate()
...uot; != x"no"; then
+ AC_DEFINE(HAVE_FALLOCATE, 1, [Define to 1 if fallocate() and FALLOC_FL_KEEP_SIZE are available])
+fi
+
AC_CACHE_CHECK([for C99 vsnprintf],rsync_cv_HAVE_C99_VSNPRINTF,[
AC_TRY_RUN([
#include <sys/types.h>
diff --git a/receiver.c b/receiver.c
index 6688dda..0fa8782 100644
--- a/receiver.c
+++ b/receiver.c
@@ -774,7 +774,14 @@ int recv_files(int f_in, int f_out, char *local_name)
send_msg_int(MSG_NO_SEND, ndx);
continue;
}
-
+#ifdef HAVE_FALLOCATE
+ if (!sparse_files)
+ /*
+ * If this fails then either the filesystem does not
+ * support t...