1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib
Dave Wysochanski a6a4941504 Move increment of vg->pv_count from import_pool_vg() to import_pool_pvs().
Move the increment of vg->pv_count next to the place where we add to
vg->pvs.  It looks safe to do this since the only caller of import_pool_vg()
calls import_pool_pvs() immediately afterward, and there is no way
import_pool_vg() can fail (always returns 1).  However, if there's a
memory allocation failure inside import_pool_pvs(), we will end up with
a different count in vg->pv_count that with the original code.  In any
case, vg->pv_count should be as close to dm_list_size(&vg->pvs) as
possible, as is the case everywhere else in the code.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
2010-04-13 17:25:26 +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 Move increment of vg->pv_count from import_pool_vg() to import_pool_pvs(). 2010-04-13 17:25:26 +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 Permit mimage LVs to be striped in lvcreate and lvresize. 2010-04-09 01:00:10 +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