/*
- * $Id: store_io_ufs.cc,v 1.32 2006/05/23 00:30:21 wessels Exp $
+ * $Id: store_io_ufs.cc,v 1.33 2006/05/24 15:25:04 wessels Exp $
*
* DEBUG: section 79 Storage Manager UFS Interface
* AUTHOR: Duane Wessels
debug(79, 3) ("diskd::ioCompleted: dirno %d, fileno %08x status %d\n", swap_dirn, swap_filen, theFile->error());
/* Ok, notification past open means an error has occured */
assert (theFile->error());
- doCallback(DISK_ERROR);
+ doCloseCallback(DISK_ERROR);
}
void
UFSStoreState::openDone()
{
if (theFile->error()) {
- doCallback(DISK_ERROR);
+ doCloseCallback(DISK_ERROR);
return;
}
}
if (closing && !theFile->ioInProgress())
- doCallback(theFile->error() ? -1 : 0);
+ doCloseCallback(theFile->error() ? -1 : 0);
debug(79, 3) ("squidaiostate_t::openDone: exiting\n");
}
swap_dirn, swap_filen, theFile->error());
if (theFile->error())
- doCallback(DISK_ERROR);
+ doCloseCallback(DISK_ERROR);
else
- doCallback(DISK_OK);
+ doCloseCallback(DISK_OK);
closing = false;
}
callback(cbdata, read_buf, len, this);
} else if (closing && theFile.getRaw()!= NULL && !theFile->ioInProgress())
- doCallback(errflag);
+ doCloseCallback(errflag);
}
void
offset_ += len;
if (theFile->error()) {
- doCallback(DISK_ERROR);
+ doCloseCallback(DISK_ERROR);
return;
}
flags.write_kicking = false;
if (!theFile->ioInProgress() && closing)
- doCallback(errflag);
+ doCloseCallback(errflag);
}
}
void
-UFSStoreState::doCallback(int errflag)
+UFSStoreState::doCloseCallback(int errflag)
{
debug(79, 3) ("storeUfsIOCallback: errflag=%d\n", errflag);
STIOCB *theCallback = callback;
/*
- * $Id: ufscommon.h,v 1.5 2006/05/23 00:21:48 wessels Exp $
+ * $Id: ufscommon.h,v 1.6 2006/05/24 15:25:04 wessels Exp $
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
* ----------------------------------------------------------
void write(char const *buf, size_t size, off_t offset, FREE * free_func);
protected:
- virtual void doCallback (int errflag);
+ virtual void doCloseCallback (int errflag);
class _queued_read
{