mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Make cmd->cmd_line const.
This commit is contained in:
parent
c944836420
commit
7f355587f5
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.49 -
|
Version 2.02.49 -
|
||||||
================================
|
================================
|
||||||
|
Make cmd->cmd_line const.
|
||||||
Fix dev name mismatch in vgcreate man page example.
|
Fix dev name mismatch in vgcreate man page example.
|
||||||
Refactor vg_remove_single for use in liblvm.
|
Refactor vg_remove_single for use in liblvm.
|
||||||
Make all tools consistent with lock ordering - obtain VG_ORPHAN lock second.
|
Make all tools consistent with lock ordering - obtain VG_ORPHAN lock second.
|
||||||
|
@ -795,7 +795,7 @@ int init_lvm(int using_gulm)
|
|||||||
/* Use LOG_DAEMON for syslog messages instead of LOG_USER */
|
/* Use LOG_DAEMON for syslog messages instead of LOG_USER */
|
||||||
init_syslog(LOG_DAEMON);
|
init_syslog(LOG_DAEMON);
|
||||||
openlog("clvmd", LOG_PID, LOG_DAEMON);
|
openlog("clvmd", LOG_PID, LOG_DAEMON);
|
||||||
cmd->cmd_line = (char *)"clvmd";
|
cmd->cmd_line = "clvmd";
|
||||||
|
|
||||||
/* Check lvm.conf is setup for cluster-LVM */
|
/* Check lvm.conf is setup for cluster-LVM */
|
||||||
check_config();
|
check_config();
|
||||||
|
@ -63,7 +63,7 @@ struct cmd_context {
|
|||||||
const char *kernel_vsn;
|
const char *kernel_vsn;
|
||||||
|
|
||||||
unsigned rand_seed;
|
unsigned rand_seed;
|
||||||
char *cmd_line;
|
const char *cmd_line;
|
||||||
struct command *command;
|
struct command *command;
|
||||||
char **argv;
|
char **argv;
|
||||||
unsigned is_long_lived:1; /* Optimises persistent_filter handling */
|
unsigned is_long_lived:1; /* Optimises persistent_filter handling */
|
||||||
|
@ -918,7 +918,7 @@ static void _apply_settings(struct cmd_context *cmd)
|
|||||||
cmd->handles_missing_pvs = 0;
|
cmd->handles_missing_pvs = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *_copy_command_line(struct cmd_context *cmd, int argc, char **argv)
|
static const char *_copy_command_line(struct cmd_context *cmd, int argc, char **argv)
|
||||||
{
|
{
|
||||||
int i, space;
|
int i, space;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user