1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

lockd: fix stub functions for LV locking

The stub functions for lockd LV locking were returning
the wrong result when lvm was compiled without lvmlockd.
This commit is contained in:
David Teigland 2015-07-02 16:33:51 -05:00
parent fe70b03de2
commit e944a9c635

View File

@ -203,19 +203,19 @@ static inline int lockd_lv(struct cmd_context *cmd, struct logical_volume *lv,
static inline int lockd_init_lv(struct cmd_context *cmd, struct volume_group *vg,
struct logical_volume *lv, struct lvcreate_params *lp)
{
return 0;
return 1;
}
static inline int lockd_init_lv_args(struct cmd_context *cmd, struct volume_group *vg,
struct logical_volume *lv, const char *lock_type, const char **lock_args)
{
return 0;
return 1;
}
static inline int lockd_free_lv(struct cmd_context *cmd, struct volume_group *vg,
const char *lv_name, struct id *lv_id, const char *lock_args)
{
return 0;
return 1;
}
static inline const char *lockd_running_lock_type(struct cmd_context *cmd)