Skip to content

Commit

Permalink
debugging messages used frequently for sgl stuff -- commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Dalessandro committed Mar 31, 2008
1 parent 3b8feb3 commit 53b3b71
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/client/sysint/sys-osd-io.sm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 53b3b71

Please sign in to comment.