Skip to content

Conversation

@DynamicLoader
Copy link

As described in the title, I've add support to directly read & write to a normal file. This could cancel the restriction on mounting and formatting can only work on a loop device.

The main modification is to judge the type and use stat series syscall when the file is a normal file.

Tested on Ubuntu 22.04.

@geky
Copy link
Member

geky commented Mar 13, 2025

Hi @DynamicLoader, thanks for creating a PR.

I think this is a good idea to adopt eventually, but sorry if it takes some time to merge. This is just low priority at the moment.

It may also be useful to combine with #70 (make block size required) to solve the unknown block size issue.

@ldenefle
Copy link

I'm actually quite interested by this feature too.

The reason for that is that we want to build littlefs images dynamically for various test scenarios and docker does not allow us to use loop devices in the CI as they require kernel modules (loop).
So the possibility to do everything in usermode without requiring kernel modules is super interesting.

@DynamicLoader
Copy link
Author

DynamicLoader commented Aug 29, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants