static struct utsname _utsname;
static int _utsinit = 0;
+int lv_is_historical(const struct logical_volume *lv)
+{
+ return lv->this_glv && lv->this_glv->is_historical;
+}
+
static struct dm_list *_format_pvsegs(struct dm_pool *mem, const struct lv_segment *seg,
int range_format, int metadata_areas_only,
int mark_hidden)
/* Test if given LV is visible from user's perspective */
int lv_is_visible(const struct logical_volume *lv);
+int lv_is_historical(const struct logical_volume *lv);
+
int pv_is_in_vg(struct volume_group *vg, struct physical_volume *pv);
/* Given a cow or thin LV, return the snapshot lv_segment that uses it */
int lv_is_visible(const struct logical_volume *lv)
{
+ if (lv_is_historical(lv))
+ return 1;
+
if (lv->status & SNAPSHOT)
return 0;