/*
- * $Id: store_dir_coss.cc,v 1.48 2003/08/27 21:19:38 wessels Exp $
+ * $Id: store_dir_coss.cc,v 1.49 2003/08/30 06:39:24 robertc Exp $
*
* DEBUG: section 47 Store COSS Directory Routines
* AUTHOR: Eric Stern
if (max_size > (max_offset>>10)) {
debug(47,0)("COSS block-size = %d bytes\n", 1<<blksz_bits);
- debug(47,0)("COSS largest file offset = %llu KB\n", max_offset >> 10);
+ debugs(47,0, "COSS largest file offset = " << (max_offset >> 10) << " KB");
debug(47,0)("COSS cache_dir size = %d KB\n", max_size);
fatal("COSS cache_dir size exceeds largest offset\n");
}
/*
- * $Id: store_io_coss.cc,v 1.23 2003/08/27 21:19:38 wessels Exp $
+ * $Id: store_io_coss.cc,v 1.24 2003/08/30 06:39:24 robertc Exp $
*
* DEBUG: section 79 Storage Manager COSS Interface
* AUTHOR: Eric Stern
/* Check if we have overflowed the disk .. */
/* SD->max_size is int, so cast to (off_t) *before* bit-shifting */
- if ((SD->current_offset + allocsize) > ((off_t)SD->max_size << 10)) {
+ if ((off_t)(SD->current_offset + allocsize) > ((off_t)SD->max_size << 10)) {
/*
* tried to allocate past the end of the disk, so wrap
* back to the beginning
for (m = membufs.head; m; m = m->next) {
t = (CossMemBuf *)m->data;
- if ((o >= t->diskstart) && (o < t->diskend))
+ if ((o >= (off_t)t->diskstart) && (o < (off_t)t->diskend))
break;
}
if (curfn == e->swap_filen)
*collision = 1; /* Mark an object alloc collision */
- if ((o >= newmb->diskstart) && (o < newmb->diskend)) {
+ if ((o >= (off_t)newmb->diskstart) && (o < (off_t)newmb->diskend)) {
storeRelease(e);
numreleased++;
} else