summaryrefslogtreecommitdiffstats
path: root/lib/Makefile.in
Commit message (Collapse)AuthorAgeFilesLines
* cleanup: drop unneeded included header filesZdenek Kabelac2012-08-231-1/+0
| | | | | This headers were not resolving anything used for compiled .c files. Remove unused util.c file.
* Reflect new file locations, include file updates etc.Alasdair Kergon2012-02-281-3/+5
|
* The lvmetad client-side integration. Only active when use_lvmetad = 1 is set inPetr Rockai2012-02-231-0/+3
| | | | lvm.conf *and* lvmetad is running.
* Do not scan device if it is part of active multipath.Milan Broz2011-11-111-0/+1
| | | | | | | | | | | | | | | | | | | Add filter which tries to check if scanned device is part of active multipath. Firstly, only SCSI major number devices are handled in filter. Then it checks if device has exactly one holder (in sysfs) and if it is device-mapper device and DM-UUID is prefixed by "MPATH-". If so, this device is filtered out. The whole filter can be switched off by setting mpath_component_detection in lvm.conf. https://bugzilla.redhat.com/show_bug.cgi?id=597010 Signed-off-by: Milan Broz <mbroz@redhat.com>
* add thin_manip.c like the other manip filesAlasdair Kergon2011-09-061-1/+2
| | | | | move basic lv_is_* to macros data_lv -> pool_lv - we decided to call it 'pool' everywhere now
* Initial code layout for thin provisioning targetZdenek Kabelac2011-08-241-0/+9
| | | | | | | Only registers init_thin_segtype Option --with-thin=internal needed for compilation. For now useful only for developememt!
* Add ability to down-convert RAID1 arrays.Jonathan Earl Brassow2011-08-111-0/+1
| | | | Also, add some simple RAID tests to testsuite.
* Add basic RAID segment type(s) support.Jonathan Earl Brassow2011-08-021-0/+9
| | | | | | | | | | | | | Implementation described in doc/lvm2-raid.txt. Basic support includes: - ability to create RAID 1/4/5/6 arrays - ability to delete RAID arrays - ability to display RAID arrays Notable missing features (not included in this patch): - ability to clean-up/repair failures - ability to convert RAID segment types - ability to monitor RAID segment types
* Refactor the percent (mirror sync, snapshot usage) handling code to usePetr Rockai2010-11-301-0/+1
| | | | fixed-point values instead of a combination of a float value and an enum.
* Refactor metadata.[ch] into lv.[ch] for lv functions.Dave Wysochanski2010-09-301-0/+1
| | | | | | This patch is similar to the other patches for pv and vg functionality, and separates lv functionality into separate files, concentrating on reporting fields and simple functions.
* Refactor metadata.[ch] into pv.[ch] for pv functions.Dave Wysochanski2010-09-301-0/+1
| | | | | | | | | The metadata.[ch] files are very large. This patch makes a first attempt at separating out pv functions and data, particularly related to the reporting fields calculations. More code could be moved here but for now I'm stopping at reporting functions 'get' / 'set' functions.
* Refactor metadata.[ch] into vg.[ch] for vg functions.Dave Wysochanski2010-09-301-0/+1
| | | | | | The metadata.[ch] files are very large. This patch makes a first attempt at separating out vg functions and data, particularly related to the reporting fields calculations.
* Add properties.[ch] to lib/report, defined based on columns.h.Dave Wysochanski2010-08-201-0/+1
| | | | | | | | | | | | | | | Extend the existing reporting infrastructure definitions and structures to include a 'get' and 'set' function for each field. We will provide a 'get' and 'set' function for each of these fields, which will be utilized by exported lvm2app functions. Define a default _not_implemented 'get' and 'set' function that just sets an errno and returns 0. Future patches will actually implement the specific 'get' and 'set' functions for each property. For read-only properties, only the 'get' function will be implemented. Define vg_get_property() function to query a property. We will call this from a lvm2app function.
* Detect LUKS signature in pvcreateMilan Broz2010-08-191-0/+1
| | | | | | | One shiny day we should use libblkid here. But now using LUKS is very common together with LVM and pvcreate destroys LUKS completely. So for user's convenience, try to detect LUKS signature and allow abort.
* Replicator: base lvm2 supportZdenek Kabelac2010-05-211-0/+10
| | | | | | | | Adding configure.in support for Replicators. Adding basic lib lvm support for Replicators. Adding flags REPLICATOR and REPLICATOR_LOG. Adding segments SEG_REPLICATOR and SEG_REPLICATOR_DEV. Adding basic methods for handling replicator metadata.
* INSTALL rules updatesZdenek Kabelac2010-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Patch is inspired by Debian's extra patch. - removes OWNER & GROUP make vars they are parts of INSTALL command. - adds INSTALL_PROGRAM for executable, uses $(INSTALL) - adds INSTALL_DATA for non-executable data, uses ($INSTALL) - adds INSTALL_WDATA for writable non-executable data, uses ($INSTALL) - adds configure option --enable-write_install - to support installatin of writable files used by distribution - replaces usage of ifeq @LIB_SUFFIX@ with $(LIB_SUFFIX) - installs .a files from static builds without executable flag - installs .a files to $(usrlibdir) instead of $(libdir) - installs all static binaries to $(staticdir) - create .so links for devel package in $(usrlibdir) instead of $(libdir) - makes .so and .so.LIB_VERSION files within builddir - removes VERSIONED_SHLIB and created versioned LIB_SHARED automagicaly - install LIB_SHARED via install_lib_shared target - install plugins via install_lib_shared_plugin target - prints whole 'install' command during installation instead of less informative "Installing $(something) $(somewhere)" - install multiple man pages with one INSTALL command - use DISTCLEAN_TARGETS instead of creating multiple distclean targets
* Use vpath instead of VPATH.Zdenek Kabelac2010-04-091-1/+0
| | | | | | | | | | | | | | | Usage of VPATH makes troubles when used within $(builddir). Not only source files are being found through VPATH, but targets as well. (make --debug=v) Thus if user builds the code in $(srcdir) and also in some $(builddir) he gets mangled results as some generated files (i.e. .export.sym) are 'reused' from $(srcdir) instead of $(builddir). This patch switches to use vpath were we could explicitly name suffixes that should be looked via vpath - we must take care, we do not generate files with these suffixes: .c, .in, .po, .exported_symbols
* Fixing another set of distclean problems where we left some generated filesZdenek Kabelac2010-03-291-0/+2
| | | | | | | | in clvmd, dmevend, man, tests. Don't include dependency files for clow and cscope.out targets Improve dependency tracking for dmeventd and liblvm2cmd sources.
* Update cflow file generation - support build dir and use $(top_srcdir)Zdenek Kabelac2010-03-291-10/+3
| | | | | | | to obtain sources. Create make.tmpl target for simplier generation of cflow files with the help of CFLOW_LIST, CFLOW_LIST_TARGET, CFLOW_TARGET. Still cflow usage is not perfect.
* distclean fixesZdenek Kabelac2010-03-291-0/+9
| | | | | | | Move daemons/ and lib/ subtargets to their Makefiles so we don't get double cleanup error during execution of distclean target. Instead of duplicating clean target inside distclean target, just use it as a subtarget and avoid add duplicating code.
* Use $(top_builddir) for inclusion of make.tmpl in Makefiles.Zdenek Kabelac2010-03-041-2/+2
|
* Handle metadata with unknown segment types more gracefully.Petr Rockai2009-10-161-0/+1
|
* Disable realtime support by default.Fabio M. Di Nitto2009-10-121-1/+5
| | | | | | | This code is used only in a under development feature and it's not used anywhere in the tree. Allow to build it conditionally.
* More makefile cleaning up and fixing. (gentoo)Alasdair Kergon2009-10-051-1/+2
|
* Allow for a build directory separate from the source.Alasdair Kergon2009-10-021-1/+2
|
* Build shared parts with 'make' command (mpatocka)Milan Broz2009-06-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | When some parts of lvm are built as shared libraries (for example with --with-snapshots=shared), the 'make' command does not build these parts. The shared parts are built with 'make install' command. This bug can be seen if you go to 'lib' subdirectory and type 'make'. If you type 'make', the shared libraries are not built, if you type 'make all', the shared libraries are built. The reason for the bug is the line $(SUBDIRS): $(LIB_STATIC) If make is executed without any arguments, it makes the first target in the Makefile. If the first target is '$(SUBDIRS): $(LIB_STATIC)', it only builds static libraries. This patch moves '$(SUBDIRS): $(LIB_STATIC)' after include $(top_srcdir)/make.tmpl. make.tmpl contains the 'all' target as its first target, so 'make' will be equivalent to 'make all' and shared libraries will be build with 'make' command. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
* Detect and wipe swap signatures in pvcreate.Petr Rockai2009-03-171-0/+1
|
* Add new liblvm build directory and move lvm_base.c.Dave Wysochanski2009-03-061-2/+1
| | | | | | | | | The original liblvm.a has been moved to liblvm-internal.a. We now use liblvm.a for the new application library and build it inside liblvm directory. Change dependencies so tools depend on liblvm application library, and application library depends on liblvm internal.
* Rename liblvm to liblvm-internal.Dave Wysochanski2009-03-061-4/+5
| | | | Make preparation for using liblvm for new application library.
* Added files lib/lvm.h and lib/lvm_base.c:Thomas Woerner2009-02-241-2/+3
| | | | | | | | | | | | | | New structure lvm (used as an alias to cmd_context), new type definition lvm_t for the lvm handle. Added functions lvm_create, lvm_destroy and lvm_reload_config using the new handle. Modified test/api/test.c: Use new lvm.h header file and lvm_t handle. Removed lib/lvm2.h Author: Thomas Woerner <twoerner@redhat.com>
* more tweaking to get things to compile - dmlib.h for log fns, list.hAlasdair Kergon2008-11-031-1/+0
|
* Split out lvm-logging.h from log.h.Alasdair Kergon2008-10-301-0/+1
|
* Fix reporting of LV fields alongside unallocated PV segments.Alasdair Kergon2008-06-251-0/+1
|
* Correct typo in comments: s/is part of the LVM2/is part of LVM2/.Jim Meyering2007-09-211-1/+1
| | | | | | | Signed-off-by: Jim Meyering <jim@meyering.net> Author: Jim Meyering <jim@meyering.net>
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-1/+1
|
* Eliminate uses of strdup+basename. Use last_path_component instead.Jim Meyering2007-07-201-0/+1
| | | | | | | | | | * lib/misc/util.c, lib/misc/util.h (last_path_component): New files. * lib/Makefile.in (SOURCES): Add misc/util.c. * lib/misc/lib.h: Include "util.h". * tools/fsadm/fsadm.c: Include "util.h". (_usage): Use last_path_component, not basename. * tools/lvmcmdline.c (_find_command, lvm2_main): Likewise. * include/.symlinks: Add lib/misc/util.h.
* Move regex functions into libdevmapper.Alasdair Kergon2007-04-271-3/+0
|
* Add timestamp functions with --disable-realtime configure option. [AJ]Alasdair Kergon2006-09-301-0/+1
|
* Add lvm_getpagesize wrapper.Alasdair Kergon2006-08-171-0/+1
|
* Check for libsepol.Alasdair Kergon2006-04-191-0/+10
| | | | | | Add some cflow & scope support. Separate out DEFS from CFLAGS. Remove inlines and use unique function names.
* More dmeventd support.Alasdair Kergon2005-12-021-0/+4
|
* Move set_selinux_context into libdevmapperAlasdair Kergon2005-10-251-4/+0
|
* Attempt to load missing targets using modprobe.Alasdair Kergon2005-10-171-1/+2
| | | | Simplify dev_manager_info().
* Use hash, bitset, malloc, pool from libdevmapper.Alasdair Kergon2005-10-161-4/+0
|
* Move archiver code from tools into library.Alasdair Kergon2005-05-171-0/+1
|
* Initial pv_segment code.Alasdair Kergon2005-04-191-0/+1
|
* Trap large memory allocation requests.Alasdair Kergon2004-11-241-4/+1
|
* Separate out md superblock detection code.Alasdair Kergon2004-11-181-0/+1
|
* Rename old segtypes files to segtype.Alasdair Kergon2004-09-161-1/+1
|
* Add cluster support.Alasdair Kergon2004-06-241-0/+8
|