Report 's' for shared snapshots. Signed-off-by: Mikulas Patocka --- lib/report/report.c | 7 +++++++ 1 file changed, 7 insertions(+) Index: LVM2.2.02.69/lib/report/report.c =================================================================== --- LVM2.2.02.69.orig/lib/report/report.c 2010-06-28 22:40:01.000000000 +0200 +++ LVM2.2.02.69/lib/report/report.c 2010-07-01 17:07:42.000000000 +0200 @@ -303,6 +303,8 @@ static int _lvstatus_disp(struct dm_repo 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 */ @@ -553,6 +555,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);