return id_format_and_copy(lv->vg->vgmem, &lv->lvid.id[1]);
}
+char *lv_tags_dup(const struct logical_volume *lv)
+{
+ return tags_format_and_copy(lv->vg->vgmem, &lv->tags);
+}
+
uint64_t lv_size(const struct logical_volume *lv)
{
return lv->size;
uint64_t lv_size(const struct logical_volume *lv);
char *lv_attr_dup(struct dm_pool *mem, const struct logical_volume *lv);
char *lv_uuid_dup(const struct logical_volume *lv);
+char *lv_tags_dup(const struct logical_volume *lv);
#endif
return id_format_and_copy(pv->vg->vgmem, &pv->id);
}
+char *pv_tags_dup(const struct physical_volume *pv)
+{
+ return tags_format_and_copy(pv->vg->vgmem, &pv->tags);
+}
+
const struct format_type *pv_format_type(const struct physical_volume *pv)
{
return pv_field(pv, fmt);
char *pv_attr_dup(struct dm_pool *mem, const struct physical_volume *pv);
const char *pv_dev_name(const struct physical_volume *pv);
char *pv_uuid_dup(const struct physical_volume *pv);
+char *pv_tags_dup(const struct physical_volume *pv);
uint64_t pv_size(const struct physical_volume *pv);
uint64_t pv_size_field(const struct physical_volume *pv);
uint64_t pv_dev_size(const struct physical_volume *pv);
return id_format_and_copy(vg->vgmem, &vg->id);
}
+char *vg_tags_dup(const struct volume_group *vg)
+{
+ return tags_format_and_copy(vg->vgmem, &vg->tags);
+}
+
uint32_t vg_seqno(const struct volume_group *vg)
{
return vg->seqno;
uint64_t vg_mda_free(const struct volume_group *vg);
char *vg_attr_dup(struct dm_pool *mem, const struct volume_group *vg);
char *vg_uuid_dup(const struct volume_group *vg);
+char *vg_tags_dup(const struct volume_group *vg);
#endif