mirror of
https://github.com/ksherlock/profuse.git
synced 2025-01-10 07:30:09 +00:00
40 lines
763 B
C++
40 lines
763 B
C++
#ifndef __DAVEXDISKIMAGE_H__
|
|
#define __DAVEXDISKIMAGE_H__
|
|
|
|
#include <string>
|
|
|
|
#include <Device/BlockDevice.h>
|
|
#include <Device/DiskImage.h>
|
|
|
|
|
|
namespace Device {
|
|
|
|
// only supports 1 file; may be split over multiple files.
|
|
|
|
class DavexDiskImage : public DiskImage {
|
|
public:
|
|
|
|
virtual ~DavexDiskImage();
|
|
|
|
static DavexDiskImage *Create(const char *name, size_t blocks);
|
|
static DavexDiskImage *Create(const char *name, size_t blocks, const char *vname);
|
|
static DavexDiskImage *Open(MappedFile *);
|
|
|
|
virtual BlockCache *createBlockCache();
|
|
|
|
private:
|
|
|
|
DavexDiskImage(const char *, bool readOnly);
|
|
|
|
DavexDiskImage(MappedFile *);
|
|
static void Validate(MappedFile *);
|
|
|
|
bool _changed;
|
|
std::string _volumeName;
|
|
};
|
|
|
|
|
|
}
|
|
|
|
#endif
|