Adjusted the test according to the new BPartition::Resize() semantics.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4786 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -604,7 +604,14 @@ main()
|
|||||||
// test resize a partition
|
// test resize a partition
|
||||||
if (error == B_OK) {
|
if (error == B_OK) {
|
||||||
if (BPartition *partition = device.ChildAt(1)) {
|
if (BPartition *partition = device.ChildAt(1)) {
|
||||||
status_t status = partition->Resize(1024 * 200, false);
|
// uninitialize contents
|
||||||
|
status_t status = partition->Uninitialize();
|
||||||
|
if (status != B_OK) {
|
||||||
|
printf("Uninitializing the partition failed: %s\n",
|
||||||
|
strerror(status));
|
||||||
|
}
|
||||||
|
// resize
|
||||||
|
status = partition->Resize(1024 * 200);
|
||||||
if (status != B_OK) {
|
if (status != B_OK) {
|
||||||
printf("Resizing the partition failed: %s\n",
|
printf("Resizing the partition failed: %s\n",
|
||||||
strerror(status));
|
strerror(status));
|
||||||
|
|||||||
Reference in New Issue
Block a user