Implement ftruncate function (IDFGH-6641) #8279
Labels
Resolution: Done
Issue is done internally
Status: Done
Issue is done internally
Type: Feature Request
Feature request for IDF
Is your feature request related to a problem? Please describe.
truncate
function was requested in #1980 and implemented in c77f84e, however the relatedftruncate
function was not implemented.Describe the solution you'd like
ftruncate
function in VFSftruncate
in FAT VFSDescribe alternatives you've considered
Instead of having both
truncate
andftruncate
functions in VFS interface, VFS layer could supply atruncate
implementation and only requireftruncate
to be implemented by the VFS driver. The VFS layer could implementtruncate
using driver'sopen
,ftruncate
,close
methods. This, however, would be a breaking change since we would have to replacetruncate
withftruncate
in the VFS interface.Additional context
Requested in a comment to the closed issue: #1980 (comment)
Issues that would be solved by implementing this:
The text was updated successfully, but these errors were encountered: