summaryrefslogtreecommitdiff
path: root/lib/locking/lvmlockd.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/locking/lvmlockd.h')
-rw-r--r--lib/locking/lvmlockd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/locking/lvmlockd.h b/lib/locking/lvmlockd.h
index 19c3d6146..5374204e5 100644
--- a/lib/locking/lvmlockd.h
+++ b/lib/locking/lvmlockd.h
@@ -99,6 +99,11 @@ int lockd_init_vg(struct cmd_context *cmd, struct volume_group *vg);
int lockd_free_vg_before(struct cmd_context *cmd, struct volume_group *vg);
void lockd_free_vg_final(struct cmd_context *cmd, struct volume_group *vg);
+/* vgrename */
+
+int lockd_rename_vg_before(struct cmd_context *cmd, struct volume_group *vg);
+int lockd_rename_vg_final(struct cmd_context *cmd, struct volume_group *vg, int success);
+
/* start and stop the lockspace for a vg */
int lockd_start_vg(struct cmd_context *cmd, struct volume_group *vg);
@@ -144,6 +149,9 @@ int lockd_init_lv_args(struct cmd_context *cmd, struct volume_group *vg,
#define lockd_free_vg_before(cmd, vg) (1)
#define lockd_free_vg_final(cmd, vg) do { } while (0)
+#define lockd_rename_vg_before(cmd, vg) (1)
+#define lockd_rename_vg_final(cmd, vg, success) (1)
+
#define lockd_start_vg(cmd, vg) (1)
#define lockd_stop_vg(cmd, vg) (1)
#define lockd_start_wait(cmd) (1)