X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmgc%2Fmgc_internal.h;h=8429a3276262c1bf42aea37c92e17f25e367357a;hp=2289972d1a82c36d673bc856fed19f4676d0b591;hb=e34950d29f1168a8a85f26e862eaec888b94350e;hpb=bab7c8998a6539c0d5e054f9a5fd4ecb2a6d9c56 diff --git a/lustre/mgc/mgc_internal.h b/lustre/mgc/mgc_internal.h index 2289972..8429a32 100644 --- a/lustre/mgc/mgc_internal.h +++ b/lustre/mgc/mgc_internal.h @@ -63,12 +63,20 @@ static inline bool cld_is_recover(struct config_llog_data *cld) static inline bool cld_is_nodemap(struct config_llog_data *cld) { +#ifdef HAVE_SERVER_SUPPORT return cld->cld_type == MGS_CFG_T_NODEMAP; +#else + return false; +#endif } static inline bool cld_is_barrier(struct config_llog_data *cld) { +#ifdef HAVE_SERVER_SUPPORT return cld->cld_type == MGS_CFG_T_BARRIER; +#else + return false; +#endif } #endif /* _MGC_INTERNAL_H */