mirror of
https://github.com/ksherlock/profuse.git
synced 2024-12-22 20:29:59 +00:00
77e5994908
git-svn-id: https://profuse.googlecode.com/svn/branches/profuse_interim@377 aa027e90-d47c-11dd-86d7-074df07e0730
42 lines
863 B
C++
42 lines
863 B
C++
#ifndef __DISKCOPY42IMAGE_H__
|
|
#define __DISKCOPY42IMAGE_H__
|
|
|
|
#include <Device/BlockDevice.h>
|
|
#include <Device/DiskImage.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace Device {
|
|
|
|
class DiskCopy42Image : public DiskImage {
|
|
public:
|
|
virtual ~DiskCopy42Image();
|
|
|
|
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 *);
|
|
|
|
static uint32_t Checksum(void *data, size_t size);
|
|
|
|
static bool Validate(MappedFile *, const std::nothrow_t &);
|
|
static bool Validate(MappedFile *);
|
|
|
|
|
|
|
|
virtual void write(unsigned block, const void *bp);
|
|
|
|
|
|
virtual BlockCachePointer createBlockCache();
|
|
|
|
private:
|
|
|
|
DiskCopy42Image();
|
|
|
|
DiskCopy42Image(MappedFile *);
|
|
bool _changed;
|
|
};
|
|
|
|
}
|
|
|
|
#endif |