ceph: dump the msg when receiving a corrupt snap trace
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.
Signed-off-by Xiubo Li <[email protected]>
--- fs/ceph/mds_client.c | 2 ++ 1 file changed, 2 insertions(+)
fs/ceph/mds_client.c +2 -0
@@ -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