summaryrefslogtreecommitdiffstats
path: root/tools/vgdisplay.c
Commit message (Collapse)AuthorAgeFilesLines
* Use __attribute__ consistently throughout.Alasdair Kergon2010-07-091-1/+1
|
* API change for args of process_each_lv_in_vg()Zdenek Kabelac2010-05-211-1/+1
| | | | | | | | Patch adds failed_lvnames to the list of parameters for process_each_lv_in_vg(). If the list is not NULL it will be filled with LV names of failing LVs during function execution. Application could later reiterate only on failed LVs.
* Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages.Dave Wysochanski2009-10-261-2/+0
| | | | | | | Option --all is only partially documented currently, so document in all commands. Also make {pv|vg|lv}{display|s} man pages consistent with help output. Remove ununsed 'disk_ARG' parameter. Leave --trustcache out of the man page output. Update --units argument to show all possible units.
* Fix process_each_vg / _process_one_vg when vg_read() returns FAILED_LOCKING.Dave Wysochanski2009-09-151-5/+0
| | | | | | | | | | | | | | Remove the checks for vg_read_error() in most of the tools callback functions and instead make the check in _process_one_vg() more general. In all but vgcfgbackup, we do not want to proceed if we get any error from vg_read(). In vgcfgbackup's case, we may proceed if the backup is to proceed with inconsistent VGs. This is a special case though, and we mark it with the READ_ALLOW_INCONSISTENT flag passed to process_each_vg (and subsequently to _process_one_vg). NOTE: More cleanup is needed in the vg_read_error() path cases. This patch is a start.
* Add lots of missing stack debug messages to tools.Alasdair Kergon2009-09-141-1/+3
| | | | | Make readonly locking available as locking type 4. Fix readonly locking to permit writeable global locks (for vgscan). (2.02.49)
* Rework the toollib interface (process_each_*) on top of new vg_read.Dave Wysochanski2009-07-011-3/+4
| | | | | | | | | Sun May 3 12:32:30 CEST 2009 Petr Rockai <me@mornfall.net> * Rework the toollib interface (process_each_*) on top of new vg_read. Rebased 6/26/09 by Dave W. - Add skipping message to process_each_lv - Remove inconsistent_t.
* Fix double releasing of vg when repairing of vg is requested.Milan Broz2009-06-051-8/+2
| | | | | | | | | | | | | | | | | | | | Several commands calls process_each_vg() and in provided callback it explicitly recovers VG if inconsistent. (vgchange, vgconvert, vgscan) It means that old VG is released and reread but the function above (process_one_vg) tries to unlock and release old VG. Patch moves the repair logic into _process_one_vg() function. It always tries to read vg (even inconsistent) and then decides what to do according new defined parameter. Also patch unifies inconsistent error messages. The only slight change if for vgremove command, where it now tries to repair VG before it removes if force arg is given. (It works similar way before, just the order of operation changed).
* Fix vgdisplay return code and exit status.Dave Wysochanski2008-11-071-4/+2
|
* Fix return values for reporting commands when run with no PVs, LVs, or VGs.Dave Wysochanski2008-06-101-1/+1
| | | | | | | | | | | | | | | | The new error checking code caught some commands that were returning '0' as an exit status for success. This is incorrect and resulted in a benign error message displayed (see below). As of today, all commands should return a value defined in lib/commands/errors.h (1-5). This results in an exit code of 0 on success, or > 0 on failure (as stated in the lvm.8 man page). Before change: 1. Make sure no PVs are on the system 2. Run 'pvs' Command failed with status code 0. After change: <no output>
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-5/+5
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* Add "const" attributes where possible: first cut.Jim Meyering2007-08-071-3/+4
|
* Convert vg->status checks to use vg_check_status function.\nRename ↵Dave Wysochanski2007-06-191-2/+1
| | | | status_flags to status in vg_check_status.
* Make SIZE_SHORT the default for display_size().Alasdair Kergon2006-05-091-1/+1
| | | | | | | Fix some memory leaks in error paths found by coverity. Use C99 struct initialisers. Move DEFS into configure.h. Clean-ups to remove miscellaneous compiler warnings.
* vgscan/change/display/vgs automatically create metadata backup if ↵Alasdair Kergon2005-05-171-0/+2
| | | | out-of-date or missing.
* Update copyright notices.Alasdair Kergon2004-03-301-13/+8
|
* taggingAlasdair Kergon2004-03-081-2/+3
|
* More consistent error code usage.Alasdair Kergon2003-10-211-3/+3
|
* Another sync point - numerous fixes & clean ups.Alasdair Kergon2003-07-041-0/+2
|
* New column-based reporting tools: lvs, pvs & vgs.Alasdair Kergon2002-12-121-0/+17
|
* Some new features.Alasdair Kergon2002-11-181-47/+41
|
* agk, I recall you saying you had a massive commit pending; if you need meAndres Salomon2002-10-271-0/+3
| | | | | | | | | | | to back this out so you can do that commit, let me know. Also, if there's an issue with the error message that's displayed, just change it in tools.h. This causes a "device-mapper driver/module not loaded?" error message to be displayed for the commands that require dm-mod, if the tools can't get the driver version. It's not done for commands that don't require dm-mod. This should clear up some problems people have had attempting to use lvm2 without rtfm'ing.
* Merge with text format branch.Alasdair Kergon2002-04-241-1/+1
| | | | | | | | | | | | | | | | | | | Lots of changes/very little testing so far => there'll be bugs! Use 'vgcreate -M text' to create a volume group with its metadata stored in text files. Text format metadata changes should be reasonably atomic, with a (basic) automatic recovery mechanism if the system crashes while a change is in progress. Add a metadata section to lvm.conf to specify multiple directories if you want (recommended) to keep multiple copies of the metadata (eg on different filesystems). e.g. metadata { dirs = ["/etc/lvm/metadata1","/usr/local/lvm/metadata2"] } Plenty of refinements still in the pipeline.
* Review locking: block signals instead of ignoring them and restore stateAlasdair Kergon2002-03-151-1/+1
| | | | afterwards; avoid race condition with unlink; add LCK_HOLD to process_each_vg.
* Run through indent - no (intentional) changes to any code.Alasdair Kergon2002-02-111-6/+5
|
* Preparation for an LVM2 liblvm - pass cmd_context into each tool andAlasdair Kergon2002-02-111-14/+14
| | | | link some globals that the tools need into that structure.
* o Support locking with local lock filesAlasdair Kergon2002-02-111-1/+1
| | | | o Disable control-c during updates (except if blocked waiting for a lock)
* quotes around names in outputHeinz Mauelshagen2002-01-301-3/+3
|
* vgdisplayAlasdair Kergon2001-11-191-0/+104