From 868089cd309506719b814afecebf825effc6c93f Mon Sep 17 00:00:00 2001 From: Lai Siyao Date: Sun, 26 Jan 2020 05:23:28 +0800 Subject: [PATCH] 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 --- lustre/osp/osp_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 1.8.3.1