Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement creating a file and performing basic I/O on it #32

Open
psarna opened this issue Nov 25, 2019 · 0 comments
Open

Implement creating a file and performing basic I/O on it #32

psarna opened this issue Nov 25, 2019 · 0 comments
Assignees
Labels
fs ZPP: FS project zpp ZPP: student project

Comments

@psarna
Copy link
Owner

psarna commented Nov 25, 2019

With basic metadata log capabilities and using the in-memory representation of the whole filesystem metadata, implement:

  • creating a file with given name and attributes
  • writing to a file at given offset
  • reading from the file at given offset

First note: since directory is represented simply as a file with specific structure (a list of dentries), creating a file should actually be the second operation to implement - writing to a file will naturally come first, as the file needs to be placed in the root directory, which means that a write to that directory must be performed.

Take note that at this stage it's sufficient to implement small writes only, i.e. writes that go straight to the metadata log and do not involve block allocation nor keeping track of which offsets belong to which blocks - these are for later. When testing this feature, assume very small writes that definitely fit in RAM.

@psarna psarna added fs ZPP: FS project zpp ZPP: student project labels Nov 25, 2019
@rokinsky rokinsky self-assigned this Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fs ZPP: FS project zpp ZPP: student project
Projects
None yet
Development

No branches or pull requests

2 participants