mirror of
https://github.com/ksherlock/profuse.git
synced 2024-10-31 17:04:27 +00:00
5ab8fd3d87
git-svn-id: https://profuse.googlecode.com/svn/branches/profuse_interim@376 aa027e90-d47c-11dd-86d7-074df07e0730
44 lines
844 B
C++
44 lines
844 B
C++
#ifndef __DAVEXDISKIMAGE_H__
|
|
#define __DAVEXDISKIMAGE_H__
|
|
|
|
#include <string>
|
|
#include <new>
|
|
|
|
#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 BlockDevicePointer Create(const char *name, size_t blocks);
|
|
static BlockDevicePointer Create(const char *name, size_t blocks, const char *vname);
|
|
static BlockDevicePointer Open(MappedFile *);
|
|
|
|
virtual BlockCachePointer createBlockCache();
|
|
|
|
static bool Validate(MappedFile *, const std::nothrow_t &);
|
|
static bool Validate(MappedFile *);
|
|
|
|
private:
|
|
|
|
DavexDiskImage();
|
|
|
|
DavexDiskImage(MappedFile *);
|
|
|
|
|
|
bool _changed;
|
|
std::string _volumeName;
|
|
};
|
|
|
|
|
|
}
|
|
|
|
#endif
|