4 Nov 2009 22:51
[PATCH] chunkd: clone chunksrv_req to chunksrv_resp
Jeff Garzik <jeff <at> garzik.org>
2009-11-04 21:51:45 GMT
2009-11-04 21:51:45 GMT
This just-committed change prepares for a more significant protocol
change later on (variable-length keys in requests).
This is a network protocol change, though a minor one you probably won't
notice, due to the chunksrv_req/chunksrv_resp structures currently being
twins (that will soon change).
commit 69cf0ae597fd83086c1746a02c776b0bc05d591e
Author: Jeff Garzik <jeff <at> garzik.org>
Date: Wed Nov 4 16:44:34 2009 -0500
Clone chunksrv_req into new chunksrv_resp, to separate request and response
messages.
- resp_code removed from chunksrv_req
- s/checksum/sig/ in chunksrv_req
- req_len() used to calculate request size (preparation for future)
- resp_init_req() used to init response from request, rather than memcpy()
- improve data-in debugging
Signed-off-by: Jeff Garzik <jgarzik <at> redhat.com>
diff --git a/include/chunk_msg.h b/include/chunk_msg.h
index 610f8c5..4222f27 100644
--- a/include/chunk_msg.h
+++ b/include/chunk_msg.h
<at> <at> -10,6 +10,7 <at> <at> enum {
CHD_USER_SZ = 64,
CHD_KEY_SZ = 64,
(Continue reading)
RSS Feed