diff options
Diffstat (limited to 'tools/vgremove.c')
-rw-r--r-- | tools/vgremove.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/vgremove.c b/tools/vgremove.c index 1dce41f24..98336362d 100644 --- a/tools/vgremove.c +++ b/tools/vgremove.c @@ -54,6 +54,9 @@ static int vgremove_single(struct cmd_context *cmd, const char *vg_name, } } + if (!lvmlockd_free_vg_before(cmd, vg)) + return_ECMD_FAILED; + if (!force && !vg_remove_check(vg)) return_ECMD_FAILED; @@ -62,6 +65,8 @@ static int vgremove_single(struct cmd_context *cmd, const char *vg_name, if (!vg_remove(vg)) return_ECMD_FAILED; + lvmlockd_free_vg_final(cmd, vg); + return ECMD_PROCESSED; } |