Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-11376 lmv: new foreign LMV format
[fs/lustre-release.git]
/
lustre
/
include
/
lustre_lmv.h
diff --git
a/lustre/include/lustre_lmv.h
b/lustre/include/lustre_lmv.h
index
d5fb751
..
3410b92
100644
(file)
--- a/
lustre/include/lustre_lmv.h
+++ b/
lustre/include/lustre_lmv.h
@@
-191,4
+191,11
@@
static inline bool lmv_is_known_hash_type(__u32 type)
(type & LMV_HASH_TYPE_MASK) == LMV_HASH_TYPE_ALL_CHARS;
}
+static inline bool lmv_magic_supported(__u32 lum_magic)
+{
+ return lum_magic == LMV_USER_MAGIC ||
+ lum_magic == LMV_USER_MAGIC_SPECIFIC ||
+ lum_magic == LMV_MAGIC_FOREIGN;
+}
+
#endif