Implement CryOpenFile::flush
This commit is contained in:
parent
8a582a2396
commit
c43612fae6
@ -27,7 +27,7 @@ CryOpenFile::~CryOpenFile() {
|
||||
}
|
||||
|
||||
void CryOpenFile::flush() {
|
||||
//throw FuseErrnoException(ENOTSUP);
|
||||
_fileBlob->flush();
|
||||
}
|
||||
|
||||
void CryOpenFile::stat(struct ::stat *result) const {
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user