Skip to content

feat(filesystem): Add InMemoryDisk struct#495

Merged
Koichi98 merged 2 commits intomainfrom
memfs
Jun 11, 2025
Merged

feat(filesystem): Add InMemoryDisk struct#495
Koichi98 merged 2 commits intomainfrom
memfs

Conversation

@Koichi98
Copy link
Contributor

Description

Added InMemoryStruct for later use in PR #483.

To use the fatfs library, it's necessary to provide a data structure that implements the Read, Write, and Seek traits. Typically, a device driver for a storage device would fulfill this role. However, to use the filesystem in memory for now, we will implement these traits on an InMemoryDisk struct that simply wraps a Vec.

Related links

#483

How was this PR tested?

Notes for reviewers

Koichi98 added 2 commits June 11, 2025 14:05
Signed-off-by: Koichi Imai <[email protected]>
Signed-off-by: Koichi Imai <[email protected]>
@Koichi98 Koichi98 marked this pull request as ready for review June 11, 2025 05:44
@Koichi98 Koichi98 requested review from veqcc and ytakano June 11, 2025 05:44
@Koichi98 Koichi98 merged commit feced72 into main Jun 11, 2025
1 check passed
@Koichi98 Koichi98 deleted the memfs branch June 11, 2025 06:14
@Koichi98 Koichi98 self-assigned this Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants