mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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.
|
Improve clvmd error reporting during startup.
|
||||||
Make clvmd cope with large gaps in node numbers IDs.
|
Make clvmd cope with large gaps in node numbers IDs.
|
||||||
Make clvmd initialisation cope better with debugging output.
|
Make clvmd initialisation cope better with debugging output.
|
||||||
|
clvmd -V now displays lvm version too.
|
||||||
|
|
||||||
|
|
||||||
Version 2.00.25 - 29th September 2004
|
Version 2.00.25 - 29th September 2004
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
#include "clvmd-comms.h"
|
#include "clvmd-comms.h"
|
||||||
#include "lvm-functions.h"
|
#include "lvm-functions.h"
|
||||||
#include "clvm.h"
|
#include "clvm.h"
|
||||||
|
#include "../../tools/version.h"
|
||||||
#include "clvmd.h"
|
#include "clvmd.h"
|
||||||
#include "libdlm.h"
|
#include "libdlm.h"
|
||||||
#include "system-lv.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 */
|
/* Called to signal the parent how well we got on during initialisation */
|
||||||
static void child_init_signal(int status)
|
static void child_init_signal(int status)
|
||||||
{
|
{
|
||||||
|
if (child_pipe[1]) {
|
||||||
write(child_pipe[1], &status, sizeof(status));
|
write(child_pipe[1], &status, sizeof(status));
|
||||||
close(child_pipe[1]);
|
close(child_pipe[1]);
|
||||||
|
}
|
||||||
if (status)
|
if (status)
|
||||||
exit(status);
|
exit(status);
|
||||||
}
|
}
|
||||||
@ -184,7 +187,8 @@ int main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'V':
|
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_MAJOR_VERSION, CLVMD_MINOR_VERSION,
|
||||||
CLVMD_PATCH_VERSION);
|
CLVMD_PATCH_VERSION);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user