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

Fix vgsplit error paths to release vg_to lock.

This commit is contained in:
Dave Wysochanski 2008-04-08 21:38:09 +00:00
parent 54396b890d
commit 9ac3596d63
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.34 - Version 2.02.34 -
=================================== ===================================
Fix vgsplit error paths to release vg_to lock.
Indicate whether or not VG is clustered in vgcreate log message. Indicate whether or not VG is clustered in vgcreate log message.
Mention default --clustered setting in vgcreate man page. Mention default --clustered setting in vgcreate man page.
Add config file overrides to clvmd when it reads the active LVs list. Add config file overrides to clvmd when it reads the active LVs list.

View File

@ -288,11 +288,13 @@ int vgsplit(struct cmd_context *cmd, int argc, char **argv)
if (fill_vg_create_params(cmd, vg_name_to, &vp_new, &vp_def)) { if (fill_vg_create_params(cmd, vg_name_to, &vp_new, &vp_def)) {
unlock_vg(cmd, vg_name_from); unlock_vg(cmd, vg_name_from);
unlock_vg(cmd, vg_name_to);
return EINVALID_CMD_LINE; return EINVALID_CMD_LINE;
} }
if (validate_vg_create_params(cmd, &vp_new)) { if (validate_vg_create_params(cmd, &vp_new)) {
unlock_vg(cmd, vg_name_from); unlock_vg(cmd, vg_name_from);
unlock_vg(cmd, vg_name_to);
return EINVALID_CMD_LINE; return EINVALID_CMD_LINE;
} }