Improve disk emulation #3

Closed
opened 2021-06-09 20:46:59 +00:00 by Dreaded_X · 1 comment
Owner

Currently we generate a disk image that we work on.
For reading we can use commit a92ab3c71e, however for writing things are a little more complicated.

We can improve the current implementation, by reusing some parts for the previous commit.

Idea:
Filesystem index will be an in memory array.
When reading/writing from/to a block use this array to lookup the associated file.
When writing, if the block is not associated with a file yet, store it in memory.
When the filesystem index is updated, check if the unassociated block is now associated with a file.
If it is now associated write it to the file and free the memory, if not keep it in memory.

Currently we generate a disk image that we work on. For reading we can use commit a92ab3c71e, however for writing things are a little more complicated. We can improve the current implementation, by reusing some parts for the previous commit. Idea: Filesystem index will be an in memory array. When reading/writing from/to a block use this array to lookup the associated file. When writing, if the block is not associated with a file yet, store it in memory. When the filesystem index is updated, check if the unassociated block is now associated with a file. If it is now associated write it to the file and free the memory, if not keep it in memory.
Dreaded_X added the
Improve
label 2021-06-09 21:02:17 +00:00
Author
Owner

This is now implemented in ca7f1b3.

This is now implemented in ca7f1b3.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: z80/controller#3
No description provided.