summaryrefslogtreecommitdiffstats
path: root/tools/lvmcmdlib.c
Commit message (Collapse)AuthorAgeFilesLines
* cleanup: drop unneeded included header filesZdenek Kabelac2012-08-231-3/+0
| | | | | This headers were not resolving anything used for compiled .c files. Remove unused util.c file.
* Keep the LVM-based dmeventd plugins from trying to manipulate the dmeventdPetr Rockai2011-10-191-0/+4
| | | | | | | | | monitoring state of the logical volumes they are currently acting on. Until now, every time a logical volume has been changed by a dmeventd plugin, this plugin would have called back to dmeventd through the external FIFO mechanism. I am fairly sure this was superfluous, inefficient and possibly even dangerous.
* mlockall() -> mlock()Zdenek Kabelac2010-03-051-2/+2
| | | | | | | | | | | | | | | | | This patch adds a new implementation of locking function instead of mlockall() that may lock way too much memory (>100MB). New function instead uses mlock() system call and selectively locks memory areas from /proc/self/maps trying to avoid locking areas unused during lock-ed state. Patch also adds struct cmd_context to all memlock() calls to have access to configuration. For backward compatibility functionality of mlockall() is preserved with "activation/use_mlockall" flag. As a simple check, locking and unlocking counts the amount of memory and compares whether values are matching.
* Cleanup returns for void functions.Zdenek Kabelac2009-12-111-2/+0
|
* Fix another bug in memlock handling, this time the "global" dmeventd memlockPetr Rockai2009-11-191-2/+2
| | | | was preventing device scans in lvconvert --repair running from inside dmeventd.
* Move tools/version.h to lib/misc/lvm-version.h.Alasdair Kergon2009-02-221-2/+2
| | | | Split LVM_VERSION into MAJOR, MINOR, PATCHLEVEL, RELEASE and RELEASE_DATE.
* Create global is_static() to eliminate from the library init function.Dave Wysochanski2008-12-181-2/+3
| | | | | | | | Very simple / crude method of removing 'is_static' from initialization. Why should we require an application tell us whether it is linked statically or dynamically to libLVM? If the application is linked statically, but libraries exist and dlopen() calls succeed, why do we care if it's statically linked?
* lvm2_run: don't return uninitialized for _memlock_inc or _memlock_decJim Meyering2008-06-231-2/+3
| | | | | * tools/lvmcmdlib.c: Initialize "ret". Also avoid useless string comparison.
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-1/+1
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* Move basic reporting functions into libdevmapper.Alasdair Kergon2007-01-161-0/+1
|
* Add dmeventd_mirror register_mutex, tidy initialisation & add memlock.Alasdair Kergon2007-01-081-1/+7
|
* stub.h shouldn't be hereAlasdair Kergon2006-08-221-1/+0
|
* Move CMDLIB code into separate file and record whether static build.Alasdair Kergon2006-08-181-0/+111