}
static int _field_set_string_list(struct dm_report *rh, struct dm_report_field *field,
- const struct dm_list *list, void *private)
+ const struct dm_list *list, void *private, int sorted)
{
struct cmd_context *cmd = (struct cmd_context *) private;
- return dm_report_field_string_list(rh, field, list, cmd->report_list_item_separator);
+ return sorted ? dm_report_field_string_list(rh, field, list, cmd->report_list_item_separator)
+ : dm_report_field_string_list_unsorted(rh, field, list, cmd->report_list_item_separator);
}
/*
{
const struct dm_list *tagsl = (const struct dm_list *) data;
- return _field_set_string_list(rh, field, tagsl, private);
+ return _field_set_string_list(rh, field, tagsl, private, 1);
}
static int _modules_disp(struct dm_report *rh, struct dm_pool *mem,
if (!(list_lv_modules(mem, lv, modules)))
return_0;
- return _field_set_string_list(rh, field, modules, private);
+ return _field_set_string_list(rh, field, modules, private, 1);
}
static int _lvprofile_disp(struct dm_report *rh, struct dm_pool *mem,
return 0;
}
- return _field_set_string_list(rh, field, lv_layout, private);
+ return _field_set_string_list(rh, field, lv_layout, private, 0);
}
static int _lvrole_disp(struct dm_report *rh, struct dm_pool *mem,
return 0;
}
- return _field_set_string_list(rh, field, lv_role, private);
+ return _field_set_string_list(rh, field, lv_role, private, 0);
}
static int _lvinitialimagesync_disp(struct dm_report *rh, struct dm_pool *mem,