Whamcloud - gitweb
LU-8837 lustre: make uapi...lustre_disk.h unnecessary on client
[fs/lustre-release.git] / lustre / mgc / mgc_internal.h
index 2289972..8429a32 100644 (file)
@@ -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)
 {
 
 static inline bool cld_is_nodemap(struct config_llog_data *cld)
 {
+#ifdef HAVE_SERVER_SUPPORT
        return cld->cld_type == MGS_CFG_T_NODEMAP;
        return cld->cld_type == MGS_CFG_T_NODEMAP;
+#else
+       return false;
+#endif
 }
 
 static inline bool cld_is_barrier(struct config_llog_data *cld)
 {
 }
 
 static inline bool cld_is_barrier(struct config_llog_data *cld)
 {
+#ifdef HAVE_SERVER_SUPPORT
        return cld->cld_type == MGS_CFG_T_BARRIER;
        return cld->cld_type == MGS_CFG_T_BARRIER;
+#else
+       return false;
+#endif
 }
 
 #endif  /* _MGC_INTERNAL_H */
 }
 
 #endif  /* _MGC_INTERNAL_H */