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-11025 dne: introduce new directory hash type: "crush"
[fs/lustre-release.git]
/
lustre
/
obdecho
/
echo_client.c
diff --git
a/lustre/obdecho/echo_client.c
b/lustre/obdecho/echo_client.c
index
1d5f581
..
4f6bcd8
100644
(file)
--- a/
lustre/obdecho/echo_client.c
+++ b/
lustre/obdecho/echo_client.c
@@
-1684,7
+1684,7
@@
echo_md_dir_stripe_choose(const struct lu_env *env, struct echo_device *ed,
}
lmv = (struct lmv_mds_md_v1 *)ma->ma_lmm;
- if (
le32_to_cpu(lmv->lmv_magic) != LMV_MAGIC_V1
) {
+ if (
!lmv_is_sane(lmv)
) {
rc = -EINVAL;
CERROR("Invalid mds md magic %x "DFID": rc = %d\n",
le32_to_cpu(lmv->lmv_magic), PFID(lu_object_fid(obj)),