Brian Pugh

Results 342 comments of Brian Pugh

Im a bit confused on how this feature would work; `lfs_file_open` fails and then you just set the `flags` field. Can you explain and add a unit test? thanks!

@donghengqaz , any thoughts on this? Would love to merge your PRs

so @donghengqaz to merge this, I'm going to need a few things: 1. Version guards since `O_DIRECTORY` only seems to be in >=v4.3 ``` #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 3, 0)...

So I'm working on branch: https://github.com/joltwallet/esp_littlefs/tree/multi-fd-sync I added your code snippet as a unit test, and there is some non-determinism going on. It *usually* works the first time, but fails...

so within my port, the function `lfs_file_open` will be called twice, and two unique file descriptors will be returned. This means there are also two independent `lfs_file_t` structures. I'm looking...

operating under the assumption that upstream littlefs cannot handle the same file being open multiple times (waiting to hear back from their authors), I can add this functionality to my...

that's exactly how I was going to implement it 👍 . I can work on that more this evening. It seems simpler to have a count in the `vfs_littlefs_file_t` struct...

@atanisoft I implemented (and merged) the lazy solution where the same small-integer FD is returned. It required significantly less code change, and doing it the "proper" way may have some...

I can't see your comment on the PR, are you sure you submitted it? Also, after sleeping on it, I realized that this fix doesn't totally solve your issue, unless...