mirror of
https://github.com/ksherlock/profuse.git
synced 2025-01-09 15:30:57 +00:00
c44145f551
git-svn-id: https://profuse.googlecode.com/svn/branches/profuse_interim@343 aa027e90-d47c-11dd-86d7-074df07e0730
42 lines
698 B
C++
42 lines
698 B
C++
#ifndef __UNIVERSALDISKIMAGE_H__
|
|
#define __UNIVERSALDISKIMAGE_H__
|
|
|
|
|
|
#include <Device/BlockDevice.h>
|
|
#include <Device/DiskImage.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace Device {
|
|
|
|
class UniversalDiskImage : public DiskImage {
|
|
public:
|
|
|
|
|
|
|
|
static UniversalDiskImage *Create(const char *name, size_t blocks);
|
|
static UniversalDiskImage *Open(MappedFile *);
|
|
|
|
virtual bool readOnly();
|
|
|
|
virtual BlockCachePointer createBlockCache();
|
|
|
|
|
|
private:
|
|
|
|
UniversalDiskImage();
|
|
|
|
UniversalDiskImage(MappedFile *);
|
|
static void Validate(MappedFile *);
|
|
|
|
uint32_t _format;
|
|
uint32_t _flags;
|
|
uint32_t _blocks;
|
|
uint32_t _dataOffset;
|
|
uint32_t _dataLength;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|