/*
- * $Id: cache_cf.cc,v 1.517 2007/08/13 18:35:24 hno Exp $
+ * $Id: cache_cf.cc,v 1.518 2007/08/16 13:46:20 hno Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
if (Config.cacheSwap.swapDirs == NULL)
fatal("No cache_dir's specified in config file");
+#if SIZEOF_OFF_T <= 4
+ if (Config.Store.maxObjectSize > 0x7FFF0000) {
+ debugs(3, 0, "WARNING: This Squid binary can not handle files larger than 2GB. Limiting maximum_object_size to just below 2GB");
+ Config.Store.maxObjectSize = 0x7FFF0000;
+ }
+#endif
if (0 == Store::Root().maxSize())
/* people might want a zero-sized cache on purpose */
(void) 0;
/*
- * $Id: store_swapout.cc,v 1.118 2007/08/13 17:20:51 hno Exp $
+ * $Id: store_swapout.cc,v 1.119 2007/08/16 13:46:20 hno Exp $
*
* DEBUG: section 20 Storage Manager Swapout Functions
* AUTHOR: Duane Wessels
}
trimMemory();
-#if SIZEOF_INT64_T == 4
+#if SIZEOF_OFF_T <= 4
if (mem_obj->endOffset() > 0x7FFF0000) {
- debugs(20, 0, "WARNING: preventing int64_t overflow for %s\n", url());
+ debugs(20, 0, "WARNING: preventing off_t overflow for %s\n", url());
abort();
return;
}