Implement CryOpenFile::flush

This commit is contained in:
Sebastian Messmer 2015-04-09 23:42:04 +02:00
parent 8a582a2396
commit c43612fae6
3 changed files with 6 additions and 1 deletions

View File

@ -27,7 +27,7 @@ CryOpenFile::~CryOpenFile() {
}
void CryOpenFile::flush() {
//throw FuseErrnoException(ENOTSUP);
_fileBlob->flush();
}
void CryOpenFile::stat(struct ::stat *result) const {

View File

@ -39,6 +39,10 @@ void FileBlob::write(const void *source, uint64_t offset, uint64_t count) {
_blob->write(source, offset + 1, count);
}
void FileBlob::flush() {
_blob->flush();
}
blockstore::Key FileBlob::key() const {
return _blob->key();
}

View File

@ -16,6 +16,7 @@ public:
ssize_t read(void *target, uint64_t offset, uint64_t count) const;
void write(const void *source, uint64_t offset, uint64_t count);
void flush();
void resize(off_t size);
off_t size() const;