summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-03-152011-03-15 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-19/+16
* libfs/src/dosfs/msdos_format.c: Address Coverity issue 183 which was where an expression evaluated to a constant and issue 185 which was a potential (although unlikely in expected usage) time-of-check, time-of-use race condition.
2011-03-152011-03-15 Chris Johns <chrisj@rtems.org>Chris Johns3-176/+77
* libfs/src/rfs/rtems-rfs-rtems-file.c, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs-rtems.h: The fix to the removal of file_info from iop was broken. The node_access field must be the inode number in the RFS because the file system ops provides no way to tell is a stat call is the result of stat, fstat, or lstat. The solution is to move the file handle to node_access_2 which is also shared with doff but these do not overlap.
2011-03-152011-03-15 Chris Johns <chrisj@rtems.org>Chris Johns1-1/+1
PR 1757/filesystem * libfs/src/rfs/rtems-rfs-block-pos.h: Fix the bug in equal compare.
2011-03-152011-03-15 Chris Johns <chrisj@rtems.org>Chris Johns8-106/+245
PR 1763/shell * libmisc/shell/hexdump-conv.c: Remove debug hacks. PR 1757/filesystem * libfs/src/rfs/rtems-rfs-block-pos.h, libfs/src/rfs/rtems-rfs-block.h, libfs/src/rfs/rtems-rfs-file.c, libfs/src/rfs/rtems-rfs-rtems-file.c: Set the file size in iop-size when a file is open. Fix lseek to end of file then write for sizes less than half the file system block size. * libfs/src/rfs/rtems-rfs-rtems-dev.c, libfs/src/rfs/rtems-rfs-rtems-dir.c, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs-rtems.h: Fix the fstat and fchmod calls due to the change in the iop struct where pathinfo went away. The node_access field in pathinfo was overloaded.
2011-03-142011-03-14 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-0/+3
* libfs/src/imfs/deviceerrno.c: Add RTEMS_INVALID_CLOCK, RTEMS_INVALID_NODE, and RTEMS_NOT_CONFIGURED.
2011-03-032011-03-03 Chris Johns <chrisj@rtems.org>Chris Johns1-0/+15
* libcsupport/src/mknod.c, libfs/src/rfs/rtems-rfs-inode.c: PR 1749. Fix the incorrect handling of the file type in the mode value to reject invalid types as per the standard.
2011-02-232011-02-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-3/+0
* libfs/src/dosfs/msdos_misc.c: Don't include <strings.h>.
2011-02-07011-02-08 Brett Swimley <bswimley@advanced.pro>Chris Johns1-0/+6
* libfs/src/rfs/rtems-rfs-rtems.c: Fix bug where the eval path did not close an inode.
2011-01-042011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2-5/+5
* libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_readlink.c: readlink filesystem entry should return ssize_t.
2011-01-042011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-6/+6
* libfs/src/nfsclient/src/nfs.c: readlink filesystem entry should return ssize_t.
2010-12-282010-12-28 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-1/+1
* libfs/src/dosfs/msdos_conv.c: Fixed convertion of half seconds to seconds.
2010-12-282010-12-28 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-4/+14
* libfs/src/dosfs/msdos_misc.c: Create short file names acceptable for Windows.
2010-12-272010-12-27 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber3-6/+8
* libfs/src/dosfs/msdos.h, libfs/src/dosfs/msdos_misc.c, libfs/src/dosfs/msdos_create.c: Create valid create and modfied date and time.
2010-11-252010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber4-5/+5
* libfs/src/dosfs/fat_file.c, libfs/src/imfs/imfs_debug.c, libfs/src/imfs/imfs_directory.c, libfs/src/imfs/imfs_getchild.c, posix/src/killinfo.c, score/inline/rtems/score/schedulerpriority.inl, score/inline/rtems/score/watchdog.inl, score/src/apiext.c, score/src/chain.c, score/src/coremsgflushsupp.c, score/src/coremsginsert.c, score/src/objectshrinkinformation.c, score/src/schedulerpriorityyield.c, score/src/threadqdequeuepriority.c, score/src/threadqenqueuepriority.c, score/src/threadqextractpriority.c, score/src/threadqfirstfifo.c, score/src/threadqfirstpriority.c, score/src/threadyieldprocessor.c, score/src/userextthreadbegin.c, score/src/userextthreadcreate.c, score/src/userextthreaddelete.c, score/src/userextthreadrestart.c, score/src/userextthreadstart.c, score/src/userextthreadswitch.c, score/src/watchdogreportchain.c: Avoid chain API violations.
2010-10-182010-10-19 Chris Johns <chrisj@rtems.org>Chris Johns1-1/+4
* libfs/src/rfs/rtems-rfs-rtems-file.c: Add missing unlock in write. Return the error code in close.
2010-10-112010-10-11 Chris Johns <chrisj@rtems.org>Chris Johns10-97/+106
* libfs/src/rfs/rtems-rfs-trace.c, libfs/src/rfs/rtems-rfs-trace.h: Add inode-delete. * libfs/src/rfs/rtems-rfs-shell.c: Fix formatting. * libfs/src/rfs/rtems-rfs-rtems-dir.c: Use ssize_t. Fix spelling. * libfs/src/rfs/rtems-rfs-block.c: Fix rtems_rfs_block_get_bpos to return the position correctly. A bpos does not have any special processing. Do no reset the buffer handle when shrinking indirectly. * libfs/src/rfs/rtems-rfs-inode.c: Add trace. * libfs/src/rfs/rtems-rfs-format.c: Fix comments. * libfs/src/rfs/rtems-rfs-group.c: Limit the inodes to the blocks in a group so the accounting works. * libfs/src/rfs/rtems-rfs-dir.c: PR 1705. Fix handling the offsets when deleting an entry. * libfs/src/rfs/rtems-rfs-buffer.h: Remove rtems_rfs_buffer_handle_reset. It is not needed and dangerous.
2010-09-272010-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-3/+1
* libfs/src/defaults/default_close.c: Return 0 instead of an error status.
2010-08-28Just comment out line.Joel Sherrill1-0/+1
2010-08-282010-08-28 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-1/+0
* libfs/src/pipe/pipe.c: Remove unreachable line flagged by Coverity as dead code.
2010-08-272010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-1/+1
PR 1693/filesystem * libfs/src/imfs/memfile.c: IMFS_memfile_get_block_pointer() was checking incorrect pointer and thus had dead code.
2010-08-272010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2-7/+4
PR 1692/filesystem * libcsupport/include/rtems/libio.h, libfs/src/devfs/devfs_eval.c, libfs/src/imfs/imfs_eval.c: Fix implementation and use of rtems_libio_is_valid_perms().
2010-08-272010-08-26 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2-2/+0
* libfs/src/defaults/default_evalpath.c, libfs/src/defaults/default_evaluate_link.c: Removed superfluous assignment.
2010-08-262010-08-26 Chris Johns <chrisj@rtems.org>Chris Johns2-11/+18
* libfs/src/defaults/default_evaluate_link.c: Remove assignment. * libfs/src/rfs/rtems-rfs-file.c: Check then load the inode is not present on the close. * libfs/src/rfs/rtems-rfs-format.c: Initialise the buffer chain.
2010-08-252010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber12-209/+32
* 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-08-232010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+1
* libblock/src/flashdisk.c, libblock/src/nvdisk.c, libcsupport/src/ioctl.c, libfs/src/dosfs/fat_file.c: Add va_end().
2010-08-232010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill3-7/+11
CID 99 CID 100 CID 101 CID 102 * libfs/src/dosfs/fat_file.c, libfs/src/dosfs/msdos.h, libfs/src/dosfs/msdos_misc.c: Resolve invalid use of const identified by Coverity scanner.
2010-08-182010-08-18 Chris Johns <chrisj@rtems.org>Chris Johns1-2/+1
PR 1677/filesystem * libfs/src/imfs/imfs_creat.c: Fix creating of a file. Lost in the change from a switch statement.
2010-08-132010-08-13 Chris Johns <chrisj@rtems.org>Chris Johns1-2/+2
* libfs/src/imfs/imfs_eval.c: Add the missing ';' for the debug case.
2010-08-102010-08-09 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill4-12/+13
PR 1660/filesystem * libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.h: Changed int pipe_release to void pipe_release. * libfs/src/imfs/imfs_fifo.c: Corresponding change to IMFS_fifo_close since pipe_release does not return any error. * libfs/src/imfs/imfs_initsupp.c: Changes to improve IMFS_determine_bytes_per_block
2010-08-082010-08-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+1
* libfs/src/imfs/imfs.h: Fix typo.
2010-08-022010-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill5-82/+47
* libfs/src/imfs/imfs_creat.c, libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_mknod.c, libfs/src/imfs/imfs_readlink.c, libfs/src/pipe/fifo.c: Clean up for coverage improvements and formatting.
2010-07-302010-07-30 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill5-218/+58
* libcsupport/src/fstat.c, libcsupport/src/rmdir.c, libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_creat.c, libfs/src/imfs/imfs_debug.c, libfs/src/imfs/imfs_getchild.c, libfs/src/imfs/memfile.c: Add IMFS_assert. Clean up and remove all checks which are redundant with system call layer. Formatting.
2010-07-272010-07-27 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-2/+3
* libfs/src/imfs/imfs_load_tar.c, libmisc/untar/untar.c: Now supports both pax and GNU tar created tar files.
2010-07-262010-07-26 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-4/+3
* libfs/src/imfs/imfs_load_tar.c: Formatting.
2010-07-232010-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-4/+10
PR 1627/testing * libfs/src/devfs/devstat.c:
2010-07-152010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2-24/+9
* libfs/src/imfs/imfs.h: Changed IMFS_jnode_types_t to an enum. Removed IMFS_NUMBER_OF_TYPES define. * libfs/src/imfs/imfs_debug.c: Removed IMFS_types.
2010-07-152010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber4-6/+6
* libcsupport/include/rtems/libio_.h: Removed rtems_filesystem_null_handlers. * libcsupport/src/fs_null_handlers.c: Removed file. * libcsupport/Makefile.am: Reflect change above. * libfs/src/nfsclient/src/nfs.c, libfs/src/imfs/imfs_creat.c, libfs/src/imfs/imfs_init.c, libfs/src/imfs/miniimfs_init.c: Use rtems_filesystem_handlers_default instead of rtems_filesystem_null_handlers. * libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c: Initialize handler and operations table with proper defaults.
2010-07-152010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber14-68/+50
* libcsupport/include/rtems/libio.h: Removed file_info and handlers fields in rtems_libio_t. * libcsupport/src/close.c, libcsupport/src/fcntl.c, libcsupport/src/fdatasync.c, libcsupport/src/fstat.c, libcsupport/src/fsync.c, libcsupport/src/ftruncate.c, libcsupport/src/getdents.c, libcsupport/src/ioctl.c, libcsupport/src/libio_sockets.c, libcsupport/src/lseek.c, libcsupport/src/open.c, libcsupport/src/read.c, libcsupport/src/readv.c, libcsupport/src/write.c, libcsupport/src/writev.c, libfs/src/devfs/devclose.c, libfs/src/devfs/devioctl.c, libfs/src/devfs/devopen.c, libfs/src/devfs/devread.c, libfs/src/devfs/devwrite.c libfs/src/dosfs/msdos_dir.c libfs/src/dosfs/msdos_file.c libfs/src/imfs/deviceio.c libfs/src/imfs/imfs_directory.c libfs/src/imfs/imfs_fifo.c libfs/src/imfs/memfile.c libfs/src/nfsclient/src/nfs.c libfs/src/rfs/rtems-rfs-rtems-file.c libfs/src/rfs/rtems-rfs-rtems.h libnetworking/lib/ftpfs.c: Reflect changes above.
2010-07-152010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2-2/+2
* libfs/src/devfs/devfs.h, libfs/src/devfs/devfs_node_type.c: Fixed devFS_node_type() prototype.
2010-07-152010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber6-2/+147
* 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-142010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill6-84/+25
* libfs/Makefile.am: Remove reference to imfs_free.c, wrapup/Makefile.am: Split devfs into its own library. * libfs/src/imfs/fifoimfs_init.c, libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_init.c, libfs/src/rfs/rtems-rfs-rtems.c: Use default freenode implementation. * libfs/src/imfs/imfs_free.c: Removed.
2010-07-132010-07-13 Vinu Rajashekhar <vinutheraj@gmail.com>Joel Sherrill3-3/+5
PR 1614/filesystem * libfs/src/imfs/fifoimfs_init.c, libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_load_tar.c: Fix rtems_tarfs_load to work with pipe filesystem.
2010-07-092010-07-09 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill1-2/+3
* libfs/src/pipe/pipe.c: Check for err before setting the errno and returning -1 to the caller.
2010-07-062010-07-06 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-6/+2
* libfs/src/imfs/ioman.c: Remove unneeded operation check.
2010-07-042010-07-04 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill10-10/+0
* libblock/include/rtems/ide_part_table.h, libblock/src/bdbuf.c, libcsupport/src/__times.c, libcsupport/src/libio_init.c, libcsupport/src/mallocfreespace.c, libcsupport/src/mount-mgr.c, libcsupport/src/mount.c, libcsupport/src/rewinddir.c, libcsupport/src/seekdir.c, libcsupport/src/telldir.c, libcsupport/src/unmount.c, libfs/src/dosfs/fat.c, libfs/src/dosfs/fat_fat_operations.c, libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c, libfs/src/dosfs/msdos_file.c, libfs/src/dosfs/msdos_format.c, libfs/src/dosfs/msdos_fsunmount.c, libfs/src/dosfs/msdos_initsupp.c, libfs/src/dosfs/msdos_rename.c, libmisc/cpuuse/cpuusagereport.c, libmisc/shell/vis.c, libmisc/stackchk/check.c, sapi/src/posixapi.c, telnetd/telnetd.c: Remove include of assert.h when it is not needed.
2010-07-032010-07-03 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill3-3/+3
* 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-07-012010-07-01 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill11-55/+55
* libfs/src/dosfs/msdos_handlers_dir.c, libfs/src/dosfs/msdos_handlers_file.c, libfs/src/imfs/imfs_fifo.c, libfs/src/imfs/imfs_handlers_device.c, libfs/src/imfs/imfs_handlers_directory.c, libfs/src/imfs/imfs_handlers_link.c, libfs/src/imfs/imfs_handlers_memfile.c, libfs/src/imfs/miniimfs_init.c, libfs/src/rfs/rtems-rfs-rtems-dev.c, libfs/src/rfs/rtems-rfs-rtems-dir.c, libfs/src/rfs/rtems-rfs-rtems-file.c: Turn NULLs into default handlers.
2010-07-012010-07-01 Vinu Rajashekhar <vinutheraj@gmail.com>Joel Sherrill1-0/+1
PR 1529/cpukit * utime.c: Change file access time and modified time to current time if pointer to struct utimbuf is NULL. * imfs_utime.c: Upon successful completion, imfs_utime() marks the time of the last file status change, st_ctime, to be updated.
2010-07-012010-07-01 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-0/+4
PR 1594/filesystem * libfs/src/imfs/memfile.c: Include assert.h
2010-07-012010-07-01 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2-5/+5
* libfs/src/nfsclient/src/nfs.c, libfs/src/nfsclient/src/nfs.c, libfs/src/nfsclient/src/librtemsNfs.h: Renamed rtems_nfsfs_initialize() in rtems_nfs_initialize(). * sapi/include/confdefs.h: Reflect changes above. Renamed *_miniIMFS in *_MINIIMFS. Renamed *_NFSFS in *_NFS.