return fd;
}
-
/* close a disk file. */
void
file_close(int fd)
q << "," << (int) q->buf_offset << ", " << q->len << ", " <<
len << " FD " << fd << ")");
-
assert(q->buf_offset <= q->len);
if (q->buf_offset == q->len) {
PROF_stop(diskHandleWrite);
}
-
/* write block to a file */
/* write back queue. Only one writer at a time. */
/* call a handle when writing is complete. */
PROF_stop(diskHandleRead);
}
-
/* start read operation */
/* buffer must be allocated from the caller.
* It must have at least req_len space in there.