1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

rename var

This commit is contained in:
Alasdair Kergon 2008-09-19 07:12:45 +00:00
parent 47d331d3bb
commit cda354087f
3 changed files with 4 additions and 4 deletions

View File

@ -1027,7 +1027,7 @@ static int _lv_activate(struct cmd_context *cmd, const char *lvid_s,
return 0;
}
if ((!lv->vg->cmd->partial_activate) && (lv->status & PARTIAL_LV)) {
if ((!lv->vg->cmd->partial_activation) && (lv->status & PARTIAL_LV)) {
log_error("Refusing activation of partial LV %s. Use --partial to override.",
lv->name);
return_0;

View File

@ -69,7 +69,7 @@ struct cmd_context {
unsigned is_static:1; /* Static binary? */
unsigned is_long_lived:1; /* Optimises persistent_filter handling */
unsigned handles_missing_pvs:1;
unsigned partial_activate:1;
unsigned partial_activation:1;
struct dev_filter *filter;
int dump_filter; /* Dump filter when exiting? */

View File

@ -710,10 +710,10 @@ static int _get_settings(struct cmd_context *cmd)
cmd->current_settings.archive = arg_int_value(cmd, autobackup_ARG, cmd->current_settings.archive);
cmd->current_settings.backup = arg_int_value(cmd, autobackup_ARG, cmd->current_settings.backup);
cmd->current_settings.cache_vgmetadata = cmd->command->flags & CACHE_VGMETADATA ? 1 : 0;
cmd->partial_activate = 0;
cmd->partial_activation = 0;
if (arg_count(cmd, partial_ARG)) {
cmd->partial_activate = 1;
cmd->partial_activation = 1;
log_print("Partial mode. Incomplete volume groups will "
"be activated read-only.");
}