mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmlockd: fix compilation with disabled lvmlockd
With updated functionality for lvmlockd some prototypes needs to be updated for builds without lvmlockd.
This commit is contained in:
parent
ad1d688734
commit
82d145a372
@ -55,10 +55,10 @@
|
|||||||
#define LOCKOPT_ADOPTLV 0x00001000
|
#define LOCKOPT_ADOPTLV 0x00001000
|
||||||
#define LOCKOPT_ADOPT 0x00002000
|
#define LOCKOPT_ADOPT 0x00002000
|
||||||
|
|
||||||
void lockd_lockopt_get_flags(const char *str, uint32_t *flags);
|
|
||||||
|
|
||||||
#ifdef LVMLOCKD_SUPPORT
|
#ifdef LVMLOCKD_SUPPORT
|
||||||
|
|
||||||
|
void lockd_lockopt_get_flags(const char *str, uint32_t *flags);
|
||||||
|
|
||||||
struct lvresize_params;
|
struct lvresize_params;
|
||||||
struct lvcreate_params;
|
struct lvcreate_params;
|
||||||
|
|
||||||
@ -126,6 +126,10 @@ int lockd_query_lv(struct cmd_context *cmd, struct logical_volume *lv, int *ex,
|
|||||||
|
|
||||||
#else /* LVMLOCKD_SUPPORT */
|
#else /* LVMLOCKD_SUPPORT */
|
||||||
|
|
||||||
|
static inline void lockd_lockopt_get_flags(const char *str, uint32_t *flags)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static inline void lvmlockd_set_socket(const char *sock)
|
static inline void lvmlockd_set_socket(const char *sock)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -156,7 +160,7 @@ static inline int lockd_init_vg(struct cmd_context *cmd, struct volume_group *vg
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int lockd_free_vg_before(struct cmd_context *cmd, struct volume_group *vg, int changing)
|
static inline int lockd_free_vg_before(struct cmd_context *cmd, struct volume_group *vg, int changing, int yes)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user