mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
Avoid an extraneous orphans unlock in vgextend --restoremissing.
This commit is contained in:
parent
06ee3f7259
commit
123b90ce05
@ -133,6 +133,7 @@ int vgextend(struct cmd_context *cmd, int argc, char **argv)
|
|||||||
r = ECMD_PROCESSED;
|
r = ECMD_PROCESSED;
|
||||||
|
|
||||||
bad:
|
bad:
|
||||||
|
if (!arg_count(cmd, restoremissing_ARG))
|
||||||
unlock_vg(cmd, VG_ORPHANS);
|
unlock_vg(cmd, VG_ORPHANS);
|
||||||
unlock_and_release_vg(cmd, vg, vg_name);
|
unlock_and_release_vg(cmd, vg, vg_name);
|
||||||
return r;
|
return r;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user