1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib/metadata
Milan Broz acb4b5e4de 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.)
2010-03-17 14:44:18 +00:00
..
lv_alloc.h Extend core allocation code in preparation for mirrored log areas. 2010-03-01 20:00:20 +00:00
lv_manip.c Extend core allocation code in preparation for mirrored log areas. 2010-03-01 20:00:20 +00:00
merge.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
metadata-exported.h Remove unnecessary full_scan parameter from get_vgids and get_vgnames calls. 2010-03-16 16:57:03 +00:00
metadata.c Fix pvcreate device check. 2010-03-17 14:44:18 +00:00
metadata.h Fix off by 512 sizes for lvm2app. 2010-02-14 03:21:06 +00:00
mirror.c Extend core allocation code in preparation for mirrored log areas. 2010-03-01 20:00:20 +00:00
pv_alloc.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
pv_manip.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
pv_map.c Introduce is_missing_pv(). 2010-03-16 14:37:38 +00:00
pv_map.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
segtype.c Handle metadata with unknown segment types more gracefully. 2009-10-16 17:41:49 +00:00
segtype.h Improve target type compatibility checking in _percent_run(). 2010-01-15 16:35:26 +00:00
snapshot_manip.c Refactor snapshot-merge deptree and device removal to support info-by-uuid 2010-02-17 22:59:46 +00:00