From 96a883a4541211fc3af09f682854ed88e200c036 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Tue, 14 Jul 2015 14:42:18 -0500 Subject: [PATCH] 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. --- lib/metadata/metadata.c | 4 ++-- 1 file 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; /*