]> sourceware.org Git - lvm2.git/commit
scan: use full md filter when md 1.0 devices are present
authorDavid Teigland <teigland@redhat.com>
Fri, 15 Jun 2018 16:42:10 +0000 (11:42 -0500)
committerDavid Teigland <teigland@redhat.com>
Wed, 17 Oct 2018 18:49:40 +0000 (13:49 -0500)
commitde2863739f2ea17d89d0e442379109f967b5919d
tree65ff5900beda28f23bd393ecba7b13bb9dddf20d
parentc26bde42af0930bef2cee95c76951285d801ba70
scan: use full md filter when md 1.0 devices are present

The md filter can operate in two native modes:
- normal: reads only the start of each device
- full: reads both the start and end of each device

md 1.0 devices place the superblock at the end of the device,
so components of this version will only be identified and
excluded when lvm uses the full md filter.

Previously, the full md filter was only used in commands
that could write to the device.  Now, the full md filter
is also applied when there is an md 1.0 device present
on the system.  This means the 'pvs' command can avoid
displaying md 1.0 components (at the cost of doubling
the i/o to every device on the system.)

(The md filter can operate in a third mode, using udev,
but this is disabled by default because there have been
problems with reliability of the info returned from udev.)
lib/cache/lvmcache.c
lib/device/dev-md.c
lib/device/dev-type.h
lib/filters/filter-md.c
lib/label/label.c
test/shell/pvcreate-md-fake-hdr.sh
This page took 0.037272 seconds and 5 git commands to generate.