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

report: add some comments about how string list is stored internally

This commit is contained in:
Peter Rajnoha 2014-11-24 13:14:33 +01:00
parent b9601b8353
commit fb220314ec

View File

@ -376,7 +376,7 @@ static int _report_field_string_list(struct dm_report *rh,
* sort_value->value = report_string; (we'll use the original report_string for indices)
* sort_value->items[0] = {0,3}; (we have 3 items)
* sort_value->items[1] = {0,3}; ("abc")
* sort_value->items[2] = {7,4}; ("defgh")
* sort_value->items[2] = {7,5}; ("defgh")
* sort_value->items[3] = {4,2}; ("xy")
*
* The items alone are always sorted while in report_string they can be