summaryrefslogtreecommitdiffstats
path: root/libdm/libdm-report.c
Commit message (Collapse)AuthorAgeFilesLines
* check: add internal errors for unexpected pathsZdenek Kabelac2012-08-231-0/+5
| | | | | | | | | | | | | | | | | | | | Adding couple INTERNAL_ERROR reports for unwanted parameters: Ensure the 'top' metadata node cannot be NULL for lvmetad. Make obvious vginfo2 cannot be NULL. Report internal error if handler and vg is undefined. Check for handle in poll_vg(). Ensure seg is not NULL in dev_manager_transient(). Report missing read_ahead for _lv_read_ahead_single(). Check for report handler in dm_report_object(). Check missing VG in _vgreduce_single().
* Do not crash for NULL sort_keyZdenek Kabelac2012-02-101-0/+3
| | | | | Guard against NULL pointer for sort_key and let it behave like an empty string would have been passed in (i.e. no key).
* Remove meaningless const type qualifiers on cast typeZdenek Kabelac2011-08-041-3/+3
| | | | Static analyzis noticed we do not really need them - so removing.
* Fix 'pvs -o pv_all' to include label fields. (Also removed recursion.)Alasdair Kergon2011-06-121-18/+17
|
* Fix some unmatching sign comparation gcc warningsZdenek Kabelac2011-04-081-4/+4
| | | | Simple replacement for unsigned type - usually in for() loops.
* Handle decimal digits with --units instead of ignoring them silently.Alasdair Kergon2011-02-181-4/+4
| | | | Fix remaining warnings and compile with -Wpointer-arith.
* API change - support more const argZdenek Kabelac2011-02-181-1/+1
| | | | | | | | | As dm_report_field_string() doesn't modify content of data pointer, it can be marked as const. It's slight API change - but doesn't require any change on the user side and supports wider range of arguments without const casting. (i.e. we may use as paramater const lv struct this way: &lv->name)
* Initialize pool object for each rowZdenek Kabelac2011-01-251-5/+5
| | | | | | | | Fix assert abort of dmsetup (when compiled with pool debug) dmsetup splitname --nameprefixes --noheadings --rows gvg-a2 Move pool begin in the inner loop - otherwise it would using already 'ended' pool object.
* Fix _output_field crash from field_id free with DEBUG_MEM. (Phillip Susi)Alasdair Kergon2010-11-191-1/+1
|
* Use dm_strdup/dm_free instead of strdup/free.Peter Rajnoha2010-11-011-3/+3
|
* Allocate buffer for reporting functions dynamically to support long outputs.Peter Rajnoha2010-11-011-10/+42
| | | | | | | | | | | | | Fix memory leak of field_id in _output_field function. There's been a patch added recently to use dynamic allocation for metadata tags buffer to remove the 4k limit (for writing metadata out). However, when using reporting commands like vgs and lvs, we still need to fix libdm reporting functions themselves to support such long outputs. So the buffer used in those reporting functions is dynamic now. The patch also includes a fix for field_id memory leak which was found in the _output_field function.
* Add dm_zalloc and use it and dm_pool_zalloc throughout.Alasdair Kergon2010-09-301-2/+1
|
* Remove C++ private keyword from headers.Milan Broz2010-06-161-2/+2
| | | | Add extern C definition for libdevmapper, lvm2app and lvm2cmd.
* Fix dm_report_field_uint64 to really use 64bit.Zdenek Kabelac2010-02-151-4/+4
| | | | (function is currently not in use)
* * add more 'const' - fixes gcc constness warningZdenek Kabelac2010-02-151-2/+2
|
* Add missing items to WHATS_NEW files.Alasdair Kergon2010-01-111-1/+1
| | | | Continue to use 'field' to describe reporting elements.
* Error message prints unrecognized key.Zdenek Kabelac2010-01-071-1/+1
|
* Show all fields for 'dmsetup info -c -o all'.Zdenek Kabelac2010-01-071-1/+4
|
* Separate PV label attributes which do not need parse metadata when reporting.Milan Broz2009-02-091-3/+16
| | | | | | | | | | When reporting explicitly label attributes (pv_uuid for example), we do not need to read metadata. This patch separate the label fileds and removes scan_vgs_for_pvs in process_each_pv() if not needed. (There should be no user visible change in output.)
* Rename _parse_options() to _parse_fields() for naming consistency.Dave Wysochanski2009-01-191-6/+6
| | | | | | | | | In libdm, we only ever use 'fields', while the tools use 'options' and 'fields' interchangeably. Ideally it would be good to use 'fields' consistently everywhere. However, 'options' most likely comes from the tool commandline '-o' and '--options' which cannot be changed.
* Add <report_type>_all to help text.Alasdair Kergon2009-01-101-0/+8
|
* Add an "all" field which expands to all fields of the report type.Alasdair Kergon2009-01-101-17/+82
| | | | | | | | | | | | | | For example in LVM2, "pv_all" gives all PV fields. "seg_all" gives all LV segment fields. "all" gives all fields of the final report type. I think this is more useful than just adding the current prefix. So "lvs -o seg_all" gives all the LV segment fields, whilst "lvs --segments -o all" adds in LV and VG fields too. "lvs -o all -O vg_name" has report type LVS+VGS so includes all LV and all VG fields.
* Right, a simple build (without options) is working again.Alasdair Kergon2008-11-031-39/+39
|
* more tweaking to get things to compile - dmlib.h for log fns, list.hAlasdair Kergon2008-11-031-1/+1
|
* Split out dm-logging.h from log.hAlasdair Kergon2008-10-301-3/+1
|
* Underline longer report help text headings.Alasdair Kergon2008-06-251-2/+1
|
* Cope with missing field values.Alasdair Kergon2008-06-251-5/+11
|
* Add --rows to dmsetup.Alasdair Kergon2008-06-241-81/+159
|
* dmsetup --unquotedAlasdair Kergon2008-06-241-2/+9
|
* switch to single quotes rather than double for nameprefixesAlasdair Kergon2008-06-061-2/+2
|
* Add field name prefix option to reporting functions.Alasdair Kergon2008-04-201-0/+59
|
* Calculate string size within dm_pool_grow_object.Alasdair Kergon2008-04-191-8/+4
|
* Use log_warn for reporting field help text instead of log_print.Alasdair Kergon2008-01-201-7/+7
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-211-5/+4
|
* Avoid trailing separator in reports when there are hidden sort fields.Alasdair Kergon2007-04-271-1/+9
|
* Introduce _add_field() and _is_same_field() to libdm-report.c.Alasdair Kergon2007-04-191-48/+60
|
* Fix a few leaks in reporting error paths.Alasdair Kergon2007-02-141-2/+7
|
* Use fixed-size fields in report interface.Alasdair Kergon2007-01-291-2/+2
|
* Adjust report field help description layout.Alasdair Kergon2007-01-241-1/+6
|
* fix earlier checkinAlasdair Kergon2007-01-231-1/+2
|
* Add descriptions to reporting field definitions.Alasdair Kergon2007-01-231-1/+6
|
* add a dso-private variable to dmeventd interfaceAlasdair Kergon2007-01-231-19/+28
| | | | more inline docn
* Add dm_event_handler_[gs]et_timeout functions.Alasdair Kergon2007-01-221-15/+15
| | | | Streamline dm_report_field_* interface.
* Suppress 'Unrecognised field' error if report field is 'help'.Alasdair Kergon2007-01-181-2/+3
|
* fix last checkinAlasdair Kergon2007-01-181-1/+1
|
* Some internal renaming.Alasdair Kergon2007-01-181-14/+20
| | | | | Add --separator and --sort to dmsetup (unused as yet). Make alignment flag optional when specifying report fields.
* more little fixesAlasdair Kergon2007-01-161-3/+3
|
* Add basic reporting functions to libdevmapper.Alasdair Kergon2007-01-161-0/+811