summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-06-18 15:21:32 -0500
committerDavid Teigland <teigland@redhat.com>2015-06-23 17:08:54 -0500
commitdee2756e80bde999f83f855241abba4a69a0066d (patch)
tree8729ee91b9c95f0610f6be460f0fd920667e5b72
parentec86f1ad20ea25d311764e709f818f7cc197e7e6 (diff)
downloadlvm2-dee2756e80bde999f83f855241abba4a69a0066d.tar.gz
lib lvmlockd: lockstop no error if already stopped
-rw-r--r--lib/locking/lvmlockd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/locking/lvmlockd.c b/lib/locking/lvmlockd.c
index f7bb2c8b8..00448cf9e 100644
--- a/lib/locking/lvmlockd.c
+++ b/lib/locking/lvmlockd.c
@@ -960,8 +960,10 @@ int lockd_stop_vg(struct cmd_context *cmd, struct volume_group *vg)
ret = (result < 0) ? 0 : 1;
}
- if (result == -ENOLS)
+ if (result == -ENOLS) {
+ ret = 1;
goto out;
+ }
if (result == -EBUSY) {
log_error("VG %s stop failed: LVs must first be deactivated", vg->name);