libcryfs/CryNode.cpp
2015-02-17 01:02:15 +01:00

42 lines
795 B
C++

#include "CryNode.h"
#include <sys/time.h>
#include "CryDevice.h"
#include "messmer/fspp/fuse/FuseErrnoException.h"
namespace bf = boost::filesystem;
//TODO Get rid of this in favor of an exception hierarchy
using fspp::fuse::CHECK_RETVAL;
using fspp::fuse::FuseErrnoException;
namespace cryfs {
CryNode::CryNode() {
}
CryNode::~CryNode() {
}
void CryNode::stat(struct ::stat *result) const {
result->st_mode = S_IFDIR | S_IRUSR | S_IXUSR | S_IWUSR;
return;
throw FuseErrnoException(ENOTSUP);
}
void CryNode::access(int mask) const {
return;
throw FuseErrnoException(ENOTSUP);
}
void CryNode::rename(const bf::path &to) {
throw FuseErrnoException(ENOTSUP);
}
void CryNode::utimens(const timespec times[2]) {
throw FuseErrnoException(ENOTSUP);
}
} /* namespace cryfs */