Add ftruncate into file operation calls

- Add truncate into file_operations
- Move truncate to be common for mountpt_operations and file_operations
- Modify all drivers to initialize the operations struct accordingly

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2022-12-22 14:51:59 +04:00
committed by Alan Carvalho de Assis
parent 36528eed64
commit 41e9df2f3e
105 changed files with 122 additions and 25 deletions
+1
View File
@@ -90,6 +90,7 @@ static const struct file_operations g_hcsr04ops =
hcsr04_write, /* write */
NULL, /* seek */
hcsr04_ioctl, /* ioctl */
NULL, /* truncate */
hcsr04_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */