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.13.52~8 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=868089cd309506719b814afecebf825effc6c93f LU-13191 osp: handle -EROFS in osp_sync_interpret() Upon OST disk failure, osp_sync_interpret() may get -EROFS, which is a valid errno. Signed-off-by: Lai Siyao Change-Id: I5c3cff3019aa47c6d5803f0f0b373bc704f18118 Reviewed-on: https://review.whamcloud.com/37404 Tested-by: jenkins Reviewed-by: Alex Zhuravlev Reviewed-by: Bobi Jam Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/osp/osp_sync.c b/lustre/osp/osp_sync.c index cbe6481..6e430f8 100644 --- a/lustre/osp/osp_sync.c +++ b/lustre/osp/osp_sync.c @@ -593,7 +593,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,