Skip to content

Commit

Permalink
fix wrong size calculation when deleting thin LVs (bnc#810305)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fehr committed Mar 20, 2013
1 parent 8306009 commit 2f3e06b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libstorage/src/LvmVg.cc
Expand Up @@ -977,9 +977,12 @@ void LvmVg::getVgData( const string& name, bool exists )
for( LvmLvIter i=p.begin(); i!=p.end(); ++i )
{
//cout << "Deleted:" << *i << endl;
map<string,unsigned long> pe_map = i->getPeMap();
remLvPeDistribution( i->getLe(), pe_map, pv, pv_add );
free_pe += i->getLe();
if( !i->isThin() )
{
map<string,unsigned long> pe_map = i->getPeMap();
remLvPeDistribution( i->getLe(), pe_map, pv, pv_add );
free_pe += i->getLe();
}
}
p=lvmLvPair(lvCreated);
for( LvmLvIter i=p.begin(); i!=p.end(); ++i )
Expand Down

0 comments on commit 2f3e06b

Please sign in to comment.