libcryfs/CryFile.cpp

38 lines
702 B
C++
Raw Normal View History

#include "CryFile.h"
#include "CryDevice.h"
#include "CryOpenFile.h"
2015-02-17 01:02:15 +01:00
#include "messmer/fspp/fuse/FuseErrnoException.h"
namespace bf = boost::filesystem;
//TODO Get rid of this in favor of exception hierarchy
using fspp::fuse::CHECK_RETVAL;
2014-12-07 08:57:23 +01:00
using fspp::fuse::FuseErrnoException;
using std::unique_ptr;
using std::make_unique;
namespace cryfs {
2014-12-09 17:19:59 +01:00
CryFile::CryFile(unique_ptr<FileBlock> block)
: _block(std::move(block)) {
}
CryFile::~CryFile() {
}
2014-11-16 00:05:28 +01:00
unique_ptr<fspp::OpenFile> CryFile::open(int flags) const {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
void CryFile::truncate(off_t size) const {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
void CryFile::unlink() {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
2014-12-07 08:57:23 +01:00
}