struct VfsNode {
char name[VFS_MAX_NAME];
int type;
unsigned long size;
unsigned long inode;
?&struct VfsMount fs_ctx;
}Fields
VFS_TYPE_FILE / VFS_TYPE_DIR
file size in bytes (0 for dirs)
driver-specific inode number
driver-internal: the owning VfsMount
Methods
Reads up to buf.len bytes of the file at offset into buf.
Returns bytes read.
Writes buf to the file at offset. Returns bytes written.
Calls cb(entry, user) for each child of this directory. Returns the entry count, or -1 on error.