[master] 82ba5b9 Remove default size from -sfile
Martin Blix Grydeland
martin at varnish-software.com
Tue Oct 21 12:25:42 CEST 2014
commit 82ba5b928d5204df386a9a212dca9334d7a2bb41
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 863ad25..b1be095 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