1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-27 07:22:49 +03:00
lvm2/lib
Dave Wysochanski 5d7fd71373 Add pv->vg to solidify link between a pv and a vg.
lvm2app needs a link back to the vg in order to use the vg handle for
memory allocations as well as other things.  This patch adds the field
to struct physical_volume, and sets pv->vg when reading a vg from disk or
extending a vg by using the helper function previously added,
add_pvl_to_vgs().  Moves and renames are handled with separate code
inside move_pv() and vgmerge().  Add pv->vg check to vg_validate().

A NULL value in pv->vg signifies membership in the orphan VG.
Note though in the case of pv_read() on a device with metadatacopies == 0,
more devices may need to be read for an authoritative answer.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
2010-04-13 17:26:36 +00:00
..
activate Fix incorrect removal of symlinks after LV deactivation fails. 2010-04-07 20:04:41 +00:00
cache Change most remaining log_error WARNING messages to log_warn. 2010-04-01 10:34:09 +00:00
commands Change most remaining log_error WARNING messages to log_warn. 2010-04-01 10:34:09 +00:00
config Don't ignore error if resuming any LV fails in resume_lvs. 2010-04-12 11:52:53 +00:00
datastruct Remove unnecessary / duplicate dm_list macros and functions. 2009-11-25 20:44:07 +00:00
device Fix is_partitioned_dev not to attempt to reopen device. 2010-04-06 17:36:41 +00:00
display Cleanup returns for void functions. 2009-12-11 13:16:37 +00:00
error Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
filters Use fixed buffer to prevent stack overflow in persistent filter dump. 2010-01-06 13:25:36 +00:00
format1 INSTALL rules updates 2010-04-09 21:42:48 +00:00
format_pool Call add_pvl_to_vgs() and del_pvl_from_vgs() from more places. 2010-04-13 17:26:03 +00:00
format_text Fix pvmove allocation to take existing parallel stripes into account. 2010-04-08 00:28:57 +00:00
freeseg Fix reporting of LV fields alongside unallocated PV segments. 2008-06-25 16:52:27 +00:00
label Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
locking Mask LCK_HOLD flag in cluster VG locks for compatibility reasons. 2010-04-13 14:36:24 +00:00
log Also honour abort_on_internal_errors when log_fn is set. 2010-03-23 18:18:49 +00:00
metadata Add pv->vg to solidify link between a pv and a vg. 2010-04-13 17:26:36 +00:00
mirror INSTALL rules updates 2010-04-09 21:42:48 +00:00
misc Autoreconf. 2010-03-23 14:44:42 +00:00
mm Better debug message for Un/Locked memory size. 2010-04-01 14:53:47 +00:00
report Use dm_report_field_int32 instead of dm_report_field_uint64 for printing '-1' 2010-02-15 20:27:33 +00:00
snapshot INSTALL rules updates 2010-04-09 21:42:48 +00:00
striped Use macro outsize() with check for error return value. 2010-01-07 14:46:51 +00:00
unknown Fix the "const discarded" warnings introduced in the unknown segment patch. 2009-10-22 10:38:07 +00:00
uuid Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
zero Attempt to load dm-zero module if zero target needed but not present. (mbroz) 2009-05-27 13:05:53 +00:00
Makefile.in INSTALL rules updates 2010-04-09 21:42:48 +00:00