summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2013-06-12 12:08:56 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2013-06-12 12:08:56 +0200
commitc6f48b7c1a0271255405346c50d6bee8cc8b9241 (patch)
treec81ba8b9174105ca6a16cce37e1a288b47f32a92 /include
parent1778d34cefdfe30055ac4a7e82438e4484004491 (diff)
downloadlvm2-c6f48b7c1a0271255405346c50d6bee8cc8b9241.tar.gz
refactor: make device type recognition code common for general use
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
Diffstat (limited to 'include')
-rw-r--r--include/.symlinks.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/.symlinks.in b/include/.symlinks.in
index 1c883ae34..facadbeee 100644
--- a/include/.symlinks.in
+++ b/include/.symlinks.in
@@ -15,6 +15,7 @@
@top_srcdir@/lib/datastruct/lvm-types.h
@top_srcdir@/lib/datastruct/str_list.h
@top_srcdir@/lib/device/dev-cache.h
+@top_srcdir@/lib/device/dev-type.h
@top_srcdir@/lib/device/device.h
@top_srcdir@/lib/display/display.h
@top_srcdir@/lib/filters/filter-composite.h