Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
reqh: md device service type is not M0_CST_IOS
Browse files Browse the repository at this point in the history
While generating confguration, Hare assigns metadata device to CAS
service type, M0_CST_CAS. But m0_reqh_mdpool_service_index_to_session()
expects it to be M0_CST_IOS and asserts the same.

Solution:
Expect metadata device service type to be M0_CST_CAS instead
of M0_CST_IOS.

Signed-off-by: Mandar Sawant <mandar.sawant@seagate.com>
  • Loading branch information
Mandar Sawant committed Jan 31, 2022
1 parent e998dff commit 97cc2d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reqh/reqh.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ m0_reqh_mdpool_service_index_to_session(const struct m0_reqh *reqh,
pd_sdev_idx;
ctx = md_pv->pv_pc->pc_dev2svc[idx].pds_ctx;
M0_ASSERT(ctx != NULL);
M0_ASSERT(ctx->sc_type == M0_CST_IOS);
/* XXX Should the service type associated to a metadata device in
* a given m0d be more generic, e.g. M0_CST_BE?
*/
M0_ASSERT(ctx->sc_type == M0_CST_CAS);
session = &ctx->sc_rlink.rlk_sess;

M0_LOG(M0_DEBUG, "device index %d id %d -> ctx=%p session=%p", idx,
Expand Down

0 comments on commit 97cc2d1

Please sign in to comment.