diff options
author | Sage Weil <sage@newdream.net> | 2009-12-14 18:13:47 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-12-21 19:39:52 -0500 |
commit | 9ec7cab14e6de732d4e7c355fe67c5810c32c758 (patch) | |
tree | 2f512034bc7db2b4ca8fe47ceea06ac99a8cab40 /fs/ceph/mds_client.c | |
parent | 93c20d98c29ccefa039c3843ccc37122caaf3d31 (diff) |
ceph: hex dump corrupt server data to KERN_DEBUG
Also, print fsid using standard format, NOT hex dump.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r-- | fs/ceph/mds_client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 739093f281d0..29a93fe35f85 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c | |||
@@ -1650,6 +1650,7 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg) | |||
1650 | return; | 1650 | return; |
1651 | if (msg->front.iov_len < sizeof(*head)) { | 1651 | if (msg->front.iov_len < sizeof(*head)) { |
1652 | pr_err("mdsc_handle_reply got corrupt (short) reply\n"); | 1652 | pr_err("mdsc_handle_reply got corrupt (short) reply\n"); |
1653 | ceph_msg_dump(msg); | ||
1653 | return; | 1654 | return; |
1654 | } | 1655 | } |
1655 | 1656 | ||
@@ -1740,6 +1741,7 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg) | |||
1740 | mutex_lock(&session->s_mutex); | 1741 | mutex_lock(&session->s_mutex); |
1741 | if (err < 0) { | 1742 | if (err < 0) { |
1742 | pr_err("mdsc_handle_reply got corrupt reply mds%d\n", mds); | 1743 | pr_err("mdsc_handle_reply got corrupt reply mds%d\n", mds); |
1744 | ceph_msg_dump(msg); | ||
1743 | goto out_err; | 1745 | goto out_err; |
1744 | } | 1746 | } |
1745 | 1747 | ||
@@ -1929,6 +1931,7 @@ static void handle_session(struct ceph_mds_session *session, | |||
1929 | bad: | 1931 | bad: |
1930 | pr_err("mdsc_handle_session corrupt message mds%d len %d\n", mds, | 1932 | pr_err("mdsc_handle_session corrupt message mds%d len %d\n", mds, |
1931 | (int)msg->front.iov_len); | 1933 | (int)msg->front.iov_len); |
1934 | ceph_msg_dump(msg); | ||
1932 | return; | 1935 | return; |
1933 | } | 1936 | } |
1934 | 1937 | ||
@@ -2394,6 +2397,7 @@ out: | |||
2394 | 2397 | ||
2395 | bad: | 2398 | bad: |
2396 | pr_err("corrupt lease message\n"); | 2399 | pr_err("corrupt lease message\n"); |
2400 | ceph_msg_dump(msg); | ||
2397 | } | 2401 | } |
2398 | 2402 | ||
2399 | void ceph_mdsc_lease_send_msg(struct ceph_mds_session *session, | 2403 | void ceph_mdsc_lease_send_msg(struct ceph_mds_session *session, |