1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/device
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
..
dev-cache.c dev-cache: Filter wipe does not guarantee a full /dev scan. 2014-09-10 22:57:49 +01:00
dev-cache.h report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
dev-io.c device: Fix BLKSSZGET definition check. 2014-10-13 18:15:41 +01:00
dev-luks.c device: cleanup signature wiping functions 2013-11-27 12:56:58 +01:00
dev-md.c cleanup: remove unused headers 2014-11-13 17:49:42 +01:00
dev-swap.c dev-swap: use SECTOR_SHIFT 2014-03-22 20:43:05 +01:00
dev-type.c dev-type: filter out partitioned device-mapper devices as unsuitable for use as PVs 2015-01-12 14:10:44 +01:00
dev-type.h devices: Detect rotational devices. 2014-09-16 00:44:25 +01:00
device-types.h cleanup: reorder commonly available devs in system to the front 2014-02-24 21:13:35 +01:00
device.h report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00