Creates resize and uninitialize jobs now.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4796 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2003-09-22 22:04:03 +00:00
parent 5f6d915707
commit bc2d9db133

View File

@ -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