mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
Fix --addtag to drop @ prefix from name
This commit is contained in:
parent
57d921e953
commit
b6f4f0c748
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.29 -
|
Version 2.02.29 -
|
||||||
==================================
|
==================================
|
||||||
|
Fix --addtag to drop @ prefix from name.
|
||||||
Stop clvmd going haywire if a pre_function fails.
|
Stop clvmd going haywire if a pre_function fails.
|
||||||
Convert some vg_reads into vg_lock_and_reads.
|
Convert some vg_reads into vg_lock_and_reads.
|
||||||
Avoid nested vg_reads when processing PVs in VGs and fix associated locking.
|
Avoid nested vg_reads when processing PVs in VGs and fix associated locking.
|
||||||
|
@ -333,6 +333,8 @@ int tag_arg(struct cmd_context *cmd __attribute((unused)), struct arg *a)
|
|||||||
if (!validate_name(pos))
|
if (!validate_name(pos))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
a->value = pos;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
if ((vg_to = vg_lock_and_read(cmd, vg_name_to, NULL,
|
||||||
LCK_VG_WRITE | LCK_NONBLOCK,
|
LCK_VG_WRITE | LCK_NONBLOCK,
|
||||||
0, 0))) {
|
0, 0))) {
|
||||||
|
/* FIXME Remove this restriction */
|
||||||
log_error("Volume group \"%s\" already exists", vg_name_to);
|
log_error("Volume group \"%s\" already exists", vg_name_to);
|
||||||
unlock_vg(cmd, vg_name_from);
|
unlock_vg(cmd, vg_name_from);
|
||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user