Report 's' for shared snapshots. Signed-off-by: Mikulas Patocka --- lib/report/report.c | 7 +++++++ 1 file changed, 7 insertions(+) Index: LVM2.2.02.60/lib/report/report.c =================================================================== --- LVM2.2.02.60.orig/lib/report/report.c 2010-01-13 02:55:44.000000000 +0100 +++ LVM2.2.02.60/lib/report/report.c 2010-02-08 20:37:38.000000000 +0100 @@ -302,6 +302,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 */ @@ -528,6 +530,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);