1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-31 14:50:37 +03:00

Refactor vgcreate to call new vg_change_tag() function.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
Dave Wysochanski 2010-02-24 18:15:40 +00:00
parent f874581701
commit 083687d0fd

View File

@ -94,16 +94,8 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv)
goto bad;
}
if (!(vg->fid->fmt->features & FMT_TAGS)) {
log_error("Volume group format does not support tags");
goto bad;
}
if (!str_list_add(cmd->mem, &vg->tags, tag)) {
log_error("Failed to add tag %s to volume group %s",
tag, vp_new.vg_name);
goto bad;
}
if (!vg_change_tag(vg, tag, 1))
goto_bad;
}
if (vg_is_clustered(vg)) {