From 85a98222d4f2dc4e8d1e3558dcba9d8caa259b4c Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 2 May 2018 22:36:44 -0500 Subject: [PATCH] [ox/fs] Cleanup --- deps/ox/src/ox/fs/filestore/filestore.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/deps/ox/src/ox/fs/filestore/filestore.hpp b/deps/ox/src/ox/fs/filestore/filestore.hpp index b9627b12..bc12b5d9 100644 --- a/deps/ox/src/ox/fs/filestore/filestore.hpp +++ b/deps/ox/src/ox/fs/filestore/filestore.hpp @@ -29,17 +29,20 @@ class FileStore { virtual Error setSize(InodeId_t size) = 0; - virtual Error write(InodeId_t id, void *data, FsSize_t dataLen, uint8_t fileType = 0) = 0; - virtual Error incLinks(InodeId_t id) = 0; virtual Error decLinks(InodeId_t id) = 0; + virtual Error write(InodeId_t id, void *data, FsSize_t dataLen, uint8_t fileType = 0) = 0; + virtual Error read(InodeId_t id, void *data, FsSize_t dataSize, FsSize_t *size) = 0; virtual Error read(InodeId_t id, FsSize_t readStart, FsSize_t readSize, void *data, FsSize_t *size) = 0; - virtual ValErr read(InodeId_t id) = 0; + /** + * @return data section of the requested file + */ + virtual const ptrarith::Ptr read(InodeId_t id) = 0; virtual StatInfo stat(InodeId_t id) = 0;