search for: rsync_cv_have_falloc

Displaying 1 result from an estimated 1 matches for "rsync_cv_have_falloc".

2010 Feb 12
1
[RFC] add support for fallocate()
...gure.in +++ b/configure.in @@ -761,6 +761,15 @@ if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then AC_DEFINE(HAVE_GETTIMEOFDAY_TZ, 1, [Define to 1 if gettimeofday() takes a time-zone arg]) fi +AC_CACHE_CHECK([if fallocate with mode FALLOC_FL_KEEP_SIZE is available],rsync_cv_HAVE_FALLOCATE,[ +AC_TRY_LINK([#include <fcntl.h> +#include <linux/falloc.h>], +[exit(fallocate(0, FALLOC_FL_KEEP_SIZE, 0, 10));], +rsync_cv_HAVE_FALLOCATE=yes,rsync_cv_HAVE_FALLOCATE=no)]) +if test x"$rsync_cv_HAVE_FALLOCATE" != x"no"; then + AC_DEFINE(HAVE_FALLOCATE, 1, [De...