Report 's' for shared snapshots. Signed-off-by: Mikulas Patocka --- lib/report/report.c | 7 +++++++ 1 file changed, 7 insertions(+) Index: LVM2.2.02.54/lib/report/report.c =================================================================== --- LVM2.2.02.54.orig/lib/report/report.c 2009-10-26 11:01:57.000000000 +0100 +++ LVM2.2.02.54/lib/report/report.c 2009-10-29 20:46:29.000000000 +0100 @@ -311,6 +311,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 */ @@ -530,6 +532,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);