jkent / frogfs

Fast Read-Only General-purpose File System (ESP-IDF and ESP8266_RTOS_SDK compatible)
https://frogfs.readthedocs.io
Mozilla Public License 2.0
25 stars 32 forks source link

Fix rename not accounted in the hash computation #63

Closed X-Ryl669 closed 1 month ago

X-Ryl669 commented 1 month ago

In the current code, if a rename transform is set up, the renamed file isn't findable directly via frogfs_get_entry (it's accessible via opendir/readdir).

This is because the hash was computed on the previous name (without renaming). This patch solves the issue by using the destination name. So now, it's possible to get an entry directly and via opendir/readdir too.