sysprog21 / simplefs

A simple native file system for Linux kernel
Other
374 stars 91 forks source link

Reimplement the read and the write operations #62

Closed HotMercury closed 3 months ago

HotMercury commented 3 months ago

problem: Currently, simplefs does not implement read and write operations and therefore uses the default implementation provided by the Linux kernel. Unfortunately, this implementation assumes that the data blocks are filled contiguously, which leads to potential performance and usability problems.

Implemented simplefs_file_read:

Implemented simplefs_file_write:

Both functions include proper error handling, resource management, and synchronization to ensure data store in disk.

Close #57

jserv commented 3 months ago

Thank @HotMercury for contributing!