Bugzilla – Attachment 47555 Details for
Bug 112985
internal compiler error: verify_stmts failed.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
Minimal version of Disk.cc
Disk.cc (text/plain), 1.12 KB, created by
Thomas Fehr
on 2005-08-25 14:01:35 UTC
(
hide
)
Description:
Minimal version of Disk.cc
Filename:
MIME Type:
Creator:
Thomas Fehr
Created:
2005-08-25 14:01:35 UTC
Size:
1.12 KB
patch
obsolete
>#include "y2storage/Disk.h" > >using namespace std; >using namespace storage; > >int Disk::removePartition( unsigned nr ) > { > int ret = 0; > PartPair p = partPair( notDeleted ); > PartIter i = p.begin(); > while( i!=p.end() && i->nr()!=nr) > { > ++i; > } > if( ret==0 ) > { > PartitionType t = i->type(); > bool creat = i->created(); > if( creat ) > { > if( !removeFromList( &(*i) )) > ret = DISK_REMOVE_PARTITION_CREATE_NOT_FOUND; > p = partPair( notDeleted ); > } > else > i->setDeleted(); > if( ret==0 && nr>max_primary ) > { > i = p.begin(); > while( i!=p.end() ) > { > if( i->nr()>nr ) > { > i->changeNumber( i->nr()-1 ); > } > ++i; > } > } > else if( t==EXTENDED ) > { > list<Volume*> l; > i = p.begin(); > while( i!=p.end() ) > { > if( i->nr()>max_primary ) > { > if( creat ) > l.push_back( &(*i) ); > else > i->setDeleted(); > } > ++i; > } > list<Volume*>::iterator vi = l.begin(); > while( ret==0 && vi!=l.end() ) > { > if( !removeFromList( *vi )) > ret = DISK_PARTITION_NOT_FOUND; > ++vi; > } > } > } > y2milestone( "ret %d", ret ); > return( ret ); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 112985
: 47555 |
47556