summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2019-04-02 10:50:12 -0500
committerDavid Teigland <teigland@redhat.com>2019-04-02 10:51:38 -0500
commit2f471f0184aaac7499a33b32efb708aa8153a2af (patch)
treea8a0b704461bae4dcf147c366fed86e77f938ee2
parent27cfeb1d39b2515b9c4b81a1d217e05ae954a68b (diff)
downloadlvm2-2f471f0184aaac7499a33b32efb708aa8153a2af.tar.gz
lvresize: fix when compiled without lvmlockd
The no-op result of lockd_lv_resize should be success.
-rw-r--r--lib/locking/lvmlockd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/locking/lvmlockd.h b/lib/locking/lvmlockd.h
index ecd39bbd6..e11ea1575 100644
--- a/lib/locking/lvmlockd.h
+++ b/lib/locking/lvmlockd.h
@@ -215,7 +215,7 @@ static inline int lockd_lv(struct cmd_context *cmd, struct logical_volume *lv,
static inline int lockd_lv_resize(struct cmd_context *cmd, struct logical_volume *lv,
const char *def_mode, uint32_t flags, struct lvresize_params *lp)
{
- return 0;
+ return 1;
}
static inline int lockd_init_lv(struct cmd_context *cmd, struct volume_group *vg,