Skip to contentSkip to conversation

ceph: dump the msg when receiving a corrupt snap trace

PATCH New [email protected] 1 participant 1 message Jan 2, 2023 Ceph client

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ceph: dump the msg when receiving a corrupt snap trace

From: Xiubo Li <[email protected]>

It's strange that we can see this when mounting, so we need to know how the corrupted msg looks like.

---
 fs/ceph/mds_client.c | 2 ++
 1 file changed, 2 insertions(+)
fs/ceph/mds_client.c +2 -0
index 1ad85af49b45..43a9a17ed9eb 100644
@@ -3724,6 +3724,8 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg)
 		if (err) {
 			up_write(&mdsc->snap_rwsem);
 			close_sessions = true;
+			if (err == -EIO)
+				ceph_msg_dump(msg);
 			goto out_err;
 		}
 		downgrade_write(&mdsc->snap_rwsem);
Signature · 1 line
2.31.1