summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/defaults (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Filesystem: Use ENOTSUP for default mount/unmountSebastian Huber2015-02-122-2/+2
|
* Filesystem: Delete unused fsmountme_h handlerSebastian Huber2015-02-092-28/+0
|
* Filesystem: Delete node type operationSebastian Huber2015-01-222-30/+0
| | | | Use the fstat handler instead.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-2140-40/+40
|
* libcsupport: Accept NULL for zero-length entriesSebastian Huber2013-12-202-20/+28
|
* Filesystem: Use default kqfilter and poll handlerSebastian Huber2013-12-201-0/+2
|
* Filesystem: Add readv/writev handlersSebastian Huber2013-12-203-1/+123
| | | | | | | | | 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.
* statvfs filesystem handlers: Remove restrictJoel Sherrill2013-11-271-2/+2
|
* statvfs and ALL filesystem handlers: Add restrict keyword.Daniel Ramirez2013-11-211-2/+2
|
* Filesystem: Add kernel event filter handlerSebastian Huber2013-11-041-0/+38
| | | | | | This handler is necessary to implement the KQUEUE(2) system calls. Add <sys/event.h> from FreeBSD 8.4.
* Filesystem: Add poll() handlerSebastian Huber2013-11-041-0/+37
| | | | | | | This handler is necessary to implement the SELECT(2) and POLL(2) system calls. Add <sys/poll.h> from FreeBSD 8.4.
* Filesystem: Use ENOTTY for default ioctl() handlerSebastian Huber2013-10-311-1/+1
| | | | This is in line with Linux and FreeBSD.
* Return EINVAL in default ftruncate() handlerSebastian Huber2013-10-111-1/+1
| | | | | According to POSIX this case is implementation defined. Linux and FreeBSD return EINVAL.
* Filesystem: Avoid usage of uninitialized variableSebastian Huber2013-08-231-2/+2
| | | | This is a cosmetic fix. There was no bug.
* libfs: Doxygen Enhancement Task #4Ayush Awasthi2012-12-2820-0/+140
|
* libfs: Doxygen Enhancement Task #5Mathew Kallada2012-12-286-0/+42
|
* libfs: Doxygen Enhancement Task #3Alex Ivanov2012-12-287-0/+42
|
* Filesystem: PR1619: Use ENOSYS for default statvfsSebastian Huber2012-11-221-1/+1
| | | | | POSIX does not specify an error number in case the file system does not support this call. Use the Linux value.
* Filesystem: Add const qualifier to lock/unlockSebastian Huber2012-05-151-2/+2
|
* Filesystem: Use ioctl_command_tSebastian Huber2012-05-151-5/+7
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-1125-50/+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: PR1398: Fix lseek() mechanicSebastian Huber2012-05-112-3/+81
| | | | | | | | | | | | 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().
* Filesystem: New defaults fsync_h and fdatasync_hSebastian Huber2012-03-134-27/+34
| | | | | | | New defaults rtems_filesystem_default_fsync_or_fdatasync() and rtems_filesystem_default_fsync_or_fdatasync_success() for fsync_h and fdatasync_h. The rtems_filesystem_default_fsync_or_fdatasync() sets now errno to EINVAL according to POSIX.
* Filesystem: Change error indicationSebastian Huber2012-03-131-4/+6
| | | | Change error indication to ESPIPE in rtems_filesystem_default_lseek().
* Filesystem: New functionSebastian Huber2012-03-131-0/+29
| | | | New function rtems_filesystem_default_lseek_success().
* Filesystem: Reference counting for locationsSebastian Huber2012-03-1328-173/+254
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o A new data structure rtems_filesystem_global_location_t was introduced to be used for o the mount point location in the mount table entry, o the file system root location in the mount table entry, o the root directory location in the user environment, and o the current directory location in the user environment. During the path evaluation global start locations are obtained to ensure that the current file system instance will be not unmounted in the meantime. o The user environment uses now reference counting and is protected from concurrent access. o The path evaluation process was completely rewritten and simplified. The IMFS, RFS, NFS, and DOSFS use now a generic path evaluation method. Recursive calls in the path evaluation have been replaced with iteration to avoid stack overflows. Only the evaluation of symbolic links is recursive. No dynamic memory allocations and intermediate buffers are used in the high level path evaluation. No global locks are held during the file system instance specific path evaluation process. o Recursive symbolic link evaluation is now limited by RTEMS_FILESYSTEM_SYMLOOP_MAX. Applications can retrieve this value via sysconf(). o The device file system (devFS) uses now no global variables and allocation from the workspace. Node names are allocated from the heap. o The upper layer lseek() performs now some parameter checks. o The upper layer ftruncate() performs now some parameter checks. o unmask() is now restricted to the RWX flags and protected from concurrent access. o The fchmod_h and rmnod_h file system node handlers are now a file system operation. o The unlink_h operation has been removed. All nodes are now destroyed with the rmnod_h operation. o New lock_h, unlock_h, clonenod_h, and are_nodes_equal_h file system operations. o The path evaluation and file system operations are now protected by per file system instance lock and unlock operations. o Fix and test file descriptor duplicate in fcntl(). o New test fstests/fsnofs01.
* Removed fpathconf file system node handler.Sebastian Huber2012-02-022-23/+0
| | | | There existed no calling function for this handler.
* 2011-11-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-11-062-3/+3
| | | | | | | PR1945/cpukit * libfs/src/defaults/default_ftruncate.c, libfs/src/defaults/default_lseek.c: Replace rtems_off64_t with off_t.
* 2010-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-09-271-3/+1
| | | | | * libfs/src/defaults/default_close.c: Return 0 instead of an error status.
* 2010-08-26 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-08-272-2/+0
| | | | | | * libfs/src/defaults/default_evalpath.c, libfs/src/defaults/default_evaluate_link.c: Removed superfluous assignment.
* 2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-08-251-1/+1
| | | | | | | | | | | | * libfs/src/imfs/imfs_fcntl.c: Removed file. * libfs/Makefile.am: Reflect change from above. * libfs/src/defaults/default_fcntl.c: Return 0 instead of -1 and errno. * libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_fifo.c, libfs/src/imfs/imfs_handlers_directory.c, libfs/src/imfs/imfs_handlers_memfile.c, libfs/src/nfsclient/src/nfs.c, libfs/src/rfs/rtems-rfs-rtems-dir.c, libfs/src/rfs/rtems-rfs-rtems-file.c, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs-rtems.h: Use default file system handlers.
* 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-07-154-0/+143
| | | | | | | | | | | | | | | | * libcsupport/include/rtems/libio.h: Changed rtems_filesystem_node_types_t to an enum. Declare rtems_filesystem_handlers_default, rtems_filesystem_operations_default, rtems_filesystem_default_evalpath(), rtems_filesystem_default_evalformake, and rtems_filesystem_default_node_type(). * libfs/src/dosfs/msdos.h: Fixed msdos_node_type() prototype. * libfs/src/defaults/default_evalformake.c, libfs/src/defaults/default_handlers.c, libfs/src/defaults/default_node_type.c, libfs/src/defaults/default_ops.c: New files. * libfs/Makefile.am: Reflect changes above.
* 2010-07-03 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-07-032-2/+2
| | | | | | | * libcsupport/include/rtems/libio.h, libfs/src/defaults/default_read.c, libfs/src/defaults/default_readlink.c, libfs/src/rfs/rtems-rfs-rtems.c: Correct types and prototypes to eliminate warnings.
* 2010-06-30 Jennifer.Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett2010-06-301-0/+24
| | | | | | * libcsupport/include/rtems/libio.h, libfs/Makefile.am: Added filesystem default mknod method. * libfs/src/defaults/default_mknod.c: New file.
* 2010-06-29 Jennifer.Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett2010-06-2917-11/+144
| | | | | | | | | | | | | | | | | | | | | | | | | * libcsupport/include/rtems/libio.h, libfs/Makefile.am, libfs/src/defaults/default_chown.c, libfs/src/defaults/default_evalpath.c, libfs/src/defaults/default_freenode.c, libfs/src/defaults/default_fsmount.c, libfs/src/defaults/default_link.c, libfs/src/defaults/default_mount.c, libfs/src/defaults/default_rename.c, libfs/src/defaults/default_statvfs.c, libfs/src/defaults/default_symlink.c, libfs/src/defaults/default_unlink.c, libfs/src/defaults/default_utime.c, libfs/src/devfs/devfs_init.c, libfs/src/dosfs/msdos_init.c, libfs/src/imfs/imfs_init.c, libfs/src/nfsclient/src/nfs.c, libfs/src/rfs/rtems-rfs-rtems.c, wrapup/Makefile.am: Fixed typo in default names. Added default methods into filesystem tables. * libfs/src/defaults/default_close.c, libfs/src/defaults/default_evaluate_link.c, libfs/src/defaults/default_fpathconf.c, libfs/src/defaults/default_fsunmount.c, libfs/src/defaults/default_open.c, libfs/src/defaults/default_unmount.c: New files.
* 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-06-2923-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | * libfs/src/defaults/default_chown.c, libfs/src/defaults/default_evalpath.c, libfs/src/defaults/default_fchmod.c, libfs/src/defaults/default_fcntl.c, libfs/src/defaults/default_fdatasync.c, libfs/src/defaults/default_freenode.c, libfs/src/defaults/default_fsmount.c, libfs/src/defaults/default_fstat.c, libfs/src/defaults/default_fsync.c, libfs/src/defaults/default_ftruncate.c, libfs/src/defaults/default_ioctl.c, libfs/src/defaults/default_link.c, libfs/src/defaults/default_lseek.c, libfs/src/defaults/default_mount.c, libfs/src/defaults/default_read.c, libfs/src/defaults/default_readlink.c, libfs/src/defaults/default_rename.c, libfs/src/defaults/default_rmnod.c, libfs/src/defaults/default_statvfs.c, libfs/src/defaults/default_symlink.c, libfs/src/defaults/default_unlink.c, libfs/src/defaults/default_utime.c, libfs/src/defaults/default_write.c: Add include of rtems/seterr.h
* 2010-06-25 Jennifer Averett <Jennifer.Averett@OARcorp.comJennifer Averett2010-06-2523-0/+497
* libcsupport/include/rtems/libio.h, libfs/Makefile.am: Added default filesystem handlers. * libfs/src/defaults/default_chown.c, libfs/src/defaults/default_evalpath.c, libfs/src/defaults/default_fchmod.c, libfs/src/defaults/default_fcntl.c, libfs/src/defaults/default_fdatasync.c, libfs/src/defaults/default_freenode.c, libfs/src/defaults/default_fsmount.c, libfs/src/defaults/default_fstat.c, libfs/src/defaults/default_fsync.c, libfs/src/defaults/default_ftruncate.c, libfs/src/defaults/default_ioctl.c, libfs/src/defaults/default_link.c, libfs/src/defaults/default_lseek.c, libfs/src/defaults/default_mount.c, libfs/src/defaults/default_read.c, libfs/src/defaults/default_readlink.c, libfs/src/defaults/default_rename.c, libfs/src/defaults/default_rmnod.c, libfs/src/defaults/default_statvfs.c, libfs/src/defaults/default_symlink.c, libfs/src/defaults/default_unlink.c, libfs/src/defaults/default_utime.c, libfs/src/defaults/default_write.c: New files.