mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:28:11 +00:00
Work on POSIX-like read() and lseek() support.
This commit is contained in:
parent
9f9b4a2382
commit
c94044a04a
11 changed files with 201 additions and 36 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "BlockDevice.h"
|
||||
#include "InodeIdentifier.h"
|
||||
#include "InodeMetadata.h"
|
||||
#include "Limits.h"
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
|
@ -27,6 +28,8 @@ public:
|
|||
virtual bool writeInode(InodeIdentifier, const ByteBuffer&) = 0;
|
||||
virtual InodeMetadata inodeMetadata(InodeIdentifier) const = 0;
|
||||
|
||||
virtual ssize_t readInodeBytes(InodeIdentifier, FileOffset offset, size_t count, byte* buffer) const = 0;
|
||||
|
||||
struct DirectoryEntry {
|
||||
String name;
|
||||
InodeIdentifier inode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue