Skip to content

Commit

Permalink
fix max size bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Dalessandro committed Feb 1, 2008
1 parent 10c1add commit f857751
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/client/sysint/sys-osd-io.sm
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ static int osd_io_setup_msgpairs(struct PINT_smcb *smcb, job_status_s *js_p)
PVFS_size target_size[OSD_INIT_MAX_IOVEC];

/* total bytes to read/write from each io server */
PVFS_size sbytemax = io->mem_req->aggregate_size / dfile_count;
PVFS_size sbytemax = io->mem_req->aggregate_size;
PVFS_size this_aggregate_size = 0;

/* structures to pass into req proc engine */
Expand All @@ -204,9 +204,7 @@ static int osd_io_setup_msgpairs(struct PINT_smcb *smcb, job_status_s *js_p)
if (sbytemax > KERNEL_BUFSIZE) {
gossip_debug(GOSSIP_IO_DEBUG, "%s: SCSI buffer %lld cant handle %lld\n",
__func__, lld(KERNEL_BUFSIZE), lld(sbytemax));
//~ ret = -ENOMEM;
//~ goto out;
sbytemax = KERNEL_BUFSIZE / sm_p->u.io.datafile_count;
sbytemax = KERNEL_BUFSIZE;

}

Expand Down Expand Up @@ -582,12 +580,6 @@ static int osd_io_setup_msgpairs(struct PINT_smcb *smcb, job_status_s *js_p)
gossip_debug(GOSSIP_IO_DEBUG, "%s: Aggreagte Transferred: %lld\n", __func__,
lld(this_aggregate_size));

if (this_aggregate_size != sbytemax * dfile_count) {
gossip_err("%s: Got %lld bytes data and wanted %lld bytes\n",
__func__, lld(this_aggregate_size), lld(sbytemax));
ret = -EINVAL;
}

out:
js_p->error_code = ret;
return 1;
Expand Down

0 comments on commit f857751

Please sign in to comment.