summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* build: Stop creating the symlinks in include/ on the fly.Joe Thornber2018-04-2783-103/+83
| | | | | | | | Git handles symlinks, tar handles symlinks. So I've just put the links themselves into git. This simplifies dependencies a little, and stop some build loops I was hitting.
* [device/bcache] stub a unit testJoe Thornber2018-04-201-0/+1
|
* [lib/device/bcache] Tweaks after Kabi's reviewJoe Thornber2018-04-201-3/+13
|
* [io paths] Unpick agk's aio stuffJoe Thornber2018-04-201-3/+0
|
* device: Basic config and setup to support async I/O.Alasdair G Kergon2018-02-081-0/+3
|
* replicator: remove the codeDavid Teigland2017-10-131-3/+0
| | | | | It has not been used in a long time and is not expected to be used further.
* fsadm: support configurable full pathZdenek Kabelac2017-04-121-0/+3
| | | | | | | Just like with other tools lvm2 is using allow to define fully configurable path. Default is selected by $PREFIX/sbin/fsadm
* tools: Show configuration command line in lvm version.Alasdair G Kergon2017-03-231-0/+6
| | | | Also update configure.in with some items recently added to the tree.
* daemons: add dmfilemapdBryn M. Reeves2017-03-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a daemon that can be launched to monitor a group of regions corresponding to the extents of a file, and to update the regions as the file's allocation changes. The daemon is intended to be started from a library interface, but can also be run from the command line: dmfilemapd <fd> <group_id> <path> <mode> [<foreground>[<log_level>]] Where fd is a file descriptor open on the mapped file, group_id is the group identifier of the mapped group and mode is either "inode" or "path". E.g.: # dmfilemapd 3 0 vm.img inode 1 3 3<vm.img ... If foreground is non-zero, the daemon will not fork to run in the background. If verbose is non-zero, libdm and daemon log messages will be printed. It is possible for the group identifier to change when regions are re-mapped: this occurs when the group leader is deleted (regroup=1 in dm_stats_update_regions_from_fd()), and another region is created before the daemon has a chance to recreate the leader region. The operation is inherently racey since there is currently no way to atomically move or resize a dm_stats region while retaining its region_id. Detect this condition and update the group_id value stored in the filemap monitor. A function is also provided in the the stats API to launch the filemap monitoring daemon: int dm_stats_start_filemapd(int fd, uint64_t group_id, const char *path, dm_filemapd_mode_t mode, unsigned foreground, unsigned verbose); This carries out the first fork and execs dmfilemapd with the arguments specified. A dm_filemapd_mode_t value is specified by the mode argument: either DM_FILEMAPD_FOLLOW_INODE, or DM_FILEMAPD_FOLLOW_PATH. A helper function, dm_filemapd_mode_from_string(), is provided to parse a string containing a valid mode name into the appropriate dm_filemapd_mode_t value.
* configure: check for __builtin_clz()Bryn M. Reeves2016-12-131-0/+3
|
* lib: Move lcm and gcd to lib/misc for wider use.Alasdair G Kergon2016-08-181-0/+1
|
* libdm: add configure.in checks for fiemap.h and magic.hBryn M. Reeves2016-07-081-0/+6
|
* pre-releasev2_02_146Alasdair G Kergon2016-03-111-0/+3
|
* dbus: add notification from commandsDavid Teigland2016-03-071-0/+1
| | | | | | | When a command modifies a PV or VG, or changes the activation state of an LV, it will send a dbus notification when the command is finished. This can be enabled/disabled with a config setting.
* doc: change fsf addressZdenek Kabelac2016-01-212-2/+2
| | | | | Hmm rpmlint suggest fsf is using a different address these days, so lets keep it up-to-date
* cleanup: just alphabetically sort linksZdenek Kabelac2015-11-161-10/+10
|
* configure: check for udev_device_get_is_initialized is availablePeter Rajnoha2015-11-111-0/+3
| | | | | | The udev_device_get_is_initialized is available since libudev version 165. Older versions are still used somewhere (e.g. RHEL6). So better check for this fn and use it only if it's available.
* configure: relocate configure.hZdenek Kabelac2015-09-114-4/+843
| | | | | | | | | | Commit 9403edbb93a2c337df790408e9ff3d26566b7443 move location of configure.h and lvm-version.h. Let's try even better place then /conf dir which should be left for user configurable files. Put these files right into include dir.
* configure: relocate generated headersZdenek Kabelac2015-09-071-2/+2
| | | | | | | | | | | | | | | Relocate generated configure.h and lvm-version.h outside of compilable .c source tree. The reason is behind - when compiling in builddir != srcdir the generated file in lib/misc/configure.h was used for all compiled source file except ones located in lib/misc dir - those would have used configure.h file located in this dir - if there have existed one (i.e. from some other build) This problem was only visible, when srcdir == buildir was used before trying to use srcdri != builddir (as configure.h appeared then in srcdir).
* include: Standardise around new tool.h.Alasdair G Kergon2015-07-061-0/+1
|
* Add lvmlockddev-dct-lvmlockd-AZDavid Teigland2015-07-021-0/+2
|
* makefiles: better cleanZdenek Kabelac2015-05-181-4/+8
| | | | | | | | | More exact clean of library exported symbols files. Also use $(firstword) test to check for empty string so 'make clean' has now cleaner condensed look. Clean also created include links.
* lvmpolld: Add standalone polldaemon.Ondrej Kozina2015-05-091-0/+4
| | | | See doc/lvmpolld_overview.txt
* cleanup: add dev-ext-udev-constants.h with constants/names of the ↵Peter Rajnoha2015-01-301-0/+1
| | | | properties/values used from udev db
* report: select: refactor: move str_list to libdmPeter Rajnoha2014-06-171-1/+0
| | | | | | | | | | The list of strings is used quite frequently and we'd like to reuse this simple structure for report selection support too. Make it part of libdevmapper for general reuse throughout the code. This also simplifies the LVM code a bit since we don't need to include and manage lvm-types.h anymore (the string list was the only structure defined there).
* locking: Separate out flock and signal code.Alasdair G Kergon2014-05-011-2/+4
|
* reporting: Add devtypes command.Alasdair G Kergon2013-09-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | Add internal devtypes reporting command to display built-in recognised block device types. (The output does not include any additional types added by a configuration file.) > lvm devtypes -o help Device Types Fields ------------------- devtype_all - All fields in this section. devtype_name - Name of Device Type exactly as it appears in /proc/devices. devtype_max_partitions - Maximum number of partitions. (How many device minor numbers get reserved for each device.) devtype_description - Description of Device Type. > lvm devtypes DevType MaxParts Description aoe 16 ATA over Ethernet ataraid 16 ATA Raid bcache 1 bcache block device cache blkext 1 Extended device partitions ...
* filters: check for mpath before opening devsAlasdair G Kergon2013-08-131-6/+0
| | | | | | | | | | | | | | | | Split out the partitioned device filter that needs to open the device and move the multipath filter in front of it. When a device is multipathed, sending I/O to the underlying paths may cause problems, the most obvious being I/O errors visible to lvm if a path is down. Revert the incorrect <backtrace> messages added when a device doesn't pass a filter. Log each filter initialisation to show sequence. Avoid duplicate 'Using $device' debug messages.
* lib/properties: Common code for handling properties.Tony Asleson2013-07-121-0/+1
| | | | | | | | | The common bits from lib/report/properties.[c|h] have been moved to lib/properties/prop_common.[c|h] to allow re-use of property handling functionality without polluting the report handling functionality. Signed-off-by: Tony Asleson <tasleson@redhat.com>
* lvresize: separate validation from actionAlasdair G Kergon2013-07-061-1/+0
| | | | | | | | | Start separating the validation from the action in the basic lvresize code moved to the library. Remove incorrect use of command line error codes from lvresize library functions. Move errors.h to tools directory to reinforce this, exporting public versions of the error codes in lvm2cmd.h for dmeventd plugins to use.
* refactor: make device type recognition code common for general usePeter Rajnoha2013-06-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Changes: - move device type registration out of "type filter" (filter.c) to a separate and new dev-type.[ch] for common use throughout the code - the structure for keeping the major numbers detected for available device types and available partitioning available is stored in "dev_types" structure now - move common partitioning detection code to dev-type.[ch] as well together with other device-related functions bound to dev_types (see dev-type.h for the interface) The dev-type interface contains all common functions used to detect subsystems/device types, signature/superblock recognition code, type-specific device properties and other common device properties (bound to dev_types), including partitioning support. - add dev_types instance to cmd context as cmd->dev_types for common use - use cmd->dev_types throughout as a central point for providing information about device types
* config: add config_settings.hPeter Rajnoha2013-03-061-0/+1
| | | | | | | | This file centrally defines all recognized LVM2 configuration sections and settings. Each item here has its parent, set of allowed types, default value, brief comment, version the setting first appeared in and flags that further define the nature of the configuration setting and its use.
* libdaemon: Split daemon-shared.[hc] into daemon-io.[hc] and config-util.[hc].Petr Rockai2012-09-261-1/+2
|
* More .gitignore files for an in-source-tree build.Alasdair G Kergon2012-06-081-0/+3
| | | | Tell git to ignore files generated by a build inside the source tree.
* Add .gitignore files for an in-source-tree build.Alasdair G Kergon2012-06-081-0/+1
| | | | Tell git to ignore files generated by a build inside the source tree.
* expose new include files to buildAlasdair Kergon2012-02-281-0/+3
|
* Missed update for include/.symlinks.in to include lvmetad.h.Petr Rockai2012-02-231-0/+1
|
* 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>
* 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.
* Fix include commit and switch to use DISTCLEAN_TARGETSZdenek Kabelac2010-11-081-4/+3
| | | | | | | | Fixing warning introduced by 'include make.tmpl' commit. Produced this warning: Makefile:29: warning: overriding commands for target `distclean' ../make.tmpl:366: warning: ignoring old commands for target `distclean'
* Use include make.tmplZdenek Kabelac2010-11-051-16/+2
| | | | Makes easier to use recursive targets and simplifies Makefile.
* 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.
* Do not use VPATH in include/MakefileZdenek Kabelac2010-08-021-1/+0
|
* Update cflow file generation - support build dir and use $(top_srcdir)Zdenek Kabelac2010-03-291-2/+1
| | | | | | | 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.
* Add libdevmapper-event-lvm2.so to serialise dmeventd plugin liblvm2cmd use.Alasdair Kergon2010-01-211-0/+1
|
* Allow for a build directory separate from the source.Alasdair Kergon2009-10-023-64/+65
|
* Cluster log daemon (clogd): use LVM bitops in place of ext2 bitopsJonathan Earl Brassow2009-08-131-0/+1
| | | | | | | | | | | Eliminate dependency on outside library, since the same functionality exists in our tree. [It is important that the bitops work in the same way, as the bitmaps must remain backwards compatible. I haven't tested every architecture, but the x86* archs work. My test involved using the old ext2fsprogs bitops, memcpy'ing the bits over to the LVM bitset array and ensuring that only the bits set via the old methods were set.]