summaryrefslogtreecommitdiffstats
path: root/lib/display
Commit message (Collapse)AuthorAgeFilesLines
* Never try to test character past given bufferZdenek Kabelac2012-02-131-1/+1
| | | | In case units[0] would be already '\0', do not check units[1].
* pre-releaseAlasdair Kergon2012-01-261-6/+6
|
* & -> &&Alasdair Kergon2012-01-251-1/+1
|
* Use chunk_size consistently for thin_pool within LVM.Alasdair Kergon2012-01-241-1/+1
|
* Update lvdisplay to show more info about thin LVsZdenek Kabelac2012-01-201-23/+76
| | | | | | | Reformat name and path how the LV is represented with lvm1 compatible option, to switch to the old way - which had number of problem - i.e. many links do not exist - since for private devices we are not creating them. Add more info about thin pools and volumes.
* Thin rename seg var pool_metadata_lv to metadata_lvZdenek Kabelac2012-01-191-1/+1
| | | | Better fits the code.
* Show read-only activation in display tools.Alasdair Kergon2012-01-121-3/+11
|
* Move y/n prompts to stderr and repeat if response has both 'n' and 'y'.Alasdair Kergon2011-11-231-5/+11
| | | | | (Note that in a future release we might make this stricter and insist on exactly 'y' or 'n'.)
* Use capital lettersZdenek Kabelac2011-10-041-2/+2
|
* Display transaction_id for thin_poolZdenek Kabelac2011-10-031-0/+3
|
* typoAlasdair Kergon2011-09-271-1/+1
|
* Show some Thin related info in lvdisplayZdenek Kabelac2011-09-261-0/+12
|
* Fix some compile warnings on RHEL5Milan Broz2011-03-012-2/+2
| | | | | | - returned char not needed to be explicitly const - warn if pipe() fails in clvmd (more fixes here needed for error paths...) - assign (and ignore) read() output in drain buffer
* Handle decimal digits with --units instead of ignoring them silently.Alasdair Kergon2011-02-181-20/+29
| | | | Fix remaining warnings and compile with -Wpointer-arith.
* Refactor the percent (mirror sync, snapshot usage) handling code to usePetr Rockai2010-11-301-9/+7
| | | | fixed-point values instead of a combination of a float value and an enum.
* Extend cling allocation policy to recognise PV tags (cling_by_tags).Alasdair Kergon2010-11-091-2/+7
| | | | Add allocation/cling_tag_list to lvm.conf.
* pre-releaseAlasdair Kergon2010-10-252-5/+18
|
* Allow internal suspend and resume of origin without its snapshots.Alasdair Kergon2010-08-171-2/+2
|
* Use __attribute__ consistently throughout.Alasdair Kergon2010-07-091-12/+12
|
* Add printf format attributes to yes_no_prompt & dm_{sn,as}printf and fix a calleAlasdair Kergon2010-07-021-1/+1
|
* Use vg_mda_count() in vgdisplay.Dave Wysochanski2010-06-281-1/+1
| | | | Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
* Cleanup returns for void functions.Zdenek Kabelac2009-12-111-11/+0
|
* Switch status from 32-bit to 64-bitMike Snitzer2009-11-241-3/+3
| | | | | | | | | | | The physical_volume, volume_group, logical_volume and lv_segment structures' 'status' member is now uint64_t. The alignment of these structures was also audited to remove holes. The movement of some members in 'volume_group' and 'lv_segment' eliminates holes. The 'physical_volume' structure still has one 4-byte hole after 'pe_size'; the other structures no longer have any holes. Each structures' size has not changed.
* Add fflush for the case the log is redirected to the buffered file.Zdenek Kabelac2009-11-031-0/+1
| | | | | Without this patch it have not been obvious, why the application waits on the stdin as the prompt might be still buffered in memory.
* Permit snapshots of mirrors. (brassow)Alasdair Kergon2009-10-261-1/+8
|
* Introduce percent_range_t and centralise snapshot full/mirror in-sync checks.Alasdair Kergon2009-10-011-6/+9
|
* Distinguish between powers of 1000 and powers of 1024 in unit suffixes.Alasdair Kergon2009-09-301-25/+96
|
* Treat input units of both 's' and 'S' as 512-byte sectors. (2.02.49)Alasdair Kergon2009-09-281-3/+1
| | | | | 's' and 'S' are special suffixes representing sectors and are always 512 bytes, regardless of whether you're using powers of 1000 or 1024.
* Add global/si_unit_consistency to enable cleaned-up use of units in output.Alasdair Kergon2009-09-281-2/+7
| | | | | | Add configure --enable-units-compat to set si_unit_consistency off by default. Use standard output units for 'PE Size' and 'Stripe size' in pv/lvdisplay.
* Add vg_is_resizeable() and cleanup references.Dave Wysochanski2009-09-151-1/+1
| | | | | | | Clean up VG_RESIZEABLE flag by creating vg_is_resizeable(). Update comment - we no longer have ALLOW_RESIZEABLE. Also use vg_is_exported() in one place missed by earlier patch. Should be no functional change.
* Use vg_is_exported(vg) macro everywhere.Dave Wysochanski2009-09-141-1/+1
| | | | | | | This patch is all just cleanup and no other patch depends on it. Replace explicit dereference and check with vg_is_exported(). Update a few copyrights and remove unnecessary whitespace. Should be no functional change.
* Update display.c to use vg_free(vg) instead of duplicating the calculation.Dave Wysochanski2009-07-271-4/+2
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Continue to make --units and --size consistent (in code and man pages):Mike Snitzer2009-07-071-3/+6
| | | | | | | | | | | | | | Update units_to_bytes() to support (S)ectors: 500 bytes. - 500 byte (S)ectors is of questionable value but it adds to consistency if a user happens to use --units S. This seems better than an error. Updated test/t-covercmd.sh to test --units [hS] Document the units that can be displayed via --units uniformly. - (p)etabytes and (e)xabytes were missing in pvs, vgs and lvs man pages. Made lvreduce man page "... in units of megabytes." consistent (with the lvextend and lvresize man pages).
* Merge lv_is_displayable and lv_is_visible.Milan Broz2009-05-131-2/+2
| | | | | | | Displayable and visible is the same thing. volumes_count(vg) is now vg_visible_lvs() and always returns number of LVs from user perspective.
* Added displayable_lvs_in_vg and lv_is_displayable functions to deal withPeter Rajnoha2008-12-041-14/+2
| | | | | the counts of visible LVs from user's perspective consistently throughout the code.
* Fix uninitialised lv_count in vgdisplay -cAlasdair Kergon2008-12-011-1/+1
|
* Right, a simple build (without options) is working again.Alasdair Kergon2008-11-031-9/+9
|
* more tweaking to get things to compile - dmlib.h for log fns, list.hAlasdair Kergon2008-11-031-12/+12
|
* Improve the way VGs with PVs missing are handled so manual interventionAlasdair Kergon2008-09-191-8/+2
| | | | is required in fewer circumstances. (mornfall)
* added const modifiersZdenek Kabelac2008-08-071-4/+4
| | | | switched const char* to const char[] elements to save few relocation entries
* fix 3rd copyAlasdair Kergon2008-04-101-1/+1
|
* Fix vgdisplay 'Cur LV' field to match lvdisplay output.Alasdair Kergon2008-04-101-1/+14
| | | | Fix lv_count report field to exclude hidden LVs.
* Add vg_is_clustered() helper function.Dave Wysochanski2008-04-101-1/+1
| | | | Should be no functional change.
* Add pvseg_is_allocated() for identifying a PV segment allocated to a LV.Dave Wysochanski2008-03-261-1/+1
|
* split orphan VG by format typeAlasdair Kergon2008-02-061-1/+2
|
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-1/+1
|
* Use stack return macros throughout.Alasdair Kergon2008-01-301-8/+4
|
* readahead activation code (but no dm support yet)Alasdair Kergon2007-11-121-3/+11
|
* attempt to fix human-readable unit output when number of sectors is oddAlasdair Kergon2007-11-051-5/+5
|
* adjust sizes for metadataAlasdair Kergon2007-11-051-7/+7
|