diff --git a/configure.ac b/configure.ac index d9f302d..e1b1932 100755 --- a/configure.ac +++ b/configure.ac @@ -84,7 +84,7 @@ AC_ARG_WITH([lustre], [support configurable Lustre striping values @<:@default=check@:>@])], [], [with_lustre=check]) AS_IF([test "x$with_lustre" = xyes ], [ - AC_CHECK_HEADERS([linux/lustre/lustre_user.h lustre/lustre_user.h], break, [ + AC_CHECK_HEADERS([linux/lustre/lustre_user.h lustre/lustre_user.h], [AC_DEFINE([HAVE_LUSTRE_USER], [], [Lustre user API available in some shape or form])], [ if test "x$with_lustre" != xcheck -a \ "x$ac_cv_header_linux_lustre_lustre_user_h" = "xno" -a \ "x$ac_cv_header_lustre_lustre_user_h" = "xno" ; then diff --git a/src/aiori-HDFS.c b/src/aiori-HDFS.c index 2d4dcb1..118de15 100755 --- a/src/aiori-HDFS.c +++ b/src/aiori-HDFS.c @@ -77,7 +77,7 @@ #include #include /* -#ifdef HAVE_LUSTRE_LUSTRE_USER_H +#ifdef HAVE_LUSTRE_USER #include #endif */ diff --git a/src/aiori-POSIX.c b/src/aiori-POSIX.c index 283a6ec..615cd9f 100755 --- a/src/aiori-POSIX.c +++ b/src/aiori-POSIX.c @@ -34,7 +34,7 @@ #ifdef HAVE_LINUX_LUSTRE_LUSTRE_USER_H # include -#elif defined(HAVE_LUSTRE_LUSTRE_USER_H) +#elif defined(HAVE_LUSTRE_USER) # include #endif #ifdef HAVE_GPFS_H @@ -123,7 +123,7 @@ option_help * POSIX_options(aiori_mod_opt_t ** init_backend_options, aiori_mod_o {0, "posix.gpfs.releasetoken", "", OPTION_OPTIONAL_ARGUMENT, 'd', & o->gpfs_release_token}, #endif -#ifdef HAVE_LUSTRE_LUSTRE_USER_H +#ifdef HAVE_LUSTRE_USER {0, "posix.lustre.stripecount", "", OPTION_OPTIONAL_ARGUMENT, 'd', & o->lustre_stripe_count}, {0, "posix.lustre.stripesize", "", OPTION_OPTIONAL_ARGUMENT, 'd', & o->lustre_stripe_size}, {0, "posix.lustre.startost", "", OPTION_OPTIONAL_ARGUMENT, 'd', & o->lustre_start_ost}, @@ -387,7 +387,7 @@ aiori_fd_t *POSIX_Create(char *testFileName, int flags, aiori_mod_opt_t * param) if(hints->dryRun) return (aiori_fd_t*) 0; -#ifdef HAVE_LUSTRE_LUSTRE_USER_H +#ifdef HAVE_LUSTRE_USER /* Add a #define for FASYNC if not available, as it forms part of * the Lustre O_LOV_DELAY_CREATE definition. */ #ifndef FASYNC @@ -439,7 +439,7 @@ aiori_fd_t *POSIX_Create(char *testFileName, int flags, aiori_mod_opt_t * param) "barrier error"); } } else { -#endif /* HAVE_LUSTRE_LUSTRE_USER_H */ +#endif /* HAVE_LUSTRE_USER */ fd_oflag |= O_CREAT | O_RDWR; @@ -463,7 +463,7 @@ aiori_fd_t *POSIX_Create(char *testFileName, int flags, aiori_mod_opt_t * param) ERRF("open64(\"%s\", %d, %#o) failed", testFileName, fd_oflag, mode); -#ifdef HAVE_LUSTRE_LUSTRE_USER_H +#ifdef HAVE_LUSTRE_USER } if (o->lustre_ignore_locks) { @@ -471,7 +471,7 @@ aiori_fd_t *POSIX_Create(char *testFileName, int flags, aiori_mod_opt_t * param) if (ioctl(*fd, LL_IOC_SETFLAGS, &lustre_ioctl_flags) == -1) ERRF("ioctl(%d, LL_IOC_SETFLAGS, ...) failed", *fd); } -#endif /* HAVE_LUSTRE_LUSTRE_USER_H */ +#endif /* HAVE_LUSTRE_USER */ #ifdef HAVE_GPFS_FCNTL_H /* in the single shared file case, immediately release all locks, with @@ -523,7 +523,7 @@ aiori_fd_t *POSIX_Open(char *testFileName, int flags, aiori_mod_opt_t * param) if (*fd < 0) ERRF("open64(\"%s\", %d) failed", testFileName, fd_oflag); -#ifdef HAVE_LUSTRE_LUSTRE_USER_H +#ifdef HAVE_LUSTRE_USER if (o->lustre_ignore_locks) { int lustre_ioctl_flags = LL_FILE_IGNORE_LOCK; if (verbose >= VERBOSE_1) { @@ -533,7 +533,7 @@ aiori_fd_t *POSIX_Open(char *testFileName, int flags, aiori_mod_opt_t * param) if (ioctl(*fd, LL_IOC_SETFLAGS, &lustre_ioctl_flags) == -1) ERRF("ioctl(%d, LL_IOC_SETFLAGS, ...) failed", *fd); } -#endif /* HAVE_LUSTRE_LUSTRE_USER_H */ +#endif /* HAVE_LUSTRE_USER */ #ifdef HAVE_GPFS_FCNTL_H if(o->gpfs_release_token) { diff --git a/src/aiori-S3.c b/src/aiori-S3.c index a060646..3999739 100755 --- a/src/aiori-S3.c +++ b/src/aiori-S3.c @@ -92,7 +92,7 @@ #include #include /* -#ifdef HAVE_LUSTRE_LUSTRE_USER_H +#ifdef HAVE_LUSTRE_USER #include #endif */