From 5f6d91570719315020b18e7ee24559fcafe207ba Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 22 Sep 2003 21:51:12 +0000 Subject: [PATCH] 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 --- src/tests/kits/storage/disk_device/DiskDeviceTest.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tests/kits/storage/disk_device/DiskDeviceTest.cpp b/src/tests/kits/storage/disk_device/DiskDeviceTest.cpp index cdeec69f4f..6c861fa5e4 100644 --- a/src/tests/kits/storage/disk_device/DiskDeviceTest.cpp +++ b/src/tests/kits/storage/disk_device/DiskDeviceTest.cpp @@ -621,11 +621,17 @@ main() device.VisitEachDescendant(&visitor); } // cancel modifications - if (error == B_OK) { +/* if (error == B_OK) { error = device.CancelModifications(); if (error != B_OK) 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"); device.VisitEachDescendant(&visitor);