phoenix-rtos / phoenix-rtos-project

Sample project using Phoenix-RTOS
https://phoenix-rtos.com
BSD 3-Clause "New" or "Revised" License
45 stars 32 forks source link

dummyfs: extended area isn't always zero-filled after truncate/ftruncate #599

Closed damianloew closed 1 year ago

damianloew commented 1 year ago

According to POSIX mentioned area should always be zero-filled after truncating up:

badochov commented 1 year ago

I've done a PR solving this however in my testing on imx6ull I wasn't able to observe this bug even before the fix. https://github.com/phoenix-rtos/phoenix-rtos-filesystems/pull/91

damianloew commented 1 year ago

Thanks! I confirm that the above issue does no longer occur on imxrt106x target (I assume on other dummyfs targets too)