Partially implemented the class. Well, save the entirely unimportant Do() method, which prints only some debug output for now. ;-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4792 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,3 +1,36 @@
|
|||||||
// KResizeJob.cpp
|
// KResizeJob.cpp
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include <DiskDeviceDefs.h>
|
||||||
|
|
||||||
#include "KResizeJob.h"
|
#include "KResizeJob.h"
|
||||||
|
|
||||||
|
// debugging
|
||||||
|
//#define DBG(x)
|
||||||
|
#define DBG(x) x
|
||||||
|
#define OUT printf
|
||||||
|
|
||||||
|
// constructor
|
||||||
|
KResizeJob::KResizeJob(partition_id parentID, partition_id partitionID,
|
||||||
|
off_t size, bool resizeContents)
|
||||||
|
: KDiskDeviceJob(B_DISK_DEVICE_JOB_RESIZE, partitionID, parentID),
|
||||||
|
fResizeContents(resizeContents)
|
||||||
|
{
|
||||||
|
SetDescription("uninitializing partition");
|
||||||
|
}
|
||||||
|
|
||||||
|
// destructor
|
||||||
|
KResizeJob::~KResizeJob()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// Do
|
||||||
|
status_t
|
||||||
|
KResizeJob::Do()
|
||||||
|
{
|
||||||
|
// TODO: implement
|
||||||
|
DBG(OUT("KResizeJob::Do(%ld)\n", PartitionID()));
|
||||||
|
return B_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,10 +10,14 @@ namespace DiskDevice {
|
|||||||
|
|
||||||
class KResizeJob : public KDiskDeviceJob {
|
class KResizeJob : public KDiskDeviceJob {
|
||||||
public:
|
public:
|
||||||
KResizeJob(partition_id parent, partition_id partition, off_t size);
|
KResizeJob(partition_id parentID, partition_id partitionID, off_t size,
|
||||||
|
bool resizeContents);
|
||||||
virtual ~KResizeJob();
|
virtual ~KResizeJob();
|
||||||
|
|
||||||
virtual status_t Do();
|
virtual status_t Do();
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool fResizeContents;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace DiskDevice
|
} // namespace DiskDevice
|
||||||
|
|||||||
Reference in New Issue
Block a user