1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/test/shell
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
..
000-basic.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
activate-minor.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
activate-missing-segment.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
activate-missing.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
activate-partial.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
activation-skip.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
clvmd-restart.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
covercmd.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
discards-thin.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
dmeventd-restart.sh tests: replace cat with $(< 2014-07-02 10:45:44 +02:00
dumpconfig.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
error-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
fsadm.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
inconsistent-metadata.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
listings.sh toollib: fix regression in parsing /dev/mapper/vg-lv 2014-11-26 17:29:35 +01:00
lock-blocking.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lock-parallel.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvchange-cache.sh test: Also test repeated --cachesettings in lvchange-cache. 2014-11-20 16:51:07 +01:00
lvchange-mirror.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvchange-partial-raid10.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvchange-partial.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvchange-raid10.sh tests: add have_cache and have_raid 2014-05-20 21:50:30 +02:00
lvchange-raid456.sh tests: add have_cache and have_raid 2014-05-20 21:50:30 +02:00
lvchange-raid.sh tests: syncaction needs kernel fix 2014-10-24 16:39:32 +02:00
lvchange-syncaction-raid.sh tests: raid syncaction test 2014-10-30 23:58:49 +01:00
lvchange-thin.sh tests: fix volume list test 2014-08-26 14:13:07 +02:00
lvconvert-cache-raid.sh tests: explicit raid sync 2014-11-14 18:12:44 +01:00
lvconvert-cache-thin.sh tests: lvconvert cache usage of thin pool 2014-10-06 15:31:44 +02:00
lvconvert-cache.sh tests: cache snapshot 2014-11-10 22:05:49 +01:00
lvconvert-mirror-basic-0.sh tests: updates 2014-02-27 13:01:04 +01:00
lvconvert-mirror-basic-1.sh tests: updates 2014-02-27 13:01:04 +01:00
lvconvert-mirror-basic-2.sh tests: updates 2014-02-27 13:01:04 +01:00
lvconvert-mirror-basic-3.sh tests: updates 2014-02-27 13:01:04 +01:00
lvconvert-mirror-basic.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
lvconvert-mirror-updown.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-mirror.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-raid10.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-raid456.sh test: Test failing due to too few PVs 2014-07-10 18:53:46 -05:00
lvconvert-raid-allocation.sh test: Fix lvconvert-raid-allocation's use of lvconvert --repair. 2014-10-07 16:12:04 +02:00
lvconvert-raid.sh raid: properly rename split image 2014-12-05 13:39:42 +01:00
lvconvert-repair-dmeventd.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-policy.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-raid-dmeventd.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-raid.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-replace.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-snapshot.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-thin.sh tests: reduce thin test 2014-11-22 18:51:02 +01:00
lvconvert-repair-transient-dmeventd.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-transient.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-snapshot.sh tests: use snapshot targets 2014-11-19 23:24:18 +01:00
lvconvert-thin-external.sh tests: new lvconvert features 2014-07-22 22:41:41 +02:00
lvconvert-thin-raid.sh tests: updates for new lvconvert 2014-07-11 13:32:52 +02:00
lvconvert-thin.sh lvconvert: earlier detection of conflicting names 2014-11-24 14:39:04 +01:00
lvconvert-twostep.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-cache.sh report: Add cache_policy and cache_settings (LV) segment fields. 2014-12-17 14:43:12 +01:00
lvcreate-large-raid10.sh tests: use old virt snaps in the test 2014-11-22 18:51:02 +01:00
lvcreate-large-raid.sh tests: use old virt snaps in the test 2014-11-22 18:51:02 +01:00
lvcreate-large.sh tests: use old virt snaps in the test 2014-11-22 18:51:02 +01:00
lvcreate-mirror.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-missing.sh tests: use aux func to disable device 2014-10-30 23:58:49 +01:00
lvcreate-operation.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-pvtags.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-raid10.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-raid.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-repair.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-signature-wiping.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
lvcreate-small-snap.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-striped-mirror.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-thin-external.sh tests: lvcreate external origin 2014-10-06 15:31:33 +02:00
lvcreate-thin-power2.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-thin-snap.sh tests: new lvcreate functionality 2014-10-24 16:39:32 +02:00
lvcreate-thin.sh thin: add missing 64KB rounding 2014-11-26 09:29:25 +01:00
lvcreate-usage.sh tests: usage of -m0 -Mn 2014-11-03 14:19:34 +01:00
lvextend-percent-extents.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvextend-snapshot-dmeventd.sh tests: ensure data hits cow 2014-07-02 15:10:10 +02:00
lvextend-snapshot-policy.sh tests: remove dmeventd usage 2014-06-19 12:48:21 +02:00
lvextend-thin-metadata-dmeventd.sh tests: detect version of thin_restore command 2014-06-17 13:43:05 +02:00
lvextend-thin.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
lvm-init.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmcache-exercise.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-ambiguous.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-client-filter.sh lvmetad: Differentiate between filtered and truly missing devices. 2014-09-10 22:58:22 +01:00
lvmetad-disabled.sh tests: replace cat with $(< 2014-07-02 10:45:44 +02:00
lvmetad-dump.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
lvmetad-lvm1.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
lvmetad-lvscan-cache.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
lvmetad-no-cluster.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-override.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
lvmetad-pvs.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-pvscan-cache.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
lvmetad-pvscan-filter.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-pvscan-md.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
lvmetad-pvscan-nomda.sh tests: replace cat with $(< 2014-07-02 10:45:44 +02:00
lvmetad-restart.sh tests: replace cat with $(< 2014-07-02 10:45:44 +02:00
lvmetad-test.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-warning.sh tests: replace cat with $(< 2014-07-02 10:45:44 +02:00
lvresize-mirror.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvresize-raid10.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvresize-raid.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvresize-rounding.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvresize-thin-external-origin.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvresize-thin-metadata.sh tests: use full option name 2014-07-22 22:41:41 +02:00
lvresize-usage.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
lvs-cache.sh report: fix segfault on NULL value hit in cache_settings field 2014-12-18 17:26:12 +01:00
mda-rollback.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
mdata-strings.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
metadata-balance.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
metadata-dirs.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
metadata.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
mirror-names.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
mirror-vgreduce-removemissing.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
name-mangling.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
nomda-missing.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
nomda-restoremissing.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
orphan-ondisk.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pool-labels.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
process-each-duplicate-vgnames.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
process-each-lv.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
process-each-pv-nomda-all.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
process-each-pv-nomda.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
process-each-pv.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
process-each-pvresize.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
process-each-vg.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
profiles-thin.sh tests: LV's zero field now reported as binary field 2014-07-10 15:30:28 +02:00
profiles.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pv-duplicate-uuid.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pv-duplicate.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pv-min-size.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pv-range-overflow.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvchange-usage.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
pvcreate-bootloaderarea.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
pvcreate-ff.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvcreate-metadata0.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvcreate-operation-md.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvcreate-operation.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvcreate-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvmove-all-segtypes.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvmove-background.sh tests: put devs into "" 2014-10-07 10:19:33 +02:00
pvmove-basic.sh test: Clean-up pvmove-basic for atomic pvmove test 2014-06-18 15:40:06 -05:00
pvmove-cache-segtypes.sh pool: fix removal of pool metadata spare 2014-11-13 13:09:07 +01:00
pvmove-raid-segtypes.sh pvmove: Enable all-or-nothing (atomic) pvmoves 2014-06-17 22:59:36 -05:00
pvmove-restart.sh tests: drop * from dmsetup 2014-09-24 10:54:48 +02:00
pvmove-thin-segtypes.sh pvmove: Enable all-or-nothing (atomic) pvmoves 2014-06-17 22:59:36 -05:00
pvremove-thin.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvremove-usage.sh test: pvs bz1108394 2014-06-12 11:56:06 +02:00
pvremove-warnings.sh pvremove: Avoid metadata re-reads & related error messages. 2015-01-06 14:27:30 +01:00
read-ahead.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
report-select.sh test: for issue fixed in previous commit 2f7f6932dc 2014-10-27 11:53:01 +01:00
snapshot-autoumount-dmeventd.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
snapshot-cluster.sh tests: test for rename of snapshot 2014-09-09 20:17:47 +02:00
snapshot-lvm1.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
snapshot-maxsize.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
snapshot-merge.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
snapshot-reactivate.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
snapshot-rename.sh tests: test for rename of snapshot 2014-09-10 22:59:13 +01:00
snapshot-usage.sh tests: use snapshot targets 2014-11-19 23:24:18 +01:00
snapshots-of-mirrors.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
stray-device-node.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
tags.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
test-partition.sh dev-type: filter out partitioned device-mapper devices as unsuitable for use as PVs 2015-01-12 14:10:44 +01:00
thin-autoumount-dmeventd.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
thin-defaults.sh tests: LV's zero field now reported as binary field 2014-07-10 15:30:28 +02:00
thin-merge.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
thin-restore.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
thin-vglock.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
thin-volume-list.sh tests: duplicate update of config 2014-11-04 15:29:22 +01:00
topology-support.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
unknown-segment.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
unlost-pv.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vg-name-from-env.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgcfgbackup-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgchange-many.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgchange-maxlv.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgchange-partial.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgchange-sysinit.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgchange-usage.sh vgchange: support clustered conversion for active lv 2014-09-17 14:41:42 +02:00
vgck.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgcreate-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgextend-restoremissing.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgextend-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgimportclone.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgmerge-operation.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgmerge-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgreduce-removemissing-snapshot.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgreduce-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgremove-corrupt-vg.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgrename-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgsplit-operation.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgsplit-raid.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgsplit-stacked.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgsplit-thin.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgsplit-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
zero-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00