1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix --addtag to drop @ prefix from name

This commit is contained in:
Alasdair Kergon 2007-11-15 21:59:11 +00:00
parent 57d921e953
commit b6f4f0c748
3 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.29 -
==================================
Fix --addtag to drop @ prefix from name.
Stop clvmd going haywire if a pre_function fails.
Convert some vg_reads into vg_lock_and_reads.
Avoid nested vg_reads when processing PVs in VGs and fix associated locking.

View File

@ -333,6 +333,8 @@ int tag_arg(struct cmd_context *cmd __attribute((unused)), struct arg *a)
if (!validate_name(pos))
return 0;
a->value = pos;
return 1;
}

View File

@ -243,6 +243,7 @@ int vgsplit(struct cmd_context *cmd, int argc, char **argv)
if ((vg_to = vg_lock_and_read(cmd, vg_name_to, NULL,
LCK_VG_WRITE | LCK_NONBLOCK,
0, 0))) {
/* FIXME Remove this restriction */
log_error("Volume group \"%s\" already exists", vg_name_to);
unlock_vg(cmd, vg_name_from);
return ECMD_FAILED;