r1027 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sat Sep 16 17:51:43 CEST 2006


Author: phk
Date: 2006-09-16 17:51:43 +0200 (Sat, 16 Sep 2006)
New Revision: 1027

Modified:
   trunk/varnish-cache/bin/varnishd/storage_file.c
Log:
correctly round INT32_MAX down to page boundary


Modified: trunk/varnish-cache/bin/varnishd/storage_file.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_file.c	2006-09-16 14:53:56 UTC (rev 1026)
+++ trunk/varnish-cache/bin/varnishd/storage_file.c	2006-09-16 15:51:43 UTC (rev 1027)
@@ -187,6 +187,7 @@
 		    "  Specifiy explicit size to override.\n"
 		);
 		l = INT32_MAX;
+		l -= (l % bs);
 	}
 
 	printf("file %s size %ju bytes (%ju fs-blocks, %ju pages)\n",




More information about the varnish-commit mailing list