Commit the partition modifications (uninitialize, resize). Lo and behold, the correct jobs are created and executed. They just need to be implemented completely. :-P
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4795 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -621,11 +621,17 @@ main()
|
|||||||
device.VisitEachDescendant(&visitor);
|
device.VisitEachDescendant(&visitor);
|
||||||
}
|
}
|
||||||
// cancel modifications
|
// cancel modifications
|
||||||
if (error == B_OK) {
|
/* if (error == B_OK) {
|
||||||
error = device.CancelModifications();
|
error = device.CancelModifications();
|
||||||
if (error != B_OK)
|
if (error != B_OK)
|
||||||
printf("Cancelling modifications failed: %s\n", strerror(error));
|
printf("Cancelling modifications failed: %s\n", strerror(error));
|
||||||
}
|
}
|
||||||
|
*/ // cancel modifications
|
||||||
|
if (error == B_OK) {
|
||||||
|
error = device.CommitModifications();
|
||||||
|
if (error != B_OK)
|
||||||
|
printf("Committing modifications failed: %s\n", strerror(error));
|
||||||
|
}
|
||||||
printf("\nDevice after cancelling the changes:\n");
|
printf("\nDevice after cancelling the changes:\n");
|
||||||
device.VisitEachDescendant(&visitor);
|
device.VisitEachDescendant(&visitor);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user