From 7838c76d7c0e57db782016053a590978ec9abdef Mon Sep 17 00:00:00 2001 From: Bob Glossman Date: Wed, 9 Jul 2014 14:03:18 -0700 Subject: [PATCH] LU-5310 build: fix build error in Centos 7 Fix a code flaw added to master by recent commit de2d5808bd2987f76d2486272e1a9c192ba277d4. Causes a build failure in newer version gcc v4.8.2 used in Centos 7. Signed-off-by: Bob Glossman Change-Id: Icc0aa1994ece756cd70bc5d69101cbe1694f8df0 Reviewed-on: http://review.whamcloud.com/11035 Reviewed-by: James Simmons Tested-by: Jenkins Reviewed-by: Andreas Dilger Reviewed-by: Fan Yong Tested-by: Maloo Reviewed-by: Dmitry Eremin --- lustre/mdd/mdd_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mdd/mdd_dir.c b/lustre/mdd/mdd_dir.c index 0262646..49389e0 100644 --- a/lustre/mdd/mdd_dir.c +++ b/lustre/mdd/mdd_dir.c @@ -3393,7 +3393,7 @@ static int mdd_migrate_create(const struct lu_env *env, } mgr_ea = (struct lmv_mds_md_v1 *)info->mti_xattr_buf; - memset(mgr_ea, 0, sizeof(mgr_ea)); + memset(mgr_ea, 0, sizeof(*mgr_ea)); mgr_ea->lmv_magic = cpu_to_le32(LMV_MAGIC_V1); mgr_ea->lmv_stripe_count = cpu_to_le32(2); mgr_ea->lmv_master_mdt_index = mdd_seq_site(mdd)->ss_node_id; -- 1.8.3.1