From: Sage Weil Date: Fri, 27 Dec 2013 05:33:39 +0000 (-0800) Subject: Merge pull request #837 from ceph/port/fallocate X-Git-Tag: v0.75~30 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b8fb366eab2c7fff27732087f250b0eb1ab7dd79;p=ceph.git Merge pull request #837 from ceph/port/fallocate FileJournal: zero-fill in-lieu of posix_fallocate We may want to change that to a #warning later... Reviewed-by: Sage Weil --- b8fb366eab2c7fff27732087f250b0eb1ab7dd79 diff --cc configure.ac index c76bd12d45dd,ccb48103a72e..3520acf12132 --- a/configure.ac +++ b/configure.ac @@@ -615,33 -539,9 +615,34 @@@ AC_CHECK_FUNC([fallocate] [AC_DEFINE([CEPH_HAVE_FALLOCATE], [], [fallocate(2) is supported])], []) +# +# Test for time-related `struct stat` members. +# + +AC_CHECK_MEMBER([struct stat.st_mtim.tv_nsec], + [AC_DEFINE(HAVE_STAT_ST_MTIM_TV_NSEC, 1, + [Define if you have struct stat.st_mtim.tv_nsec])]) + +AC_CHECK_MEMBER([struct stat.st_mtimespec.tv_nsec], + [AC_DEFINE(HAVE_STAT_ST_MTIMESPEC_TV_NSEC, 1, + [Define if you have struct stat.st_mtimespec.tv_nsec])]) + +# splice/tee +AC_CHECK_FUNC([splice], + [AC_DEFINE([CEPH_HAVE_SPLICE], [], [splice(2) is supported])], + []) + + +AC_CHECK_HEADERS([arpa/nameser_compat.h]) + +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include +F_SETPIPE_SZ]])], + [AC_DEFINE([CEPH_HAVE_SETPIPE_SZ], [], [F_SETPIPE_SZ is supported])], + [AC_MSG_NOTICE(["F_SETPIPE_SZ not found, zero-copy may be less efficent"])]) + AC_CHECK_HEADERS([arpa/nameser_compat.h]) + AC_CHECK_FUNCS([posix_fallocate]) AC_CHECK_HEADERS([sys/prctl.h]) AC_CHECK_FUNCS([prctl]) AC_CHECK_FUNCS([pipe2])