Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
0a556c7a
Commit
0a556c7a
authored
Oct 07, 2014
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make path mandatory in -sfile
parent
24eb71a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
mgt_main.c
bin/varnishd/mgt/mgt_main.c
+0
-1
storage_file.c
bin/varnishd/storage/storage_file.c
+4
-5
varnishd.rst
doc/sphinx/reference/varnishd.rst
+2
-2
No files found.
bin/varnishd/mgt/mgt_main.c
View file @
0a556c7a
...
...
@@ -171,7 +171,6 @@ usage(void)
#ifdef HAVE_LIBUMEM
fprintf
(
stderr
,
FMT
,
""
,
" -s umem"
);
#endif
fprintf
(
stderr
,
FMT
,
""
,
" -s file [default: use /tmp]"
);
fprintf
(
stderr
,
FMT
,
""
,
" -s file,<dir_or_file>"
);
fprintf
(
stderr
,
FMT
,
""
,
" -s file,<dir_or_file>,<size>"
);
fprintf
(
stderr
,
FMT
,
""
,
...
...
bin/varnishd/storage/storage_file.c
View file @
0a556c7a
...
...
@@ -108,8 +108,6 @@ smf_initfile(struct smf_sc *sc, const char *size)
/* XXX: force block allocation here or in open ? */
}
static
const
char
default_filename
[]
=
"."
;
static
void
smf_init
(
struct
stevedore
*
parent
,
int
ac
,
char
*
const
*
av
)
{
...
...
@@ -120,14 +118,15 @@ smf_init(struct stevedore *parent, int ac, char * const *av)
AZ
(
av
[
ac
]);
fn
=
default_filename
;
fn
=
NULL
;
size
=
NULL
;
page_size
=
getpagesize
();
if
(
ac
>
3
)
ARGV_ERR
(
"(-sfile) too many arguments
\n
"
);
if
(
ac
>
0
&&
*
av
[
0
]
!=
'\0'
)
fn
=
av
[
0
];
if
(
ac
<
1
||
*
av
[
0
]
==
'\0'
)
ARGV_ERR
(
"(-sfile) path is mandatory
\n
"
);
fn
=
av
[
0
];
if
(
ac
>
1
&&
*
av
[
1
]
!=
'\0'
)
size
=
av
[
1
];
if
(
ac
>
2
&&
*
av
[
2
]
!=
'\0'
)
{
...
...
doc/sphinx/reference/varnishd.rst
View file @
0a556c7a
...
...
@@ -112,7 +112,7 @@ OPTIONS
-s [name=]type[,options]
Use the specified storage backend. The storage backends can be one of the following:
* malloc[,size]
* file
[,path[,size[,granularity]
]]
* file
,path[,size[,granularity
]]
* persistent,path,size
See Storage Types in the Users Guide for more information
...
...
@@ -177,7 +177,7 @@ malloc is a memory based backend.
file
~~~~
syntax: file
[,path[,size[,granularity]
]]
syntax: file
,path[,size[,granularity
]]
The file backend stores data in a file on disk. The file will be accessed using mmap.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment