* Removed the BDiskDeviceJob class. Jobs won't be generated and executed
in the kernel anymore. The respective functionality will be moved into the userland. Depending on how we want the API user to interface with it, we may want to reintroduce a similar class later. * Cleared remaining references to shadow partitions. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22606 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -45,13 +45,13 @@ private:
|
||||
BDiskDevice& operator=(const BDiskDevice&);
|
||||
|
||||
static status_t _GetData(partition_id id, bool deviceOnly,
|
||||
bool shadow, size_t neededSize,
|
||||
size_t neededSize,
|
||||
user_disk_device_data** data);
|
||||
|
||||
status_t _SetTo(partition_id id, bool deviceOnly,
|
||||
bool shadow, size_t neededSize);
|
||||
size_t neededSize);
|
||||
status_t _SetTo(user_disk_device_data* data);
|
||||
status_t _Update(bool shadow, bool* updated);
|
||||
status_t _Update(bool* updated);
|
||||
status_t _Update(user_disk_device_data* data,
|
||||
bool* updated);
|
||||
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
//----------------------------------------------------------------------
|
||||
// This software is part of the OpenBeOS distribution and is covered
|
||||
// by the OpenBeOS license.
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
#ifndef _DISK_DEVICE_JOB_H
|
||||
#define _DISK_DEVICE_JOB_H
|
||||
|
||||
#include <DiskDeviceDefs.h>
|
||||
#include <String.h>
|
||||
|
||||
struct user_disk_device_job_info;
|
||||
|
||||
class BDiskDeviceJob {
|
||||
public:
|
||||
BDiskDeviceJob();
|
||||
~BDiskDeviceJob();
|
||||
|
||||
status_t SetTo(disk_job_id id);
|
||||
void Unset();
|
||||
status_t InitCheck() const;
|
||||
|
||||
disk_job_id ID() const;
|
||||
uint32 Type() const;
|
||||
partition_id PartitionID() const;
|
||||
const char *Description() const;
|
||||
|
||||
uint32 Status() const;
|
||||
float Progress() const; // [0.0, 1.0]
|
||||
status_t GetProgressInfo(disk_device_job_progress_info *info) const;
|
||||
uint32 InterruptProperties() const;
|
||||
|
||||
status_t Cancel(bool reverse = false);
|
||||
status_t Pause();
|
||||
|
||||
private:
|
||||
status_t _SetTo(user_disk_device_job_info *info);
|
||||
|
||||
friend class BDiskDeviceRoster;
|
||||
|
||||
disk_job_id fID;
|
||||
uint32 fType;
|
||||
partition_id fPartitionID;
|
||||
BString fDescription;
|
||||
};
|
||||
|
||||
#endif // _DISK_DEVICE_JOB_H
|
||||
@@ -14,7 +14,6 @@
|
||||
|
||||
class BDirectory;
|
||||
class BDiskDevice;
|
||||
class BDiskDeviceJob;
|
||||
class BDiskDeviceVisiting;
|
||||
class BDiskDeviceVisitor;
|
||||
class BDiskScannerPartitionAddOn;
|
||||
@@ -95,10 +94,6 @@ public:
|
||||
status_t GetNextDiskSystem(BDiskSystem *system);
|
||||
status_t RewindDiskSystems();
|
||||
|
||||
// Active jobs are those that are scheduled or in-progress
|
||||
status_t GetNextActiveJob(BDiskDeviceJob *job);
|
||||
status_t RewindActiveJobs();
|
||||
|
||||
partition_id RegisterFileDevice(const char *filename);
|
||||
// publishes: /dev/disk/virtual/files/<disk device ID>/raw
|
||||
status_t UnregisterFileDevice(const char *filename);
|
||||
@@ -127,9 +122,6 @@ public:
|
||||
|
||||
status_t StartWatching(BMessenger target,
|
||||
uint32 eventMask = B_DEVICE_REQUEST_ALL);
|
||||
status_t StartWatchingJob(BDiskDeviceJob *job, BMessenger target,
|
||||
uint32 eventMask = B_DEVICE_REQUEST_JOB_COMPLETE_PROGRESS);
|
||||
// TODO: Maybe better a BDiskDeviceJob::{Start,Stop}Watching()?
|
||||
status_t StopWatching(BMessenger target);
|
||||
|
||||
private:
|
||||
|
||||
@@ -187,8 +187,6 @@ private:
|
||||
bool* updated);
|
||||
void _RemoveChild(int32 index);
|
||||
|
||||
bool _IsShadow() const;
|
||||
|
||||
int32 _CountDescendants() const;
|
||||
int32 _Level() const;
|
||||
virtual bool _AcceptVisitor(BDiskDeviceVisitor* visitor,
|
||||
|
||||
Reference in New Issue
Block a user