From 53b3b71f78bb9e0121b1f05727086c41ad327f04 Mon Sep 17 00:00:00 2001 From: Dennis Dalessandro Date: Mon, 31 Mar 2008 12:23:12 -0400 Subject: [PATCH] debugging messages used frequently for sgl stuff -- commented out --- src/client/sysint/sys-osd-io.sm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/client/sysint/sys-osd-io.sm b/src/client/sysint/sys-osd-io.sm index fa62fd0..048515a 100644 --- a/src/client/sysint/sys-osd-io.sm +++ b/src/client/sysint/sys-osd-io.sm @@ -179,6 +179,7 @@ static int osd_io_setup_msgpairs(struct PINT_smcb *smcb, job_status_s *js_p) struct bsg_iovec *iov; int dfile_count = sm_p->u.io.datafile_count; + //~ printf("MAX IOVEC is %d\n", OSD_INIT_MAX_IOVEC); /* clients offset and length pairs */ PVFS_offset offseta[OSD_INIT_MAX_IOVEC]; PVFS_size sizea[OSD_INIT_MAX_IOVEC]; @@ -371,15 +372,19 @@ static int osd_io_setup_msgpairs(struct PINT_smcb *smcb, job_status_s *js_p) command->inlen_alloc = len; command->iov_inlen = csegs_count; + //~ printf("Contig READ %d\n", len); + } else if (io->io_type == PVFS_IO_WRITE) { osd_command_set_write(command, PVFS_OSD_DATA_PID, datafile_handle, len, target_offset[i]); command->outdata = p; command->outlen = len; command->iov_outlen = csegs_count; + + //~ printf("Contig WRITE %d\n", len); } - //~ printf("CONFIG\n"); + } else if (sresult.segs > 0) { /* either need a SGL or optimized SGL */ int j, flag, stride, segl, total_len; @@ -494,6 +499,8 @@ static int osd_io_setup_msgpairs(struct PINT_smcb *smcb, job_status_s *js_p) else osd_command_set_ddt(command, DDT_SGL); + //~ printf("SGL Write %d\n", len); + } else if (io->io_type == PVFS_IO_READ) { if (csegs_count == 1) { p += offseta[0]; @@ -569,12 +576,14 @@ static int osd_io_setup_msgpairs(struct PINT_smcb *smcb, job_status_s *js_p) command->outdata = sgl; command->outlen = ddt_size; + //~ printf("SGL READ %d\n", len); + } else { ret = -EINVAL; goto out; } - //~ printf("NON-CONTIG\n"); + //~ printf("NON-CONTIG\n"); } else { /* Nothing to do for this server */