}
#endif /* DEVMAPPER_SUPPORT */
-static struct segtype_handler _cache_pool_ops = {
+static const struct segtype_handler _cache_pool_ops = {
.display = _cache_display,
.text_import = _cache_pool_text_import,
.text_import_area_count = _cache_pool_text_import_area_count,
}
#endif /* DEVMAPPER_SUPPORT */
-static struct segtype_handler _cache_ops = {
+static const struct segtype_handler _cache_ops = {
.display = _cache_display,
.text_import = _cache_text_import,
.text_import_area_count = _cache_text_import_area_count,
free(segtype);
}
-static struct segtype_handler _error_ops = {
+static const struct segtype_handler _error_ops = {
.merge_segments = _errseg_merge_segments,
#ifdef DEVMAPPER_SUPPORT
.add_target_line = _errseg_add_target_line,
}
#endif /* DEVMAPPER_SUPPORT */
-static struct segtype_handler _integrity_ops = {
+static const struct segtype_handler _integrity_ops = {
.display = _integrity_display,
.text_import = _integrity_text_import,
.text_import_area_count = _integrity_text_import_area_count,
uint64_t flags;
uint32_t parity_devs; /* Parity drives required by segtype */
- struct segtype_handler *ops;
+ const struct segtype_handler *ops;
const char *name;
const char *dso;
free(segtype);
}
-static struct segtype_handler _mirrored_ops = {
+static const struct segtype_handler _mirrored_ops = {
.display = _mirrored_display,
.text_import_area_count = _mirrored_text_import_area_count,
.text_import = _mirrored_text_import,
# endif /* DMEVENTD */
#endif /* DEVMAPPER_SUPPORT */
-static struct segtype_handler _raid_ops = {
+static const struct segtype_handler _raid_ops = {
.display = _raid_display,
.text_import_area_count = _raid_text_import_area_count,
.text_import = _raid_text_import,
free(segtype);
}
-static struct segtype_handler _snapshot_ops = {
+static const struct segtype_handler _snapshot_ops = {
.target_name = _snap_target_name,
.text_import = _snap_text_import,
.text_export = _snap_text_export,
free(segtype);
}
-static struct segtype_handler _striped_ops = {
+static const struct segtype_handler _striped_ops = {
.name = _striped_name,
.display = _striped_display,
.text_import_area_count = _striped_text_import_area_count,
free(segtype);
}
-static struct segtype_handler _thin_pool_ops = {
+static const struct segtype_handler _thin_pool_ops = {
.display = _thin_pool_display,
.text_import = _thin_pool_text_import,
.text_import_area_count = _thin_pool_text_import_area_count,
.destroy = _thin_destroy,
};
-static struct segtype_handler _thin_ops = {
+static const struct segtype_handler _thin_ops = {
.display = _thin_display,
.text_import = _thin_text_import,
.text_export = _thin_text_export,
#endif
{
static const struct {
- struct segtype_handler *ops;
+ const struct segtype_handler *ops;
const char name[16];
uint32_t flags;
} reg_segtypes[] = {
free(segtype);
}
-static struct segtype_handler _unknown_ops = {
+static const struct segtype_handler _unknown_ops = {
.text_import = _unknown_text_import,
.text_export = _unknown_text_export,
.destroy = _unknown_destroy,
free((void *)segtype);
}
-static struct segtype_handler _vdo_ops = {
+static const struct segtype_handler _vdo_ops = {
.name = _vdo_name,
.display = _vdo_display,
.text_import = _vdo_text_import,
.destroy = _vdo_pool_destroy,
};
-static struct segtype_handler _vdo_pool_ops = {
+static const struct segtype_handler _vdo_pool_ops = {
.name = _vdo_pool_name,
.display = _vdo_pool_display,
.text_import = _vdo_pool_text_import,
}
#endif /* DEVMAPPER_SUPPORT */
-static struct segtype_handler _writecache_ops = {
+static const struct segtype_handler _writecache_ops = {
.display = _writecache_display,
.text_import = _writecache_text_import,
.text_import_area_count = _writecache_text_import_area_count,
free(segtype);
}
-static struct segtype_handler _zero_ops = {
+static const struct segtype_handler _zero_ops = {
.merge_segments = _zero_merge_segments,
#ifdef DEVMAPPER_SUPPORT
.add_target_line = _zero_add_target_line,