summaryrefslogtreecommitdiffstats
path: root/tools/lvscan.c
Commit message (Collapse)AuthorAgeFilesLines
* config: add silent modeAlasdair G Kergon2012-08-251-4/+4
| | | | | | | | | | | | | | | | Accept -q as the short form of --quiet. Suppress non-essential standard output if -q is given twice. Treat log/silent in lvm.conf as equivalent to -qq. Review all log_print messages and change some to log_print_unless_silent. When silent, the following commands still produce output: dumpconfig, lvdisplay, lvmdiskscan, lvs, pvck, pvdisplay, pvs, version, vgcfgrestore -l, vgdisplay, vgs. [Needs checking.] Non-essential messages are shifted from log level 4 to log level 5 for syslog and lvm2_log_fn purposes.
* Do not check for open_count when not needed.Zdenek Kabelac2011-02-031-1/+1
| | | | | | Disable open_count checking in lv_info it it's not used. Fix previous commit (comment out unsable code for now).
* Remove dead assignment of lv_total and lv_capasity_totalZdenek Kabelac2010-12-221-6/+0
| | | | Variables 'lv_total' and 'lv_capasity_total' are unused.
* Refactor the percent (mirror sync, snapshot usage) handling code to usePetr Rockai2010-11-301-8/+5
| | | | fixed-point values instead of a combination of a float value and an enum.
* Allow internal suspend and resume of origin without its snapshots.Alasdair Kergon2010-08-171-1/+1
|
* Use __attribute__ consistently throughout.Alasdair Kergon2010-07-091-1/+1
|
* Introduce percent_range_t and centralise snapshot full/mirror in-sync checks.Alasdair Kergon2009-10-011-4/+7
|
* Rework the toollib interface (process_each_*) on top of new vg_read.Dave Wysochanski2009-07-011-1/+1
| | | | | | | | | 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.
* Merge lv_is_displayable and lv_is_visible.Milan Broz2009-05-131-1/+1
| | | | | | | 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-1/+1
| | | | | the counts of visible LVs from user's perspective consistently throughout the code.
* Right, a simple build (without options) is working again.Alasdair Kergon2008-11-031-1/+1
|
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-1/+1
|
* readahead activation code (but no dm support yet)Alasdair Kergon2007-11-121-1/+1
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* Make SIZE_SHORT the default for display_size().Alasdair Kergon2006-05-091-2/+2
| | | | | | | 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.
* lv_is_visible()Alasdair Kergon2006-04-071-3/+1
|
* more snapshot code tidyingAlasdair Kergon2006-04-061-2/+1
|
* Introduce origin_from_cow()Alasdair Kergon2006-04-061-2/+2
|
* Fix lvscan snapshot full display.Alasdair Kergon2005-12-081-2/+24
| | | | dmeventd fixes
* lvscan -aAlasdair Kergon2005-10-171-1/+6
|
* Only ask libdevmapper for open_count when we need it.Alasdair Kergon2005-01-121-1/+1
|
* Fix rounding of large displayed sizes.Alasdair Kergon2004-06-071-1/+1
|
* Update copyright notices.Alasdair Kergon2004-03-301-13/+8
|
* More consistent error code usage.Alasdair Kergon2003-10-211-1/+1
|
* Another sync point - numerous fixes & clean ups.Alasdair Kergon2003-07-041-3/+0
|
* Improve build robustness.Alasdair Kergon2003-04-151-1/+1
|
* configure --disable-devmapper if you don't have libdevmapperAlasdair Kergon2003-01-081-1/+1
|
* Default stripesize 64k & config file setting for it;Alasdair Kergon2002-12-191-0/+3
| | | | | | Clear many compiler warnings (i386) & associated bugs - hopefully without introducing too many new bugs:-) (Same exercise required for other archs.) Default compilation has optimisation - or else use ./configure --enable-debug
* New column-based reporting tools: lvs, pvs & vgs.Alasdair Kergon2002-12-121-6/+3
|
* Some new features.Alasdair Kergon2002-11-181-68/+14
|
* i) There's now a seperate field in struct logical_volume that stores theJoe Thornber2002-07-111-3/+2
| | | | | | | | | | | | | | | | | allocation policy. This can currently take one of three values: typedef enum { ALLOC_NEXT_FREE, ALLOC_STRICT, ALLOC_CONTIGUOUS } alloc_policy_t; Notice that 'SIMPLE' has turned into the slightly more meaningful NEXT_FREE. ii) Put code into display.[hc] for converting one of these enums to a text representation and back again. ii) Updated the text format so this also has the alloc_policy field.
* Missing VG lock when iterating through all LVs.Alasdair Kergon2002-04-151-1/+1
|
* lv_info replaces lv_active etc.Alasdair Kergon2002-03-111-22/+21
|
* Remove VG arg from lv_is_cow() and lv_is_origin() - use lv->vg instead.Alasdair Kergon2002-02-201-2/+2
|
* o First pass at format1 snapshot support.Joe Thornber2002-02-131-2/+2
|
* Run through indent - no (intentional) changes to any code.Alasdair Kergon2002-02-111-1/+1
|
* Preparation for an LVM2 liblvm - pass cmd_context into each tool andAlasdair Kergon2002-02-111-6/+6
| | | | link some globals that the tools need into that structure.
* Allow compilation against a device-mapper that was installed into $DESTDIRAlasdair Kergon2002-01-181-1/+1
| | | | Always check for negative (error) return code from lv_active()
* o ACTIVE is no longer a status flag - lv_active() used to check if an LVAlasdair Kergon2002-01-101-3/+4
| | | | | | | | | | is active in the device-mapper. o Many operations can be carried out regardless of whether the VG is active or not. o vgscan does not activate anything - use vgchange. o Change lvrename to support renaming of active LVs. o Remove '//' appearing in some pathnames. o Dummy lv_check_segments() for compilation.
* o Tool support for segments.Alasdair Kergon2001-11-281-1/+3
| | | | o vgmerge working.
* Tool support for multiple (striped) segments (incomplete).Alasdair Kergon2001-11-271-2/+3
|
* vgdisplayAlasdair Kergon2001-11-191-3/+3
|
* More LV-related tidying. lvdisplay without args now shows all LVs.Alasdair Kergon2001-11-141-52/+25
|
* iospace restructuredAlasdair Kergon2001-11-121-2/+2
|
* o LGPL list implementationJoe Thornber2001-10-311-3/+3
|
* basic lvscanAlasdair Kergon2001-10-291-0/+148