]> sourceware.org Git - lvm2.git/commit
Fix pvcreate device check.
authorMilan Broz <mbroz@redhat.com>
Wed, 17 Mar 2010 14:44:18 +0000 (14:44 +0000)
committerMilan Broz <mbroz@redhat.com>
Wed, 17 Mar 2010 14:44:18 +0000 (14:44 +0000)
commit6cf89391b642b0a50c6c098fd2b9885a910e5f57
treeaf6ba64734327e0885b41bbb0c2f13584cb0ceea
parentca5fd215097a8d6e5c50e93140c86fe051faee2e
Fix pvcreate device check.

If user try to vgcreate or vgextend non-existent VG,
these messages appears:

# vgcreate xxx /dev/xxx
  Internal error: Volume Group xxx was not unlocked
  Device /dev/xxx not found (or ignored by filtering).
  Unable to add physical volume '/dev/xxx' to volume group 'xxx'.
  Internal error: Attempt to unlock unlocked VG xxx.

(the same with existing VG and non-existing PV & vgextend)
# vgextend vg_test /dev/xxx
...

It is caused because code tries to "refresh" cache if
md filter is switched on using cache destroy.

But we can change filters and rescan even without this
machinery now, just use refresh_filters
(and reset md filter afterwards).

(Patch also  discovers cache alias bug in vgsplit test,
fix it by using better filter line.)
WHATS_NEW
lib/metadata/metadata.c
test/t-vgsplit-stacked.sh
This page took 0.699775 seconds and 5 git commands to generate.