Skip to content

Incorrect FileHandle::truncate() description. #15345

Open
@daniel-starke

Description

@daniel-starke

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) ?

09734a8

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions