1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-02 04:22:02 +03:00

lvmetad: document and tidy cmdline args

Try to bring the lvmetad usage text and man page closer to the code.
There seem to be 3 useful ways to use -d with lvmetad at the moment:
  -d all
  -d wire
  -d debug
(They can also be comma-separated like -d wire,debug.)
Prior to the last release, -d, -dd and -ddd were supported.
Fail if an unrecognised debug arg is supplied on the command line.
Change -V to report the same version as the lvm binary: previously it
just reported version 0.
This commit is contained in:
Alasdair G Kergon
2012-10-15 02:06:27 +01:00
parent 2393b468a4
commit a0e60d27ff
4 changed files with 31 additions and 17 deletions

View File

@ -506,7 +506,8 @@ void daemon_start(daemon_state s)
kill(getppid(), SIGTERM);
if (s.daemon_init)
s.daemon_init(&s);
if (!s.daemon_init(&s))
failed = 1;
while (!_shutdown_requested && !failed) {
fd_set in;
@ -525,7 +526,8 @@ void daemon_start(daemon_state s)
perror("unlink error");
if (s.daemon_fini)
s.daemon_fini(&s);
if (!s.daemon_fini(&s))
failed = 1;
INFO(&s, "%s shutting down", s.name);