From 1f2f41a1cb893ce45cf7d5d7440c536455f66686 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Wed, 23 Jul 2014 18:38:53 -0500 Subject: [PATCH] LU-5401 mdt: handle getattr errors in mdt_reint_open() In mdt_reint_open() if mdt_attr_get_complex_fails() then bail out and return an error. Signed-off-by: John L. Hammond Change-Id: I67c773b93100064e4cfdc82b4356424fd102c925 Reviewed-on: http://review.whamcloud.com/11210 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Fan Yong Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- lustre/mdt/mdt_open.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/mdt/mdt_open.c b/lustre/mdt/mdt_open.c index 87354a2..50a8e61 100644 --- a/lustre/mdt/mdt_open.c +++ b/lustre/mdt/mdt_open.c @@ -1825,6 +1825,8 @@ int mdt_reint_open(struct mdt_thread_info *info, struct mdt_lock_handle *lhc) mdt_prep_ma_buf_from_rep(info, child, ma); ma->ma_need |= MA_HSM; result = mdt_attr_get_complex(info, child, ma); + if (result != 0) + GOTO(out_child, result); } else { /* Object does not exist. Likely FS corruption. */ CERROR("%s: name '"DNAME"' present, but FID " -- 1.8.3.1