Squashed commit of the following:

fs: Add truncate() support for userfs
    fs/unionfs:  Add truncate() support to the unionfs
    fs/tmpfs:  Add ftruncate() support to tmpfs
    syscall/: Add system call support for ftruncate()
    net/route:  Adding ftruncate() support eliminates an issue in file-based routing table management.
    fs:  Add basic framework to support truncate() and ftruncate().  The infrastructure is complete.  Now, however, the actual implementation of ftruncate() will have to be done for each file system.
This commit is contained in:
Gregory Nutt
2018-01-03 16:03:56 -06:00
parent e59d747bf7
commit e4652bd3dc
25 changed files with 681 additions and 122 deletions
+3 -1
View File
@@ -1,7 +1,8 @@
/****************************************************************************
* rm/romfs/fs_romfs.h
*
* Copyright (C) 2008-2009, 2011, 2017 Gregory Nutt. All rights reserved.
* Copyright (C) 2008-2009, 2011, 2017-2018 Gregory Nutt. All rights
* reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* References: Linux/Documentation/filesystems/romfs.txt
@@ -122,6 +123,7 @@ const struct mountpt_operations romfs_operations =
NULL, /* sync */
romfs_dup, /* dup */
romfs_fstat, /* fstat */
NULL, /* truncate */
romfs_opendir, /* opendir */
NULL, /* closedir */