/*
- * $Id: disk.cc,v 1.132 1998/08/21 09:15:22 wessels Exp $
+ * $Id: disk.cc,v 1.133 1998/08/24 22:06:44 wessels Exp $
*
* DEBUG: section 6 Disk I/O Routines
* AUTHOR: Harvest Derived
static void
diskHandleWrite(int fd, void *notused)
{
+#if !USE_ASYNC_IO
int len = 0;
+#endif
fde *F = &fd_table[fd];
struct _fde_disk *fdd = &F->disk;
if (!fdd->write_q)
len = write(fd,
fdd->write_q->buf + fdd->write_q->buf_offset,
fdd->write_q->len - fdd->write_q->buf_offset);
- diskHandleWriteComplete(fd, NULL, len, errno);
+ diskHandleWriteComplete(fd, fdd->write_q, len, errno);
#endif
}
errcode = EFAULT;
}
#endif
- safe_free(data);
if (q == NULL) /* Someone aborted then write completed */
return;
/*
- * $Id: protos.h,v 1.253 1998/08/21 03:15:22 wessels Exp $
+ * $Id: protos.h,v 1.254 1998/08/24 22:06:46 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
*/
extern void storeDoRebuildFromSwapFiles(void *data);
extern void storeValidate(StoreEntry *, STVLDCB *, void *, void *);
-extern void storeValidateComplete(void *data, int retcode, int errcode);
extern void storeRebuildStart(void);
/*
/*
- * $Id: store_rebuild.cc,v 1.45 1998/08/05 08:19:56 wessels Exp $
+ * $Id: store_rebuild.cc,v 1.46 1998/08/24 22:06:48 wessels Exp $
*
* DEBUG: section 20 Store Rebuild Routines
* AUTHOR: Duane Wessels
u_num32 refcount,
u_num32 flags,
int clean);
+static AIOCB storeValidateComplete;
static int
storeRebuildFromDirectory(rebuild_dir * d)
* not specified;
*/
x = stat(path, sb);
- storeValidateComplete(ctrlp, x, errno);
+ storeValidateComplete(-1, ctrlp, x, errno);
#endif
return;
}
void
-storeValidateComplete(void *data, int retcode, int errcode)
+storeValidateComplete(int fd, void *data, int retcode, int errcode)
{
valid_ctrl_t *ctrlp = data;
struct stat *sb = ctrlp->sb;
/*
- * $Id: tools.cc,v 1.166 1998/07/25 04:47:29 wessels Exp $
+ * $Id: tools.cc,v 1.167 1998/08/24 22:06:49 wessels Exp $
*
* DEBUG: section 21 Misc Functions
* AUTHOR: Harvest Derived
static void fatalvf(const char *fmt, va_list args);
static void mail_warranty(void);
#if USE_ASYNC_IO
-static void safeunlinkComplete(void *data, int retcode, int errcode);
+static AIOCB safeunlinkComplete;
#endif
#if MEM_GEN_TRACE
extern void log_trace_done();
#if USE_ASYNC_IO
static void
-safeunlinkComplete(void *data, int retcode, int errcode)
+safeunlinkComplete(int fd, void *data, int retcode, int errcode)
{
char *s = data;
if (retcode < 0) {