summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* IMFS: Split linfile and memfile modulesSebastian Huber2015-02-124-165/+133
| | | | Make several functions static.
* IMFS: Introduce IMFS_mknod_controlSebastian Huber2015-02-1216-76/+94
| | | | | | Drop IMFS_node_control::node_size field and add node_size parameter to IMFS_allocate_node() and IMFS_create_node(). This reduces the size of generic nodes.
* Filesystem: Delete unused fsmountme_h handlerSebastian Huber2015-02-093-3/+0
|
* IMFS: Simplify ino generationSebastian Huber2015-02-044-5/+7
| | | | | The type of ino_t is unsigned long, so it can store a pointer. Avoid a potential integer overflow.
* IMFS: Use rtems_filesystem_make_dev_t_from_pointerSebastian Huber2015-02-043-29/+3
|
* IMFS: Reduce IMFS node typesSebastian Huber2015-01-2810-48/+21
| | | | Provide only types used by IMFS_mknod().
* IMFS: Aggregate link support in dedicated modulesSebastian Huber2015-01-284-175/+150
|
* IMFS: Replace node union with individual structSebastian Huber2015-01-2722-595/+511
| | | | | | This reduces the average node size. Add and use IMFS_GENERIC_INITIALIZER().
* Filesystem: Delete node type operationSebastian Huber2015-01-225-65/+5
| | | | Use the fstat handler instead.
* Teach rtems_tarfs_load() about symlinksNick Withers2014-12-111-0/+17
|
* imfs/imfs_handlers_link.c: Add _Assert for NULL pointerJosh Oguin2014-11-261-0/+2
| | | | | CodeSonar flagged this as a possible dereference of a NULL pointer. This should never occur so adding _Assert().
* Delete or rename MIN/MAX macros and definesSebastian Huber2014-11-211-2/+1
| | | | Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
* cpukit/libfs/src/imfs/ioman.c: Fix typoJoel Sherrill2014-10-201-1/+1
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-2134-34/+34
|
* IMFS: Improved support for generic nodesSebastian Huber2014-01-212-3/+3
| | | | | | | | | | | | | | | | The rtems_filesystem_location_info_t::node_access_2 was unused by the IMFS. Use it to hold the context of generic nodes. This makes it possible to use node handlers for objects with and without a corresponding file system node. For example network sockets created with socket() have only a file descriptor, but no corresponding file system node. The UNIX(4) domain sockets can be bound to file system nodes. In both cases the rtems_filesystem_location_info_t must provide a pointer to the socket structure used by the socket node handlers. With the context pointer (for sockets, this is the socket structure) in rtems_filesystem_location_info_t::node_access_2 the same node handlers can be used in both cases.
* IMFS: Allow sockets as generic nodesSebastian Huber2014-01-211-1/+2
|
* Filesystem: Use default kqfilter and poll handlerSebastian Huber2013-12-205-0/+10
|
* Filesystem: Add readv/writev handlersSebastian Huber2013-12-205-55/+65
| | | | | | | | | The readv() and writev() support was implemented in terms of multiple calls to the read and write handlers. This imposes a problem on device files which use an IO vector as single request entity. For example a low-level network device (e.g. BPF(4)) may use an IO vector to create one frame from multiple protocol layers each with its own IO vector entry.
* PR2160: imfs: Use ENOSYS for unsupported nodesSebastian Huber2013-12-114-7/+18
| | | | | Return an error status with errno set to ENOSYS during node creation for nodes not available in the current configuration.
* libfs/imfs: Set the FIFO control block.Chris Johns2013-12-101-1/+1
| | | | The FIFO was incorrectly set to the default control block.
* IMFS: Use IMFS_mtime_ctime_update()Sebastian Huber2013-10-272-4/+2
|
* IMFS: Fix truncate according to POSIXSebastian Huber2013-09-131-3/+2
| | | | | | | | | | | | | | | | | ftruncate() and open() with O_TRUNC shall upon successful completion mark for update the st_ctime and st_mtime fields of the file. truncate() shall upon successful completion, if the file size is changed, mark for update the st_ctime and st_mtime fields of the file. The POSIX standard "The Open Group Base Specifications Issue 7", IEEE Std 1003.1, 2013 Edition says nothing about the behaviour of truncate() if the file size remains unchanged. Future directions of the standard may mandate the behaviour specified in ftruncate(): http://austingroupbugs.net/view.php?id=489
* IMFS: Use inline functions instead of macrosSebastian Huber2013-09-131-28/+36
|
* Filesystem: Add and use rtems_filesystem_chmod()Sebastian Huber2013-09-121-19/+1
| | | | Implement POSIX requirements in the high-level file system layer.
* imfs: use safe string functionsGedare Bloom2013-09-051-3/+5
| | | | Replace strcpy and strcat with counted variants.
* imfs: check return value from mkdirGedare Bloom2013-09-051-1/+1
|
* IMFS: Resource leakGedare Bloom2013-09-051-0/+1
| | | | Free fs_info in case root_node is NULL.
* Include missing <string.h>Sebastian Huber2013-07-235-0/+8
|
* IMFS: Fix reference count for debug enabledSebastian Huber2013-06-211-3/+3
|
* libfs: Always use geteuid() and getegid()Sebastian Huber2013-03-221-7/+2
| | | | The two functions are independent of the POSIX API.
* IMFS: Fix NULL pointer accessSebastian Huber2013-03-181-9/+10
|
* IMFS: PR2093: Fix warningSebastian Huber2013-02-271-3/+2
|
* cpukit: Doxygen group fixes and many warnings addressedJoel Sherrill2013-01-101-52/+48
| | | | | | | The output of the modules.html is much improved. Most filesystem and POSIX API related groups are properly nested. Some formatting issues were addressed as were multiple inconsistencies.
* IMFS: DocumentationSebastian Huber2013-01-091-23/+36
|
* libfs: Doxygen Clean Up Task #1Alex Ivanov2013-01-081-46/+51
| | | | | | http://www.google-melange.com/gci/task/view/google/gci2012/8120204 Patch committed with fixes for whitespace issues.
* IMFS: DocumentationSebastian Huber2012-12-211-4/+146
|
* IMFS: Fix resource leak in IMFS_allocate_node()Sebastian Huber2012-12-211-1/+7
|
* libfs: Doxygen Enhancement Task #1Alex Ivanov2012-12-2021-172/+301
|
* libfs: Doxygen Enhancement Task #2Alex Ivanov2012-12-1811-45/+147
| | | | http://www.google-melange.com/gci/task/view/google/gci2012/8032207
* Filesystem: Reject removal of root nodesSebastian Huber2012-10-075-16/+8
| | | | | | | Reject the removal of file system instance root nodes in rmdir() and unlink() and return the EBUSY error status. File system instances can be removed with unmount(). Remove root node special cases in IMFS, DOSFS, and RFS.
* IMFS: TypoSebastian Huber2012-08-091-1/+1
|
* Filesystem: Change pathconf_limits_and_optionsSebastian Huber2012-05-151-1/+1
| | | | | | The pathconf_limits_and_options field of rtems_filesystem_mount_table_entry_t is now a const pointer to reduce the read-write memory demands of file system instances.
* Filesystem: Move operations to mount table entrySebastian Huber2012-05-152-2/+6
| | | | | | | | | | | The scope of the file system operations is the file system instance. The scope of the file system node handlers is the file location. The benefit of moving the operations to the mount table entry is a size reduction of the file location (rtems_filesystem_location_info_t). The code size is slightly increased due to additional load instructions. Restructure rtems_filesystem_mount_table_entry_t to improve cache efficiency.
* Filesystem: PR1255: Move offset update to handlersSebastian Huber2012-05-151-1/+10
| | | | | | | It is now the responsibility of the read() and write() handler to update the offset field of the IO descriptor (rtems_libio_t). This change makes it possible to protect the IO descriptor from concurrent access by per file locks.
* Filesystem: Add shared device IO supportSebastian Huber2012-05-152-186/+26
| | | | | The device IO file system support in IMFS, devFS, and RFS uses now a shared implementation.
* Filesystem: Use ioctl_command_tSebastian Huber2012-05-155-32/+10
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-1132-64/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* Filesystem: PR1893: Fix write and truncate handlerSebastian Huber2012-05-111-3/+18
| | | | | Space that grows due to truncate or write offsets beyond the current file size must be zero filled.
* Filesystem: PR1871: Fix O_APPENDSebastian Huber2012-05-111-3/+4
|
* Filesystem: PR1398: Fix lseek() mechanicSebastian Huber2012-05-117-109/+5
| | | | | | | | | | | | According to POSIX the lseek() function shall not, by itself, extend the size of a file. Remove the size field of rtems_libio_t. A file has only one size but may have multiple open file descriptors. Thus a file size field in the file descriptor may lead to inconsistencies. New default handlers rtems_filesystem_default_lseek_file() and rtems_filesystem_default_lseek_directory().