From 7d48050b7a3ba0b9db2ff823bc6fbc3091506597 Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Mon, 9 Apr 2018 22:11:31 +0800 Subject: [PATCH] LU-10887 lfsck: offer shard's mode when re-create it The namespace will re-create the lost shard of a broken stripe directory if "-C" option specified. Under such case, the @mode parameter should be given properly. Signed-off-by: Fan Yong Change-Id: I2441d8ca83c932a34ef1971d334f54ecd7343b27 Reviewed-on: https://review.whamcloud.com/31915 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Lai Siyao Reviewed-by: Oleg Drokin --- lustre/lfsck/lfsck_namespace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/lfsck/lfsck_namespace.c b/lustre/lfsck/lfsck_namespace.c index b613511..fd41129 100644 --- a/lustre/lfsck/lfsck_namespace.c +++ b/lustre/lfsck/lfsck_namespace.c @@ -4144,6 +4144,7 @@ static void lfsck_namespace_close_dir(const struct lu_env *env, lnr->lnr_fid = *lfsck_dto2fid(lfsck->li_obj_dir); lnr->lnr_dir_cookie = MDS_DIR_END_OFF; lnr->lnr_size = size; + lnr->lnr_type = lso->lso_attr.la_mode; spin_lock(&lad->lad_lock); if (lad->lad_assistant_status < 0 || -- 1.8.3.1