From bc2d9db1336e08b3f1ec9f1a3d8a7e069ab3ec6f Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 22 Sep 2003 22:04:03 +0000 Subject: [PATCH] Creates resize and uninitialize jobs now. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4796 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../core/disk_device_manager/KDiskDeviceJobFactory.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/kernel/core/disk_device_manager/KDiskDeviceJobFactory.cpp b/src/kernel/core/disk_device_manager/KDiskDeviceJobFactory.cpp index bb3904dd0e..6b64eeb220 100644 --- a/src/kernel/core/disk_device_manager/KDiskDeviceJobFactory.cpp +++ b/src/kernel/core/disk_device_manager/KDiskDeviceJobFactory.cpp @@ -4,7 +4,9 @@ #include "KDiskDeviceJob.h" #include "KDiskDeviceJobFactory.h" +#include "KResizeJob.h" #include "KScanPartitionJob.h" +#include "KUninitializeJob.h" using namespace std; @@ -41,8 +43,8 @@ KDiskDeviceJobFactory::CreateResizeJob(partition_id parentID, partition_id partitionID, off_t size, bool resizeContents) { - // not implemented - return NULL; + return new(nothrow) KResizeJob(parentID, partitionID, size, + resizeContents); } // CreateMoveJob @@ -119,8 +121,7 @@ KDiskDeviceJobFactory::CreateInitializeJob(partition_id partitionID, KDiskDeviceJob * KDiskDeviceJobFactory::CreateUninitializeJob(partition_id partitionID) { - // not implemented - return NULL; + return new(nothrow) KUninitializeJob(partitionID); } // CreateCreateChildJob