Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
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 @@
#include "cache/cache.h"
#include "storage/storage.h"
#include "vcli_priv.h"
#include "vrt.h"
#include "vrt_obj.h"
...
...
@@ -422,30 +421,6 @@ STV_close(void)
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
...
...
bin/varnishd/storage/stevedore_mgt.c
View file @
46b0d2d2
...
...
@@ -42,12 +42,37 @@
#include "storage/storage.h"
#include "vav.h"
#include "vcli_priv.h"
struct
stevedore_head
stv_stevedores
=
VTAILQ_HEAD_INITIALIZER
(
stv_stevedores
);
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:
* [ 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