mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
gcc: avoid shadowing activate_lv
Function activate_lv() is already declared, avoid its shadowing. activate.h:133: warning: shadowed declaration is here
This commit is contained in:
parent
1aac59f82a
commit
0d61a17152
@ -2476,19 +2476,19 @@ out:
|
||||
|
||||
/* Test if LV passes filter */
|
||||
int lv_activation_filter(struct cmd_context *cmd, const char *lvid_s,
|
||||
int *activate_lv, const struct logical_volume *lv)
|
||||
int *activate, const struct logical_volume *lv)
|
||||
{
|
||||
if (!activation()) {
|
||||
*activate_lv = 1;
|
||||
*activate = 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!_passes_activation_filter(cmd, lv)) {
|
||||
log_verbose("Not activating %s since it does not pass "
|
||||
"activation filter.", display_lvname(lv));
|
||||
*activate_lv = 0;
|
||||
*activate = 0;
|
||||
} else
|
||||
*activate_lv = 1;
|
||||
*activate = 1;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@ -162,10 +162,10 @@ int lv_info_with_seg_status(struct cmd_context *cmd,
|
||||
int lv_check_not_in_use(const struct logical_volume *lv, int error_if_used);
|
||||
|
||||
/*
|
||||
* Returns 1 if activate_lv has been set: 1 = activate; 0 = don't.
|
||||
* Returns 1 if activate has been set: 1 = activate; 0 = don't.
|
||||
*/
|
||||
int lv_activation_filter(struct cmd_context *cmd, const char *lvid_s,
|
||||
int *activate_lv, const struct logical_volume *lv);
|
||||
int *activate, const struct logical_volume *lv);
|
||||
/*
|
||||
* Checks against the auto_activation_volume_list and
|
||||
* returns 1 if the LV should be activated, 0 otherwise.
|
||||
|
Loading…
Reference in New Issue
Block a user