summaryrefslogtreecommitdiffstats
path: root/lib/metadata/lv.h
Commit message (Collapse)AuthorAgeFilesLines
* Thin add new display field for lvsZdenek Kabelac2012-01-191-0/+3
| | | | | | | New field Data% is able to display info about thin_pool, thin, snapshot and has generic meaning here. Simple Time/Host field are here to display host and time creation.
* Add support to keep info about creation time and host for each LVZdenek Kabelac2012-01-191-1/+7
| | | | | | | | Basic support to keep info when the LV was created. Host and time is stored into LV mda section. FIXME: Current version doesn't support configurable string via lvm.conf and used fixed version strftime "%Y-%m-%d %T %z".
* Add a new 'thin_pool' output field to 'lvs.Alasdair Kergon2011-09-091-0/+1
| | | | | | | | | A gentle reminder that anyone relying on the output of reporting commands like lvs in scripts must use -o to guarantee they get the fields they expect. The default sequence of fields can change from release to release. Equally, the 'attr' fields can have new values introduced and/or characters appended to them.
* This patchset refactors some reporting code and completes the remainingPetr Rockai2011-04-121-0/+2
| | | | | | | lvseg properties for lvm2app, 'devices' and 'seg_pe_ranges'. Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> Reviewed-by: Petr Rockai <prockai@redhat.com>
* Fix reading of released memoryZdenek Kabelac2011-03-051-1/+1
| | | | | | | | | | | | | | lvseg_segtype_dup used memory pool vg memory pool for strind duplication. However this one gets released before reporting happens so the command like: pvs -o segtype prints data from already released memory pool. Thanks to the fact there is not much allocation happing after the VG is released, the memory stays unmodified and correct result is printed. Fix adds support for mempool passed parameter (like other similar query commands) and uses dm_report memory pool for string duplication.
* Const fixingZdenek Kabelac2011-02-181-1/+1
| | | | | | | | | | | | | | | | Fixing some const warnings - with API change in: int vg_extend(struct volume_group *vg, int pv_count, const char *const *pv_names, Change is needed - as lvm2api expects const behaviour here. So vg_extend() is doing local strdup for unescaping. skip_dev_dir return const char* from const char* vg_name. Rest of the patch is cleanup of related warnings. Also using dm_report_filed_string() API change to simplify casting in _string_disp and _lvname_disp.
* Add the macro and specific 'get' functions for lvsegs.Petr Rockai2010-11-171-0/+5
| | | | | Signed-off-by: Dave Wysochanski <wysochanski@pobox.com> Reviewed-by: Petr Rockai <prockai@redhat.com>
* fix header #definesAlasdair Kergon2010-10-251-3/+3
|
* Add lv_read_ahead and lv_kernel_read_ahead 'get' functions.Dave Wysochanski2010-10-211-0/+1
|
* Refactor and add code for (lv) 'lv_origin' get function.Dave Wysochanski2010-10-211-0/+1
|
* Refactor and add code for (lv) 'lv_name' get function.Dave Wysochanski2010-10-211-0/+1
|
* Refactor and add code for (lv) 'modules' get function.Dave Wysochanski2010-10-121-0/+1
|
* Refactor and add code for (lv) 'mirror_log' get function.Dave Wysochanski2010-10-121-0/+1
| | | | | Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> Reviewed-By: Petr Rockai <prockai@redhat.com>
* Refactor and add code for (lv) 'lv_kernel_{major|minor}' get functions.Dave Wysochanski2010-10-121-0/+2
| | | | | Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> Reviewed-By: Petr Rockai <prockai@redhat.com>
* Refactor and add code for (lv) 'convert_lv' get function.Dave Wysochanski2010-10-121-0/+1
| | | | | Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> Reviewed-By: Petr Rockai <prockai@redhat.com>
* Refactor and add code for (lv) 'move_pv' get function.Dave Wysochanski2010-10-121-0/+1
| | | | | Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> Reviewed-By: Petr Rockai <prockai@redhat.com>
* Refactor and add code for (lv) 'origin_size' get function.Dave Wysochanski2010-10-121-0/+1
| | | | | Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> Reviewed-By: Petr Rockai <prockai@redhat.com>
* Refactor and add code for (lv) 'lv_path' get function.Dave Wysochanski2010-10-121-0/+1
|
* Fix copyright dates on new files lib/metadata/{lv|vg|pv}.[ch].Dave Wysochanski2010-09-301-1/+2
|
* Add pv_tags_dup, vg_tags_dup, lv_tags_dup functions that call ↵Dave Wysochanski2010-09-301-0/+1
| | | | tags_format_and_copy.
* Add pv_uuid_dup, vg_uuid_dup, and lv_uuid_dup, and call id_format_and_copy.Dave Wysochanski2010-09-301-0/+1
| | | | | | | Add supporting functions for pv_uuid, vg_uuid, and lv_uuid. Call new function id_format_and_copy. Use 'const' where appropriate. Add "_dup" suffix to indicate memory is being allocated. Call {pv|vg|lv}_uuid_dup from lvm2app uuid functions.
* Add {pv|vg|lv}_attr_dup() functions and refactor 'disp' functions.Dave Wysochanski2010-09-301-0/+1
| | | | | | | | Move the creating of the 'attr' strings into a common function so they can be called from the 'disp' functions as well as the new 'get' property functions. Add "_dup" suffix to indicate memory is allocated. Refactor pvstatus_disp to take pv argument and call pv_attr_dup().
* Add lib/metadata/vg.[ch] and lib/metadata/lv.[ch].Dave Wysochanski2010-09-301-0/+52
These got missed when git cvsexportcommit was used.