littlefs-project / littlefs

A little fail-safe filesystem designed for microcontrollers
BSD 3-Clause "New" or "Revised" License
5.25k stars 803 forks source link

rename and remove issue #989

Open xinghe369 opened 5 months ago

xinghe369 commented 5 months ago
  1. call lfs_rename(lfs, "/test/test1.txt", "/test/test3.text");
  2. call lfs_remove(lfs, "/test/test3.txt");
  3. the function of lfs_remove will return -2.

D:/dspread/git/lark/third-party/littlefs-2.9.3/lfs.c:5979:trace: lfs_rename(0x7ec7f278, "/test/test1.txt", "/test/test3.text") D:/dspread/git/lark/third-party/littlefs-2.9.3/lfs.c:5983:trace: lfs_rename -> 0 D:/dspread/git/lark/third-party/littlefs-2.9.3/lfs.c:5963:trace: lfs_remove(0x7ec7f278, "/test/test3.txt") D:/dspread/git/lark/third-party/littlefs-2.9.3/lfs.c:5967:trace: lfs_remove -> -2

geky commented 5 months ago

Hi @xinghe369, thanks for creating an issue.

Unfortunately this is not enough information to know what is going wrong.

Is it possible to recreate the issue in a local test (example)?