Report 's' for shared snapshots. Signed-off-by: Mikulas Patocka --- lib/metadata/lv.c | 2 ++ lib/report/report.c | 5 +++++ 2 files changed, 7 insertions(+) Index: LVM2.2.02.85/lib/report/report.c =================================================================== --- LVM2.2.02.85.orig/lib/report/report.c 2011-05-20 14:56:51.000000000 +0200 +++ LVM2.2.02.85/lib/report/report.c 2011-05-23 16:07:48.000000000 +0200 @@ -293,6 +293,11 @@ static int _origin_disp(struct dm_report { const struct logical_volume *lv = (const struct logical_volume *) data; + if (lv_is_multisnap_cow(lv)) { + const struct lv_segment *seg = first_seg(lv); + return _lvname_disp(rh, mem, field, seg->origin, private); + } + if (lv_is_cow(lv)) return _lvname_disp(rh, mem, field, origin_from_cow(lv), private); Index: LVM2.2.02.85/lib/metadata/lv.c =================================================================== --- LVM2.2.02.85.orig/lib/metadata/lv.c 2011-05-20 14:57:23.000000000 +0200 +++ LVM2.2.02.85/lib/metadata/lv.c 2011-05-23 16:07:48.000000000 +0200 @@ -311,6 +311,8 @@ char *lv_attr_dup(struct dm_pool *mem, c repstr[0] = 'p'; else if (lv->status & CONVERTING) repstr[0] = 'c'; + else if (lv_is_multisnap_cow(lv)) + repstr[0] = 's'; else if (lv->status & VIRTUAL) repstr[0] = 'v'; /* Origin takes precedence over Mirror */