/*
- * $Id: DiskdIOStrategy.cc,v 1.6 2007/01/31 07:13:54 wessels Exp $
+ * $Id: DiskdIOStrategy.cc,v 1.7 2007/04/07 16:29:06 serassio Exp $
*
* DEBUG: section 79 Squid-side DISKD I/O functions.
* AUTHOR: Duane Wessels
}
+ /* set errno passed from diskd. makes debugging more meaningful */
+ if (M->status < 0)
+ errno = -M->status;
+
if (M->newstyle) {
DiskdFile *theFile = (DiskdFile *)M->callback_data;
theFile->RefCountDereference();
/*
- * $Id: diskd.cc,v 1.4 2006/05/08 23:05:45 wessels Exp $
+ * $Id: diskd.cc,v 1.5 2007/04/07 16:29:06 serassio Exp $
*
* DEBUG: section -- External DISKD process implementation.
* AUTHOR: Harvest Derived
{
char *buf = NULL;
s->mtype = r->mtype;
+ s->id = r->id;
+ s->seq_no = r->seq_no; /* optional, debugging */
s->callback_data = r->callback_data;
s->requestor = r->requestor;
+ s->size = 0; /* optional, debugging */
+ s->offset = 0; /* optional, debugging */
s->shm_offset = r->shm_offset;
- s->id = r->id;
s->newstyle = r->newstyle;
if (s->shm_offset > -1)