a162af3b0e
and KShadowPartition from it. KPhysicalPartition represents a partition that exists on-disk, while KShadowPartition is a partition edited by the API user, but not yet written to disk. Related changes in other classes. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3851 a95241bf-73f2-0310-859d-f6bbb57e9c96
41 lines
839 B
C++
41 lines
839 B
C++
// KFileDiskDevice.h
|
|
|
|
#ifndef _K_FILE_DISK_DEVICE_H
|
|
#define _K_FILE_DISK_DEVICE_H
|
|
|
|
#include <OS.h>
|
|
|
|
#include "KDiskDevice.h"
|
|
|
|
namespace BPrivate {
|
|
namespace DiskDevice {
|
|
|
|
class KFileDiskDevice : public KDiskDevice {
|
|
public:
|
|
KFileDiskDevice(partition_id id = -1);
|
|
virtual ~KFileDiskDevice();
|
|
|
|
status_t SetTo(const char *filePath, const char *devicePath = NULL);
|
|
void Unset();
|
|
virtual status_t InitCheck() const;
|
|
// TODO: probably superfluous
|
|
|
|
const char *FilePath() const;
|
|
|
|
// virtual void Dump(bool deep = true, int32 level = 0);
|
|
|
|
private:
|
|
static status_t _RegisterDevice(const char *file, const char *device);
|
|
static status_t _UnregisterDevice(const char *device);
|
|
|
|
private:
|
|
char *fFilePath;
|
|
};
|
|
|
|
} // namespace DiskDevice
|
|
} // namespace BPrivate
|
|
|
|
using BPrivate::DiskDevice::KFileDiskDevice;
|
|
|
|
#endif // _K_FILE_DISK_DEVICE_H
|