dev-mornfall-lvmcache - pvresize: Do not use pv_read (get the PV from orphan VG).
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d17cbf112bc6ada99e9ef1320bbfcb7114c153db Commit: d17cbf112bc6ada99e9ef1320bbfcb7114c153db Parent: d838501c446bccd1fbe6b4f4ad9ee2c78b5f8668 Author: Petr Rockai <[email protected]> AuthorDate: Tue Feb 19 01:54:34 2013 +0100 Committer: Petr Rockai <[email protected]> CommitterDate: Wed Jun 5 12:37:36 2013 +0200
pvresize: Do not use pv_read (get the PV from orphan VG).
--- lib/metadata/pv_manip.c | 2 +- tools/pvresize.c | 45 +++++++++++++++------------------------------ 2 files changed, 16 insertions(+), 31 deletions(-)
lib/metadata/pv_manip.c +1 -1
@@ -513,7 +513,7 @@ int pv_resize(struct physical_volume *pv,/* pv->pe_count is 0 now! We need to recalculate! */ /* If there's a VG, calculate new PE count value. */ -if (vg) { +if (vg && !is_orphan_vg (vg->name)) {/* FIXME: Maybe PE calculation should go into pv->fmt->resize? (like it is for pv->fmt->setup) */ if (!(new_pe_count =pv_size (pv) / vg->extent_size)) {
tools/pvresize.c +15 -30
61 lines not on this page · raw message