mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Show all fields for 'dmsetup info -c -o all'.
This commit is contained in:
parent
f760f97a1f
commit
2c352d7b1e
@ -1,5 +1,6 @@
|
||||
Version 1.02.41 -
|
||||
====================================
|
||||
Update code to show all fields for 'dmsetup info -c -o all'.
|
||||
Return error from dm_tree_deactivate_children().
|
||||
Return error from dm_tree_suspend_children().
|
||||
Return error from dm_tree_preload_children() and dm_tree_activate_children().
|
||||
|
@ -26,6 +26,8 @@
|
||||
struct dm_report {
|
||||
struct dm_pool *mem;
|
||||
|
||||
/* To report all available types */
|
||||
#define REPORT_TYPES_ALL UINT32_MAX
|
||||
uint32_t report_types;
|
||||
const char *output_field_name_prefix;
|
||||
const char *field_prefix;
|
||||
@ -379,7 +381,8 @@ static uint32_t _all_match(struct dm_report *rh, const char *field, size_t flen)
|
||||
_all_match(rh, prefixed_all,
|
||||
strlen(prefixed_all));
|
||||
} else
|
||||
return rh->report_types;
|
||||
return (rh->report_types)
|
||||
? rh->report_types : REPORT_TYPES_ALL;
|
||||
}
|
||||
|
||||
for (t = rh->types; t->data_fn; t++) {
|
||||
|
Loading…
Reference in New Issue
Block a user