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
46b0d2d2
Commit
46b0d2d2
authored
Nov 16, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move mgt cli stuff to _mgt.c file
parent
919696b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
stevedore.c
bin/varnishd/storage/stevedore.c
+0
-25
stevedore_mgt.c
bin/varnishd/storage/stevedore_mgt.c
+25
-0
No files found.
bin/varnishd/storage/stevedore.c
View file @
46b0d2d2
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
#include "cache/cache.h"
#include "cache/cache.h"
#include "storage/storage.h"
#include "storage/storage.h"
#include "vcli_priv.h"
#include "vrt.h"
#include "vrt.h"
#include "vrt_obj.h"
#include "vrt_obj.h"
...
@@ -422,30 +421,6 @@ STV_close(void)
...
@@ -422,30 +421,6 @@ STV_close(void)
stv
->
close
(
stv
);
stv
->
close
(
stv
);
}
}
/*--------------------------------------------------------------------*/
static
void
stv_cli_list
(
struct
cli
*
cli
,
const
char
*
const
*
av
,
void
*
priv
)
{
struct
stevedore
*
stv
;
ASSERT_MGT
();
(
void
)
av
;
(
void
)
priv
;
VCLI_Out
(
cli
,
"Storage devices:
\n
"
);
stv
=
stv_transient
;
VCLI_Out
(
cli
,
"
\t
storage.%s = %s
\n
"
,
stv
->
ident
,
stv
->
name
);
VTAILQ_FOREACH
(
stv
,
&
stv_stevedores
,
list
)
VCLI_Out
(
cli
,
"
\t
storage.%s = %s
\n
"
,
stv
->
ident
,
stv
->
name
);
}
/*--------------------------------------------------------------------*/
struct
cli_proto
cli_stv
[]
=
{
{
"storage.list"
,
"storage.list"
,
"List storage devices
\n
"
,
0
,
0
,
""
,
stv_cli_list
},
{
NULL
}
};
/*--------------------------------------------------------------------
/*--------------------------------------------------------------------
* VRT functions for stevedores
* VRT functions for stevedores
...
...
bin/varnishd/storage/stevedore_mgt.c
View file @
46b0d2d2
...
@@ -42,12 +42,37 @@
...
@@ -42,12 +42,37 @@
#include "storage/storage.h"
#include "storage/storage.h"
#include "vav.h"
#include "vav.h"
#include "vcli_priv.h"
struct
stevedore_head
stv_stevedores
=
struct
stevedore_head
stv_stevedores
=
VTAILQ_HEAD_INITIALIZER
(
stv_stevedores
);
VTAILQ_HEAD_INITIALIZER
(
stv_stevedores
);
struct
stevedore
*
stv_transient
;
struct
stevedore
*
stv_transient
;
/*--------------------------------------------------------------------*/
static
void
stv_cli_list
(
struct
cli
*
cli
,
const
char
*
const
*
av
,
void
*
priv
)
{
struct
stevedore
*
stv
;
ASSERT_MGT
();
(
void
)
av
;
(
void
)
priv
;
VCLI_Out
(
cli
,
"Storage devices:
\n
"
);
stv
=
stv_transient
;
VCLI_Out
(
cli
,
"
\t
storage.%s = %s
\n
"
,
stv
->
ident
,
stv
->
name
);
VTAILQ_FOREACH
(
stv
,
&
stv_stevedores
,
list
)
VCLI_Out
(
cli
,
"
\t
storage.%s = %s
\n
"
,
stv
->
ident
,
stv
->
name
);
}
/*--------------------------------------------------------------------*/
struct
cli_proto
cli_stv
[]
=
{
{
"storage.list"
,
"storage.list"
,
"List storage devices
\n
"
,
0
,
0
,
""
,
stv_cli_list
},
{
NULL
}
};
/*--------------------------------------------------------------------
/*--------------------------------------------------------------------
* Parse a stevedore argument on the form:
* Parse a stevedore argument on the form:
* [ name '=' ] strategy [ ',' arg ] *
* [ name '=' ] strategy [ ',' arg ] *
...
...
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