From: ericm Date: Sat, 11 Oct 2003 07:28:29 +0000 (+0000) Subject: liblustre compiling fixes: X-Git-Tag: v1_7_110~2^11~70 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=7a1d3a3c2b3809738e6e28f5ba33ca3c04bd484c;p=fs%2Flustre-release.git liblustre compiling fixes: - define llog related to null in user space - various fixes in user space --- diff --git a/lustre/ptlrpc/recov_thread.c b/lustre/ptlrpc/recov_thread.c index 7fb88f2..a9fc0d8 100644 --- a/lustre/ptlrpc/recov_thread.c +++ b/lustre/ptlrpc/recov_thread.c @@ -32,12 +32,14 @@ # define EXPORT_SYMTAB #endif -#ifndef __KERNEL__ +#ifdef __KERNEL__ +#include +#else # include # include #endif + #include -#include #include #include #include @@ -48,6 +50,8 @@ #include #include "ptlrpc_internal.h" +#ifdef __KERNEL__ + static struct llog_commit_master lustre_lcm; static struct llog_commit_master *lcm = &lustre_lcm; @@ -412,3 +416,13 @@ int llog_cleanup_commit_master(int force) atomic_read(&lcm->lcm_thread_total) == 0); return 0; } + +#else /* !__KERNEL__ */ + +int llog_obd_repl_cancel(struct obd_device *obd, + struct lov_stripe_md *lsm, int count, + struct llog_cookie *cookies, int flags) +{ + return 0; +} +#endif