This is to spot obvious typos
---
 bin/varnishd/storage/stevedore_utils.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/varnishd/storage/stevedore_utils.c 
b/bin/varnishd/storage/stevedore_utils.c
index ccb0614..d5ed033 100644
--- a/bin/varnishd/storage/stevedore_utils.c
+++ b/bin/varnishd/storage/stevedore_utils.c
@@ -206,6 +206,10 @@ STV_FileSize(int fd, const char *size, unsigned 
*granularity, const char *ctx)
                if (l < 1024*1024)
                        ARGV_ERR("(%s) size \"%s\": too small, "
                            "did you forget to specify M or G?\n", ctx, size);
+
+               if (l > fssize)
+                       ARGV_ERR("(%s) size \"%s\": larger than file system\n",
+                           ctx, size);
        }
 
        /*
-- 
2.1.1


_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to