LVM2/tools vgcreate.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2010-02-24 18:15:40
Modified files:
tools : vgcreate.c
Log message:
Refactor vgcreate to call new vg_change_tag() function.
Signed-off-by Dave Wysochanski <[email protected]>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgcreate.c.diff?cvsroot=lvm2&r1=1.77&r2=1.78
tools/vgcreate.c +2 -10
@@ -94,16 +94,8 @@ 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)) {