diff options
author | David Teigland <teigland@redhat.com> | 2015-07-14 14:42:18 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-07-14 14:43:16 -0500 |
commit | 96a883a4541211fc3af09f682854ed88e200c036 (patch) | |
tree | 23b291c4e30f16145597c12aaff6f845394395c0 | |
parent | 9ab6bdce01d7780a9c8f7194bc488032dbf3348f (diff) | |
download | lvm2-96a883a4541211fc3af09f682854ed88e200c036.tar.gz |
metadata: change function name to _allow_extra_system_id
The previous name was misleading since this is not the
primary system_id check, only the "extra" check.
-rw-r--r-- | lib/metadata/metadata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index 3ebcc2dad..56ed3fb12 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -4707,7 +4707,7 @@ static struct volume_group *_recover_vg(struct cmd_context *cmd, return (struct volume_group *)vg; } -static int _allow_system_id(struct cmd_context *cmd, const char *system_id) +static int _allow_extra_system_id(struct cmd_context *cmd, const char *system_id) { const struct dm_config_node *cn; const struct dm_config_value *cv; @@ -4848,7 +4848,7 @@ static int _access_vg_systemid(struct cmd_context *cmd, struct volume_group *vg) /* * A host can access a VG if the VG's system_id is in extra_system_ids list. */ - if (cmd->system_id && _allow_system_id(cmd, vg->system_id)) + if (cmd->system_id && _allow_extra_system_id(cmd, vg->system_id)) return 1; /* |