[PVFS2-CVS]
commit by neill in pvfs2/src/proto: PINT-reqproto-encode.c
CVS commit program
cvs at parl.clemson.edu
Thu Jul 15 16:46:48 EDT 2004
Update of /projects/cvsroot/pvfs2/src/proto
In directory parlweb:/tmp/cvs-serv2194/src/proto
Modified Files:
PINT-reqproto-encode.c
Log Message:
- if an invalid or unsupported encoding type is specified in the pvfs2tab,
cycle through all encodings (until one completes or all are exhausted),
but dump an error msg pointing out the problem
Index: PINT-reqproto-encode.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/proto/PINT-reqproto-encode.c,v
diff -p -u -r1.19 -r1.20
--- PINT-reqproto-encode.c 15 Jul 2004 17:16:45 -0000 1.19
+++ PINT-reqproto-encode.c 15 Jul 2004 19:46:48 -0000 1.20
@@ -82,13 +82,11 @@ void PINT_encode_finalize(void)
*
* returns 0 on success, -PVFS_error on failure
*/
-int PINT_encode(
- void* input_buffer,
+int PINT_encode(void* input_buffer,
enum PINT_encode_msg_type input_type,
struct PINT_encoded_msg* target_msg,
PVFS_BMI_addr_t target_addr,
- enum PVFS_encoding_type enc_type
- )
+ enum PVFS_encoding_type enc_type)
{
int ret = -1;
target_msg->dest = target_addr;
@@ -150,13 +148,11 @@ int PINT_encode(
*
* returns 0 on success, -PVFS_error on failure
*/
-int PINT_decode(
- void* input_buffer,
+int PINT_decode(void* input_buffer,
enum PINT_encode_msg_type input_type,
struct PINT_decoded_msg* target_msg,
PVFS_BMI_addr_t target_addr,
- PVFS_size size
- )
+ PVFS_size size)
{
int i=0;
char* buffer_index = (char*)input_buffer + PINT_ENC_GENERIC_HEADER_SIZE;
@@ -248,10 +244,8 @@ int PINT_decode(
*
* no return value
*/
-void PINT_encode_release(
- struct PINT_encoded_msg* input_buffer,
- enum PINT_encode_msg_type input_type
- )
+void PINT_encode_release(struct PINT_encoded_msg* input_buffer,
+ enum PINT_encode_msg_type input_type)
{
PINT_encoding_table[input_buffer->enc_type]->op->encode_release(
input_buffer, input_type);
@@ -266,15 +260,11 @@ void PINT_encode_release(
*
* no return value
*/
-void PINT_decode_release(
- struct PINT_decoded_msg* input_buffer,
- enum PINT_encode_msg_type input_type
- )
+void PINT_decode_release(struct PINT_decoded_msg* input_buffer,
+ enum PINT_encode_msg_type input_type)
{
PINT_encoding_table[input_buffer->enc_type]->op->decode_release(
input_buffer, input_type);
-
- return;
}
More information about the PVFS2-CVS
mailing list