commit | 50fc010f0f9082c3bc376c80c796b0d582201d8f | [log] [tgz] |
---|---|---|
author | Chris Friedt <cfriedt@tenstorrent.com> | Wed Jun 05 12:33:06 2024 -0400 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Jun 14 14:01:05 2024 -0400 |
tree | 315e9ec371690863d1271a1fd9aa920a648dc169 | |
parent | 65020f5b1f6f9e78e6c357e57b179a9afbfd6933 [diff] |
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: Chris Friedt <cfriedt@tenstorrent.com>