diff options
Diffstat (limited to 'lib/locking/lvmlockd.h')
-rw-r--r-- | lib/locking/lvmlockd.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/lib/locking/lvmlockd.h b/lib/locking/lvmlockd.h index 95b85256f..f2ab1a826 100644 --- a/lib/locking/lvmlockd.h +++ b/lib/locking/lvmlockd.h @@ -63,7 +63,7 @@ static inline int is_dlock_type(const char *lock_type) #ifdef LVMLOCKD_SUPPORT -/* daemon management */ +/* lvmlockd connection and communication */ void lvmlockd_init(struct cmd_context *); void lvmlockd_set_active(int); @@ -72,6 +72,25 @@ void lvmlockd_disconnect(void); void lvmlockd_connect_or_warn(void); int lvmlockd_connected(void); +int lvmlockd_send(struct cmd_context *cmd, + const char *cmd_name, + const char *req_name, + const char *vg_name, + const char *vg_lock_type, + const char *vg_lock_args, + const char *lv_name, + const char *lv_lock_args, + const char *mode, + const char *opts, + int *result, + uint32_t *result_flags); + +/* vgcreate/vgremove use init/free */ + +int lvmlockd_init_vg(struct cmd_context *cmd, struct volume_group *vg); +int lvmlockd_free_vg_before(struct cmd_context *cmd, struct volume_group *vg); +void lvmlockd_free_vg_final(struct cmd_context *cmd, struct volume_group *vg); + #else /* LVMLOCKD_SUPPORT */ #define lvmlockd_init(cmd) do { } while (0) @@ -81,6 +100,12 @@ int lvmlockd_connected(void); #define lvmlockd_connect_or_warn() do { } while (0) #define lvmlockd_connected (0) +#define lvmlockd_send(cmd, cmd_name, req_name, vg_name, vg_lock_type, vg_lock_args, lv_name, lv_lock_args, mode, opts, result, result_flags) (1) + +#define lvmlockd_init_vg(cmd, vg) (0) +#define lvmlockd_free_vg_before(cmd, vg) (0) +#define lvmlockd_free_vg_final(cmd, vg) do { } while (0) + #endif /* LVMLOCKD_SUPPORT */ #endif |