This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

FlashFS frename function

Hi all,

While using the demo code for file systems in sd-card using FlashFS...i observed that the function "frename(oldname, newname)" takes a lot of time if the file size of the file being renamed is large. (i am operating the sd card on spi)
For file size = approx 200KB >> time taken was about 10 secs
For file size = approx 2MB >> time taken was about 1 min
For file size = approx 5MB >> time taken was about 3 min

seems like the function is not just renaming but copying the whole data into other file with new name and then deleting the old one...Am i right ..?

Regards,
Salman

0