mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Make clvmd -V display the lvm version number too rather than just
the protocol version (which is not that useful and doesn't change very often).
This commit is contained in:
parent
bfd4b01407
commit
3d4159b6bf
@ -3,6 +3,7 @@ Version 2.00.26 -
|
||||
Improve clvmd error reporting during startup.
|
||||
Make clvmd cope with large gaps in node numbers IDs.
|
||||
Make clvmd initialisation cope better with debugging output.
|
||||
clvmd -V now displays lvm version too.
|
||||
|
||||
|
||||
Version 2.00.25 - 29th September 2004
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "clvmd-comms.h"
|
||||
#include "lvm-functions.h"
|
||||
#include "clvm.h"
|
||||
#include "../../tools/version.h"
|
||||
#include "clvmd.h"
|
||||
#include "libdlm.h"
|
||||
#include "system-lv.h"
|
||||
@ -140,8 +141,10 @@ static void usage(char *prog, FILE *file)
|
||||
/* Called to signal the parent how well we got on during initialisation */
|
||||
static void child_init_signal(int status)
|
||||
{
|
||||
write(child_pipe[1], &status, sizeof(status));
|
||||
close(child_pipe[1]);
|
||||
if (child_pipe[1]) {
|
||||
write(child_pipe[1], &status, sizeof(status));
|
||||
close(child_pipe[1]);
|
||||
}
|
||||
if (status)
|
||||
exit(status);
|
||||
}
|
||||
@ -184,7 +187,8 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
|
||||
case 'V':
|
||||
printf("\nCluster LVM Daemon version %d.%d.%d\n\n",
|
||||
printf("Cluster LVM daemon version: %s\n", LVM_VERSION);
|
||||
printf("Protocol version: %d.%d.%d\n",
|
||||
CLVMD_MAJOR_VERSION, CLVMD_MINOR_VERSION,
|
||||
CLVMD_PATCH_VERSION);
|
||||
exit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user