From: Lai Siyao Date: Sat, 25 Jan 2020 21:23:28 +0000 (+0800) Subject: LU-13191 osp: handle -EROFS in osp_sync_interpret() X-Git-Tag: 2.12.5-RC1~73 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F16%2F37516%2F3;p=fs%2Flustre-release.git LU-13191 osp: handle -EROFS in osp_sync_interpret() Upon OST disk failure, osp_sync_interpret() may get -EROFS, which is a valid errno. Lustre-change: https://review.whamcloud.com/37404 Lustre-commit: 868089cd309506719b814afecebf825effc6c93f Signed-off-by: Lai Siyao Change-Id: I5c3cff3019aa47c6d5803f0f0b373bc704f18118 Reviewed-by: Alex Zhuravlev Reviewed-by: Bobi Jam Reviewed-by: Oleg Drokin Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/37516 Tested-by: jenkins Tested-by: Maloo --- diff --git a/lustre/osp/osp_sync.c b/lustre/osp/osp_sync.c index eda43f3..5c42b2b 100644 --- a/lustre/osp/osp_sync.c +++ b/lustre/osp/osp_sync.c @@ -592,7 +592,7 @@ static int osp_sync_interpret(const struct lu_env *env, /* * error happened, we'll try to repeat on next boot ? */ - LASSERTF(req->rq_transno == 0 || rc == -EIO || + LASSERTF(req->rq_transno == 0 || rc == -EIO || rc == -EROFS || req->rq_import_generation < imp->imp_generation, "transno %llu, rc %d, gen: req %d, imp %d\n", req->rq_transno, rc, req->rq_import_generation,