sheep.c: fix "option '--enable-cache' doesn't allow an argument" sheep.8: update --enable-cache option Signed-off-by: Jens Weber <jweber at tek2b.org> --- man/sheep.8 | 6 +++--- sheep/sheep.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/man/sheep.8 b/man/sheep.8 index 24323c7..b73301d 100644 --- a/man/sheep.8 +++ b/man/sheep.8 @@ -1,4 +1,4 @@ -.TH SHEEPDOG 8 2012-07-18 +.TH SHEEPDOG 8 2012-07-31 .SH NAME sheep \- Distributed Block Storage System for KVM .SH SYNOPSIS @@ -50,8 +50,8 @@ Log to stdout instead of shared logger. .BI \-v "\fR, \fP" \--vnodes Specify the number of virtual nodes. .TP -.BI \-w "\fR, \fP" \--enable-cache -Enable object caching (EXPERIMENTAL). +.BI \-w "\fR, \fP" \--enable-cache " size" +Enable object cache and specify the max cache size in megabytes (EXPERIMENTAL). .TP .BI \-y "\fR, \fP" \--myaddr Specify the address advertised to other sheep. diff --git a/sheep/sheep.c b/sheep/sheep.c index d17884d..52a294b 100644 --- a/sheep/sheep.c +++ b/sheep/sheep.c @@ -47,7 +47,7 @@ static struct option const long_options[] = { {"stdout", no_argument, NULL, 'o'}, {"port", required_argument, NULL, 'p'}, {"vnodes", required_argument, NULL, 'v'}, - {"enable-cache", no_argument, NULL, 'w'}, + {"enable-cache", required_argument, NULL, 'w'}, {"zone", required_argument, NULL, 'z'}, {"pidfile", required_argument, NULL, 'P'}, {NULL, 0, NULL, 0}, -- 1.7.10.4 |