diff --git a/WHATS_NEW b/WHATS_NEW index 84a35906f..64b811ea8 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Report blank field if the LV doesn't have an origin instead of 0. Do not take a free lv name argument for lvconvert --thinpool option. Avoid flushing thin pool when quering for transaction_id. Add internal function lv_layer() to obtain layer name for LV. diff --git a/lib/report/report.c b/lib/report/report.c index 18334588f..5a4e4dfe6 100644 --- a/lib/report/report.c +++ b/lib/report/report.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2002-2004 Sistina Software, Inc. All rights reserved. - * Copyright (C) 2004-2012 Red Hat, Inc. All rights reserved. + * Copyright (C) 2004-2013 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * @@ -590,7 +590,10 @@ static int _originsize_disp(struct dm_report *rh, struct dm_pool *mem, const struct logical_volume *lv = (const struct logical_volume *) data; uint64_t size; - size = lv_origin_size(lv); + if (!(size = lv_origin_size(lv))) { + dm_report_field_set_value(field, "", NULL); + return 1; + } return _size64_disp(rh, mem, field, &size, private); }