Skip to content

Commit

Permalink
keep partition type into account when search for deleted at same start
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fehr committed Feb 5, 2013
1 parent 616b615 commit e02d100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libstorage/src/Disk.cc
Expand Up @@ -1096,7 +1096,7 @@ int Disk::createPartition( PartitionType type, unsigned long start,
cylinderToKb(len), Region(start, len), type);
ConstPartPair pp = partPair();
ConstPartIter i = pp.begin();
while( i!=pp.end() && !(i->deleted() && i->cylStart()==start) )
while( i!=pp.end() && !(i->deleted() && i->cylStart()==start && i->type()==type) )
++i;
if( i!=pp.end() )
{
Expand Down

0 comments on commit e02d100

Please sign in to comment.