Repository navigation
Conversation
|
Can you add a test for this? That might also help me understand the problem we are solving here. |
|
Added a test, seems like it can be reproduced with just memory backend too 4.0.1: After PR works fine |
f34bb14 to
816c7d1
Compare
|
I recently updated |
|
Part of the documented requirements for a backend opting into emscripten/system/lib/wasmfs/file.h Lines 254 to 263 in 340aa0f It sounds like maybe we have backends that aren't doing this correctly? If so, it would be better to fix the backends to make sure the implementation is consistent with the documented intent. |
Yeah memory backend does this: But the entries don't seem to contain the file that is requested in these paths, the mounted folder itself I assume? |
They are only stored in the dcache, so check there after checking the backend
|
On the question of whether this belongs in the backends: I left a reproduction on 6.0.9 and an analysis on #18112, #18112 (comment) |
| auto string = getDir()->getName(file); | ||
| if (!string.empty()) { | ||
| return string; | ||
| } |
There was a problem hiding this comment.
It would be good to add a comment about why this matters.
As mentioned in #18112 I decided to PR my changes since I would like to use upstream emscripten for development where possible.
Basically retrieval of the CWD for mounted directories (e.g. fetchfs) will not return the correct name for the mounted directory, for example
//instead of/http_fs/