Skip to content
Commit 50fc010f authored by Chris Friedt's avatar Chris Friedt Committed by Anas Nashif
Browse files

posix + fdtable: move zvfs_ftruncate() to fdtable.c



Move the zvfs_ftruncate() call from fs.c to fdtable.c, as file
types other than regular files can also be truncated.

Instead of hard-wiring zvfs_ftruncate() to fs_truncate(),
add a new ZVFS_IOCTL_TRUNCATE so that the operation can be
handled with other ioctl() operations.

Signed-off-by: default avatarChris Friedt <cfriedt@tenstorrent.com>
parent 65020f5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment