1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/lib
Peter Rajnoha 99d895014d dev-type: filter out partitioned device-mapper devices as unsuitable for use as PVs
Normally, if there are partitions defined on top of device-mapper
device, there should be a device-mapper device created for each
partiton on top of the old one and once the underlying DM device
is used by another devices (partition mappings in this case),
it can't be used as a PV anymore.

However, sometimes, it may happen the partition mappings are
missing - either the partitioning tool is not creating them if
it does not contain full support for device-mapper devices or
the mappings were removed.

Better safe than sorry - check for partition header on DM devs
and filter them out as unsuitable for PVs in case the check is
positive. Whatever the user is doing, let's do our best to prevent
unwanted corruption (...by running pvcreate on top of such device
that would corrupt the partition header).
2015-01-12 14:10:44 +01:00
..
activate dev_manager: do not mark snapshot origins as unusable devices just because of possible blocked mirror underneath 2015-01-09 11:24:16 +01:00
cache lvmetad: Re-use fmt from the VG for PVs when possible. 2015-01-06 14:27:30 +01:00
cache_segtype cleanup: remove unused headers 2014-11-13 17:49:42 +01:00
commands segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
config config: add report/compact_output lvm.conf setting to enable or isable field compacting 2014-12-05 12:00:28 +01:00
datastruct cleanup: consolidate lv_layout and lv_role reporting 2014-08-25 16:14:40 +02:00
device dev-type: filter out partitioned device-mapper devices as unsuitable for use as PVs 2015-01-12 14:10:44 +01:00
display segments: introduce lvseg_name 2014-10-24 16:39:30 +02:00
error segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
filters cleanup: remove unused headers 2014-11-13 17:49:42 +01:00
format1 thin: simplify thin volume creation 2014-10-26 18:37:13 +01:00
format_pool thin: simplify thin volume creation 2014-10-26 18:37:13 +01:00
format_text pre-release 2014-11-11 14:13:00 +00:00
freeseg segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
label debug: drop printing debug trace without labeler 2014-09-24 10:54:48 +02:00
locking locking: rename LCK_CONVERT 2014-11-18 16:50:49 +01:00
log report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
metadata metadata: add "Failed to write VG <vg_name>." on failed vg_write and revert previous patch 2015-01-09 14:04:44 +01:00
mirror segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
misc cache: use LV_PENDING_DELETE 2014-11-10 22:05:49 +01:00
mm cleanup: drop unused var 2014-11-18 16:50:49 +01:00
properties report: add separate fields for PV/VG/LV attributes 2014-07-04 15:40:17 +02:00
raid segtype: add SEG_ONLY_EXCLUSIVE flag 2014-11-10 22:05:48 +01:00
replicator cleanup: drop default implementation 2014-10-24 16:39:31 +02:00
report libdm: report: add more comments about helper macros to get reserved values 2014-12-19 09:23:05 +01:00
snapshot segtype: add SEG_ONLY_EXCLUSIVE flag 2014-11-10 22:05:48 +01:00
striped segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
thin cleanup: API get/set fixes 2014-11-10 22:05:48 +01:00
unknown segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
uuid cleanup: drop unused define 2014-03-12 19:12:34 +01:00
zero cleanup: remove unused headers 2014-11-13 17:49:42 +01:00
Makefile.in filters: add "usable device" filter 2014-09-30 13:11:58 +02:00