Open
Description
Description of defect
The description for File::truncate()
and FileHandle::truncate()
is wrong.
Both claim that "the extended area appears as if it were zero-filled."
However, at least FATFileSystem on SD card just adds random bytes at the end of the file.
I assume that this is wanted for performance reasons. But this stands in conflict to the description of the function.
Please correct the description to avoid wrong assumption here.
Target(s) affected by this defect ?
Documentation.
Toolchain(s) (name and version) displaying this defect ?
N/A
What version of Mbed-os are you using (tag or sha) ?
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
N/A
How is this defect reproduced?
Extend an existing file via File::truncate()
on a SD card with FATFileSystem. Check the content of the extended area.