summaryrefslogtreecommitdiffstats
path: root/lib/format_pool/disk_rep.c
Commit message (Collapse)AuthorAgeFilesLines
* cleanup: uint64_t castsZdenek Kabelac2012-08-231-1/+1
|
* Move lvmcache data structures behind an API (making the structures private toPetr Rockai2012-02-101-73/+103
| | | | lvmcache.c). No functional change.
* 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.
* Add internal error if pointer is uninitializedZdenek Kabelac2010-12-201-0/+5
| | | | | Add simple check for existance of 'pl' and printer internal error message if device is missing instead of plain crash.
* Use __attribute__ consistently throughout.Alasdair Kergon2010-07-091-5/+5
|
* Recognise DRBD device part and handle it similar to MD devices.Milan Broz2009-10-271-3/+4
| | | | | | | | | | | | | The DRBD uses underlying device so code should prefer top device if duplicate is found. Patch also introduce dev_subsystem_part_major and dev_subsytem_name functions to easily handle all these replication susbystems and not hardcode md_major call. See https://bugzilla.redhat.com/show_bug.cgi?id=530881 for full problem description.
* more fixesAlasdair Kergon2008-11-041-1/+2
|
* Right, a simple build (without options) is working again.Alasdair Kergon2008-11-031-10/+10
|
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-1/+1
|
* Use stack return macros throughout.Alasdair Kergon2008-01-301-20/+10
|
* Clean up numerous compiler warnings that crept in recently.Alasdair Kergon2007-08-221-2/+2
| | | | Remove several unused parameters from _allocate().
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* Adjust some alignments for ia64 and sparc.Alasdair Kergon2006-11-301-5/+5
| | | | (Some of the changes are probably unnecessary.)
* 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.
* If two or more VGs are found with the same name, use one that is not exported.Alasdair Kergon2006-04-121-1/+1
|
* When scanning, also record whether or not VG is exported.Alasdair Kergon2006-04-111-1/+1
|
* Use hash, bitset, malloc, pool from libdevmapper.Alasdair Kergon2005-10-161-12/+10
|
* preset pl to NULLAlasdair Kergon2005-06-141-1/+1
|
* Basic support for mirrors.Alasdair Kergon2005-06-011-16/+10
|
* pool debuggingAlasdair Kergon2004-11-231-1/+1
|
* Add read-only GFS pool support.Alasdair Kergon2004-06-071-0/+385