[4.0] d0227a5 Remove default size from -sfile

Lasse Karstensen lkarsten at varnish-software.com
Thu Jan 15 16:35:40 CET 2015


commit d0227a5a7ab77d28fb6827e442aa18a79a09e472
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Tue Oct 7 14:46:34 2014 +0200

    Remove default size from -sfile

diff --git a/bin/varnishd/storage/storage_file.c b/bin/varnishd/storage/storage_file.c
index 876e444..da67ef3 100644
--- a/bin/varnishd/storage/storage_file.c
+++ b/bin/varnishd/storage/storage_file.c
@@ -108,7 +108,6 @@ smf_initfile(struct smf_sc *sc, const char *size)
 	/* XXX: force block allocation here or in open ? */
 }
 
-static const char default_size[] = "100M";
 static const char default_filename[] = ".";
 
 static void
@@ -122,7 +121,7 @@ smf_init(struct stevedore *parent, int ac, char * const *av)
 	AZ(av[ac]);
 
 	fn = default_filename;
-	size = default_size;
+	size = NULL;
 	page_size = getpagesize();
 
 	if (ac > 3)
@@ -139,7 +138,6 @@ smf_init(struct stevedore *parent, int ac, char * const *av)
 	}
 
 	AN(fn);
-	AN(size);
 
 	ALLOC_OBJ(sc, SMF_SC_MAGIC);
 	XXXAN(sc);



More information about the varnish-commit mailing list