diff options
Diffstat (limited to 'lib/activate/activate.h')
-rw-r--r-- | lib/activate/activate.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/activate/activate.h b/lib/activate/activate.h index a5ee438ad..221510b78 100644 --- a/lib/activate/activate.h +++ b/lib/activate/activate.h @@ -39,6 +39,7 @@ typedef enum { SEG_STATUS_THIN_POOL, SEG_STATUS_VDO_POOL, SEG_STATUS_WRITECACHE, + SEG_STATUS_INTEGRITY, SEG_STATUS_UNKNOWN } lv_seg_status_type_t; @@ -53,6 +54,7 @@ struct lv_seg_status { struct dm_status_thin *thin; struct dm_status_thin_pool *thin_pool; struct dm_status_writecache *writecache; + struct dm_status_integrity *integrity; struct lv_status_vdo vdo_pool; }; }; @@ -72,6 +74,7 @@ struct lv_activate_opts { int no_merging; int send_messages; int skip_in_use; + int integrity_recalculate; unsigned revert; unsigned read_only; unsigned noscan; /* Mark this LV to avoid its scanning. This also @@ -122,9 +125,6 @@ int lv_resume_if_active(struct cmd_context *cmd, const char *lvid_s, unsigned origin_only, unsigned exclusive, unsigned revert, const struct logical_volume *lv); int lv_activate(struct cmd_context *cmd, const char *lvid_s, int exclusive, int noscan, int temporary, const struct logical_volume *lv); -int lv_activate_with_filter(struct cmd_context *cmd, const char *lvid_s, int exclusive, - int noscan, int temporary, const struct logical_volume *lv); -int lv_deactivate(struct cmd_context *cmd, const char *lvid_s, const struct logical_volume *lv); int lv_mknodes(struct cmd_context *cmd, const struct logical_volume *lv); @@ -132,6 +132,8 @@ int lv_deactivate_any_missing_subdevs(const struct logical_volume *lv); int activate_lv(struct cmd_context *cmd, const struct logical_volume *lv); int deactivate_lv(struct cmd_context *cmd, const struct logical_volume *lv); +int activate_lv_opts(struct cmd_context *cmd, const struct logical_volume *lv, + struct lv_activate_opts *laopts); int suspend_lv(struct cmd_context *cmd, const struct logical_volume *lv); int suspend_lv_origin(struct cmd_context *cmd, const struct logical_volume *lv); int resume_lv(struct cmd_context *cmd, const struct logical_volume *lv); @@ -260,6 +262,7 @@ void fs_unlock(void); #define TARGET_NAME_CACHE "cache" #define TARGET_NAME_WRITECACHE "writecache" +#define TARGET_NAME_INTEGRITY "integrity" #define TARGET_NAME_ERROR "error" #define TARGET_NAME_ERROR_OLD "erro" /* Truncated in older kernels */ #define TARGET_NAME_LINEAR "linear" @@ -277,6 +280,7 @@ void fs_unlock(void); #define MODULE_NAME_CLUSTERED_MIRROR "clog" #define MODULE_NAME_CACHE TARGET_NAME_CACHE #define MODULE_NAME_WRITECACHE TARGET_NAME_WRITECACHE +#define MODULE_NAME_INTEGRITY TARGET_NAME_INTEGRITY #define MODULE_NAME_ERROR TARGET_NAME_ERROR #define MODULE_NAME_LOG_CLUSTERED "log-clustered" #define MODULE_NAME_LOG_USERSPACE "log-userspace" |