Whamcloud - gitweb
LU-9859 libcfs: don't call unshare_fs_struct()
[fs/lustre-release.git] / lustre / utils / lustreapi_internal.h
index c0662b4..94bc8ed 100644 (file)
@@ -146,7 +146,7 @@ static inline bool llapi_dir_hash_type_is_valid(int64_t hash)
 {
        int64_t _hash = hash & LMV_HASH_TYPE_MASK;
 
-       return _hash > LMV_HASH_TYPE_UNKNOWN && _hash <  LMV_HASH_TYPE_MAX;
+       return _hash >= LMV_HASH_TYPE_UNKNOWN && _hash <  LMV_HASH_TYPE_MAX;
 }
 
 /*
@@ -163,6 +163,8 @@ enum get_lmd_info_type {
        GET_LMD_STRIPE = 2,
 };
 
-int get_lmd_info_fd(char *path, int parentfd, int dirfd,
+int get_lmd_info_fd(const char *path, int parentfd, int dirfd,
                    void *lmd_buf, int lmd_len, enum get_lmd_info_type type);
+
+int lov_comp_md_size(struct lov_comp_md_v1 *lcm);
 #endif /* _LUSTREAPI_INTERNAL_H_ */