Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Do not crash for NULL sort_key | Zdenek Kabelac | 2012-02-10 | 1 | -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 type | Zdenek Kabelac | 2011-08-04 | 1 | -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 Kergon | 2011-06-12 | 1 | -18/+17 |
| | |||||
* | Fix some unmatching sign comparation gcc warnings | Zdenek Kabelac | 2011-04-08 | 1 | -4/+4 |
| | | | | Simple replacement for unsigned type - usually in for() loops. | ||||
* | Handle decimal digits with --units instead of ignoring them silently. | Alasdair Kergon | 2011-02-18 | 1 | -4/+4 |
| | | | | Fix remaining warnings and compile with -Wpointer-arith. | ||||
* | API change - support more const arg | Zdenek Kabelac | 2011-02-18 | 1 | -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 row | Zdenek Kabelac | 2011-01-25 | 1 | -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 Kergon | 2010-11-19 | 1 | -1/+1 |
| | |||||
* | Use dm_strdup/dm_free instead of strdup/free. | Peter Rajnoha | 2010-11-01 | 1 | -3/+3 |
| | |||||
* | Allocate buffer for reporting functions dynamically to support long outputs. | Peter Rajnoha | 2010-11-01 | 1 | -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 Kergon | 2010-09-30 | 1 | -2/+1 |
| | |||||
* | Remove C++ private keyword from headers. | Milan Broz | 2010-06-16 | 1 | -2/+2 |
| | | | | Add extern C definition for libdevmapper, lvm2app and lvm2cmd. | ||||
* | Fix dm_report_field_uint64 to really use 64bit. | Zdenek Kabelac | 2010-02-15 | 1 | -4/+4 |
| | | | | (function is currently not in use) | ||||
* | * add more 'const' - fixes gcc constness warning | Zdenek Kabelac | 2010-02-15 | 1 | -2/+2 |
| | |||||
* | Add missing items to WHATS_NEW files. | Alasdair Kergon | 2010-01-11 | 1 | -1/+1 |
| | | | | Continue to use 'field' to describe reporting elements. | ||||
* | Error message prints unrecognized key. | Zdenek Kabelac | 2010-01-07 | 1 | -1/+1 |
| | |||||
* | Show all fields for 'dmsetup info -c -o all'. | Zdenek Kabelac | 2010-01-07 | 1 | -1/+4 |
| | |||||
* | Separate PV label attributes which do not need parse metadata when reporting. | Milan Broz | 2009-02-09 | 1 | -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 Wysochanski | 2009-01-19 | 1 | -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 Kergon | 2009-01-10 | 1 | -0/+8 |
| | |||||
* | Add an "all" field which expands to all fields of the report type. | Alasdair Kergon | 2009-01-10 | 1 | -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 Kergon | 2008-11-03 | 1 | -39/+39 |
| | |||||
* | more tweaking to get things to compile - dmlib.h for log fns, list.h | Alasdair Kergon | 2008-11-03 | 1 | -1/+1 |
| | |||||
* | Split out dm-logging.h from log.h | Alasdair Kergon | 2008-10-30 | 1 | -3/+1 |
| | |||||
* | Underline longer report help text headings. | Alasdair Kergon | 2008-06-25 | 1 | -2/+1 |
| | |||||
* | Cope with missing field values. | Alasdair Kergon | 2008-06-25 | 1 | -5/+11 |
| | |||||
* | Add --rows to dmsetup. | Alasdair Kergon | 2008-06-24 | 1 | -81/+159 |
| | |||||
* | dmsetup --unquoted | Alasdair Kergon | 2008-06-24 | 1 | -2/+9 |
| | |||||
* | switch to single quotes rather than double for nameprefixes | Alasdair Kergon | 2008-06-06 | 1 | -2/+2 |
| | |||||
* | Add field name prefix option to reporting functions. | Alasdair Kergon | 2008-04-20 | 1 | -0/+59 |
| | |||||
* | Calculate string size within dm_pool_grow_object. | Alasdair Kergon | 2008-04-19 | 1 | -8/+4 |
| | |||||
* | Use log_warn for reporting field help text instead of log_print. | Alasdair Kergon | 2008-01-20 | 1 | -7/+7 |
| | |||||
* | Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. | Alasdair Kergon | 2007-08-21 | 1 | -5/+4 |
| | |||||
* | Avoid trailing separator in reports when there are hidden sort fields. | Alasdair Kergon | 2007-04-27 | 1 | -1/+9 |
| | |||||
* | Introduce _add_field() and _is_same_field() to libdm-report.c. | Alasdair Kergon | 2007-04-19 | 1 | -48/+60 |
| | |||||
* | Fix a few leaks in reporting error paths. | Alasdair Kergon | 2007-02-14 | 1 | -2/+7 |
| | |||||
* | Use fixed-size fields in report interface. | Alasdair Kergon | 2007-01-29 | 1 | -2/+2 |
| | |||||
* | Adjust report field help description layout. | Alasdair Kergon | 2007-01-24 | 1 | -1/+6 |
| | |||||
* | fix earlier checkin | Alasdair Kergon | 2007-01-23 | 1 | -1/+2 |
| | |||||
* | Add descriptions to reporting field definitions. | Alasdair Kergon | 2007-01-23 | 1 | -1/+6 |
| | |||||
* | add a dso-private variable to dmeventd interface | Alasdair Kergon | 2007-01-23 | 1 | -19/+28 |
| | | | | more inline docn | ||||
* | Add dm_event_handler_[gs]et_timeout functions. | Alasdair Kergon | 2007-01-22 | 1 | -15/+15 |
| | | | | Streamline dm_report_field_* interface. | ||||
* | Suppress 'Unrecognised field' error if report field is 'help'. | Alasdair Kergon | 2007-01-18 | 1 | -2/+3 |
| | |||||
* | fix last checkin | Alasdair Kergon | 2007-01-18 | 1 | -1/+1 |
| | |||||
* | Some internal renaming. | Alasdair Kergon | 2007-01-18 | 1 | -14/+20 |
| | | | | | Add --separator and --sort to dmsetup (unused as yet). Make alignment flag optional when specifying report fields. | ||||
* | more little fixes | Alasdair Kergon | 2007-01-16 | 1 | -3/+3 |
| | |||||
* | Add basic reporting functions to libdevmapper. | Alasdair Kergon | 2007-01-16 | 1 | -0/+811 |