#include #include #include #include #include #include #include #include using namespace Device; using ProFUSE::Exception; using ProFUSE::POSIXException; #pragma mark - #pragma mark BlockDevice BlockDevice::BlockDevice() { } BlockDevice::~BlockDevice() { } void BlockDevice::zeroBlock(unsigned block) { uint8_t bp[512]; std::memset(bp, 0, 512); write(block, bp); } bool BlockDevice::mapped() { return false; } void BlockDevice::sync(unsigned block) { sync(); } void BlockDevice::sync(TrackSector ts) { sync(); }