Skip to contentSkip to conversation

master - lvresize: fix when compiled without lvmlockd

PATCH David Teigland 1 participant 1 message Apr 2, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2f471f0184aaac7499a33b32efb708aa8153a2af
Commit:        2f471f0184aaac7499a33b32efb708aa8153a2af
Parent:        27cfeb1d39b2515b9c4b81a1d217e05ae954a68b
Author:        David Teigland <[email protected]>
AuthorDate:    Tue Apr 2 10:50:12 2019 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Tue Apr 2 10:51:38 2019 -0500

lvresize: fix when compiled without lvmlockd

The no-op result of lockd_lv_resize should be success.

---
 lib/locking/lvmlockd.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/locking/lvmlockd.h +1 -1
index ecd39bb..e11ea15 100644
@@ -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,