| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
No longer capitalise first LV attribute char for invalid snapshots.
This state is available from the 5th char now (I or S).
|
|
|
|
|
|
| |
Bug introduced with addition of internal error default case.
Seem like this code is not used.
TODO: add coverage test.
|
|
|
|
| |
To keep all numbers with same sign
|
|
|
|
|
| |
Patch mainly helps static analyzers to better work with code paths
lvm code should never trigger.
|
| |
|
|
|
|
| |
snapshot (m)erge failed, suspended snapshot (M)erge failed
|
|
|
|
| |
Reorder condition so the code is better readable (and shorter).
|
|
|
|
|
|
|
|
|
|
| |
Since striped name function knows when to report 'linear' instead of
'stripe' type name - drop it from this place.
This fixes problem when reporting segtype e.g. for thin-pool which
is also using area_count=1 to store thin data device reference.
It also returns properly strduped memory instead of badly casted const char*.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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".
|
| |
|
|
|
|
| |
RAID_META is already handled.
|
|
|
|
| |
Follow gcc suggestion.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Add thin volume types to lv_attr.
|
|
|
|
|
|
|
| |
lvseg properties for lvm2app, 'devices' and 'seg_pe_ranges'.
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
|
| |
|
|
|
|
| |
Don't allocate unused VG mempool in _pvsegs_sub_single.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
fixed-point values instead of a combination of a float value and an enum.
|
|
|
|
|
| |
Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Reviewed-By: Petr Rockai <prockai@redhat.com>
|
|
|
|
|
| |
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Reviewed-By: Petr Rockai <prockai@redhat.com>
|
|
|
|
|
| |
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Reviewed-By: Petr Rockai <prockai@redhat.com>
|
|
|
|
|
| |
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Reviewed-By: Petr Rockai <prockai@redhat.com>
|
|
|
|
|
| |
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Reviewed-By: Petr Rockai <prockai@redhat.com>
|
| |
|
| |
|
|
|
|
| |
tags_format_and_copy.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
This patch addresses code review request to simplify creation of 'attr'
strings. The simplification is done in this separate patch to more
easily review and ensure the simplification is done without error.
|
|
|
|
|
|
|
|
| |
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().
|
|
These got missed when git cvsexportcommit was used.
|