<article>
<title>Squid Programmers Guide</title>
<author>Squid Developers</author>
-<date>$Id: prog-guide.sgml,v 1.59 2006/04/22 05:28:26 robertc Exp $</date>
+<date>$Id: prog-guide.sgml,v 1.60 2006/05/20 13:15:14 hno Exp $</date>
<abstract>
Squid is a WWW Cache application developed by the National Laboratory
u_short flags;
</verb>
+<tag/STORE_META_STD_LFS/
+ Updated version of STORE_META_STD, with support for
+ >2GB objects. As STORE_META_STD except that the swap_file_sz
+ is a squid_file_sz (64-bit integer) instead of size_t.
+
<tag/STORE_META_HITMETERING/
Reserved for future hit-metering (RFC 2227) stuff.
<tag/STORE_META_VALID/
?
-<tag/STORE_META_END/
- Marks the last valid META type.
+<tag/STORE_META_VARY_HEADERS/
+ Information about the Vary header relation on this object
+
+<tag/STORE_META_OBJSIZE/
+ object size, if its known
</descrip>
/*
- * $Id: StoreMetaUnpacker.cc,v 1.2 2003/02/21 22:50:06 robertc Exp $
+ * $Id: StoreMetaUnpacker.cc,v 1.3 2006/05/20 13:15:14 hno Exp $
*
* DEBUG: section 20 Storage Manager Swapfile Unpacker
* AUTHOR: Robert Collins
*/
getBufferLength();
- if (*hdr_len <= MinimumBufferLength)
+ if (*hdr_len < MinimumBufferLength)
return false;
if (*hdr_len > buflen)
bool
StoreMetaUnpacker::moreToProcess() const
{
- return *hdr_len - position - MinimumBufferLength > 0;
+ return *hdr_len - position - MinimumBufferLength >= 0;
}
StoreMeta *
/*
- * $Id: store_swapmeta.cc,v 1.22 2003/08/04 22:14:42 robertc Exp $
+ * $Id: store_swapmeta.cc,v 1.23 2006/05/20 13:15:14 hno Exp $
*
* DEBUG: section 20 Storage Manager Swapfile Metadata
* AUTHOR: Kostas Anagnostakis
for (t = tlv_list; t; t = t->next)
buflen += sizeof(char) + sizeof(int) + t->length;
- buflen++; /* STORE_META_END */
-
buf = (char *)xmalloc(buflen);
buf[j++] = (char) STORE_META_OK;
j += t->length;
}
- buf[j++] = (char) STORE_META_END;
assert((int) j == buflen);
*length = buflen;
return buf;