libcryfs/CryOpenFile.cpp

54 lines
1.0 KiB
C++
Raw Normal View History

#include "CryOpenFile.h"
#include <sys/types.h>
#include <fcntl.h>
#include "CryDevice.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 a exception hierarchy
using fspp::fuse::CHECK_RETVAL;
2014-12-07 08:57:23 +01:00
using fspp::fuse::FuseErrnoException;
namespace cryfs {
2014-12-07 08:57:23 +01:00
CryOpenFile::CryOpenFile() {
throw FuseErrnoException(ENOTSUP);
}
CryOpenFile::~CryOpenFile() {
2014-12-07 08:57:23 +01:00
//TODO
}
2014-11-21 01:11:24 +01:00
void CryOpenFile::flush() {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
2014-11-21 01:11:24 +01:00
}
void CryOpenFile::stat(struct ::stat *result) const {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
void CryOpenFile::truncate(off_t size) const {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
int CryOpenFile::read(void *buf, size_t count, off_t offset) {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
void CryOpenFile::write(const void *buf, size_t count, off_t offset) {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
void CryOpenFile::fsync() {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
void CryOpenFile::fdatasync() {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
2014-12-07 08:57:23 +01:00
}