1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-31 05:47:43 +03:00
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
..
2014-10-30 23:58:49 +01:00
2014-10-24 16:39:30 +02:00
2014-10-30 23:58:49 +01:00
2014-11-13 17:49:42 +01:00
2014-11-11 14:13:00 +00:00
2014-10-30 23:58:49 +01:00
2014-11-18 16:50:49 +01:00
2014-10-30 23:58:49 +01:00
2014-11-10 22:05:49 +01:00
2014-11-18 16:50:49 +01:00
2014-11-10 22:05:48 +01:00
2014-10-30 23:58:49 +01:00
2014-11-10 22:05:48 +01:00
2014-10-30 23:58:49 +01:00
2014-03-12 19:12:34 +01:00
2014-11-13 17:49:42 +01:00