]> sourceware.org Git - lvm2.git/commit
refactor: make device type recognition code common for general use
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 12 Jun 2013 10:08:56 +0000 (12:08 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Wed, 12 Jun 2013 10:08:56 +0000 (12:08 +0200)
commitc6f48b7c1a0271255405346c50d6bee8cc8b9241
treec81ba8b9174105ca6a16cce37e1a288b47f32a92
parent1778d34cefdfe30055ac4a7e82438e4484004491
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
29 files changed:
include/.symlinks.in
lib/cache/lvmcache.c
lib/cache/lvmcache.h
lib/commands/toolcontext.c
lib/commands/toolcontext.h
lib/device/dev-cache.c
lib/device/dev-luks.c
lib/device/dev-md.c
lib/device/dev-swap.c
lib/device/dev-type.c
lib/device/dev-type.h [new file with mode: 0644]
lib/device/device-types.h
lib/device/device.h
lib/filters/filter-composite.c
lib/filters/filter-md.c
lib/filters/filter-md.h
lib/filters/filter-mpath.c
lib/filters/filter-mpath.h
lib/filters/filter-persistent.c
lib/filters/filter-persistent.h
lib/filters/filter-regex.c
lib/filters/filter-regex.h
lib/filters/filter-sysfs.h
lib/filters/filter.c
lib/filters/filter.h
lib/format1/disk-rep.c
lib/format_pool/disk_rep.c
lib/metadata/metadata.c
lib/metadata/pv_manip.c
This page took 0.044916 seconds and 5 git commands to generate.