1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

report: revert lvs origin_size sort order change

Reinstate the previous sort order for origin_size, so that LVs with
an empty origin_size continue to appear at the start of the list
not the end.

Ref. 9d445f371c
This commit is contained in:
Alasdair G Kergon 2013-06-15 01:24:16 +01:00
parent 53b405093b
commit 538acd56f1

View File

@ -35,6 +35,7 @@ struct lvm_report_object {
static const uint64_t _minusone64 = UINT64_C(-1); static const uint64_t _minusone64 = UINT64_C(-1);
static const int32_t _minusone32 = INT32_C(-1); static const int32_t _minusone32 = INT32_C(-1);
static const uint64_t _zero64 = UINT64_C(0);
/* /*
* Data-munging functions to prepare each data type for display and sorting * Data-munging functions to prepare each data type for display and sorting
@ -608,7 +609,7 @@ static int _originsize_disp(struct dm_report *rh, struct dm_pool *mem,
uint64_t size; uint64_t size;
if (!(size = lv_origin_size(lv))) { if (!(size = lv_origin_size(lv))) {
dm_report_field_set_value(field, "", NULL); dm_report_field_set_value(field, "", &_zero64);
return 1; return 1;
} }