Skip to content

kernel: fs: support I/O operations on directories #70

@d4ilyrun

Description

@d4ilyrun

Directories

I/O operations on directories inside the kernel are required to support the functions defined inside the POSIX dirent.h header.

The most important one is to be able to retrieve the children of a directory (readdir). We could maybe add
an additional codepath inside sys_read() that would read into a struct dirent * pointer specified by buf.

The file description's offset should represent how far we are inside the list of children.

TODO

  • readdir: fill dirent structure
  • seek/ftell: relation between file offset and children

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch: noneNot architecture specifictarget: kernelKernel related featurestype: newImplement a new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions