summaryrefslogtreecommitdiffstats
path: root/tools/lvmdiskscan.c
Commit message (Collapse)AuthorAgeFilesLines
* Few more close and dev_close traceZdenek Kabelac2012-03-011-4/+6
| | | | Adding (void) where we cannot really report an error.
* Set to a defined value vars used after error pathZdenek Kabelac2012-01-251-0/+1
| | | | | Static analyzer noticed this vars are used even when error is reported back thus their state is undefined - set to 0 for this case.
* Use new dev_open_readonly fn to prevent opening devices for read-write when ↵Peter Rajnoha2011-05-281-1/+1
| | | | | | | | | | | | | | | | | | | not necessary. Before, we used vg_write_lock_held call to determnine the way a device is opened. Unfortunately, this opened many devices in RW mode when it was not really necessary. With the OPTIONS+="watch" rule used in the udev rules, this could fire numerous events while closing such devices (and it caused useless scans from within udev rules in return). A common bug we hit with this was with the lvremove command which was unable to remove the LV since it was being opened from within the udev rules. This patch should minimize such situations (at least with respect to LVM handling of devices). Though there's still a possibility someone will open a device 'outside' in parallel and fire the event based on the watch rule when closing a device once opened for RW.
* Use __attribute__ consistently throughout.Alasdair Kergon2010-07-091-2/+2
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* Make warnings go to stderr. Change log_warn to that effect, log_printPetr Rockai2007-06-281-1/+1
| | | | continues to send messages to stdout.
* Fix lvmdiskscan volume reporting when run in the lvm shellBryn M. Reeves2007-06-251-4/+10
|
* Add 'scan_sector' parameter to label_read and _find_labeller to addDave Wysochanski2007-04-231-1/+1
| | | | flexibility in searching for disk labels.
* Make SIZE_SHORT the default for display_size().Alasdair Kergon2006-05-091-2/+3
| | | | | | | 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.
* Cope with new devices appearing by rescanning /dev if a uuid can't be found.Alasdair Kergon2005-03-081-2/+2
|
* Fix rounding of large displayed sizes.Alasdair Kergon2004-06-071-1/+1
|
* Update copyright notices.Alasdair Kergon2004-03-301-2/+10
|
* More consistent error code usage.Alasdair Kergon2003-10-211-2/+2
|
* Another sync point - numerous fixes & clean ups.Alasdair Kergon2003-07-041-2/+2
|
* Tidy various pre-processing incl. making libdl optional.Alasdair Kergon2003-03-241-1/+1
|
* Default stripesize 64k & config file setting for it;Alasdair Kergon2002-12-191-7/+7
| | | | | | 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-13/+8
|
* Further help text tidying & support for -?.Alasdair Kergon2002-11-291-74/+69
|
* tiny tidyingHeinz Mauelshagen2002-11-281-3/+1
|
* Some new features.Alasdair Kergon2002-11-181-2/+2
|
* 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.
* Run through indent - no (intentional) changes to any code.Alasdair Kergon2002-02-111-47/+52
|
* Preparation for an LVM2 liblvm - pass cmd_context into each tool andAlasdair Kergon2002-02-111-10/+10
| | | | link some globals that the tools need into that structure.
* Poor mans lvmdiskscanHeinz Mauelshagen2002-02-051-0/+146