Commit Graph

423 Commits

Author SHA1 Message Date
Chris Johns
8504f12471 2011-12-09 Chris Johns <chrisj@rtems.org>
PR 1968/filesystem
        * libfs/src/rfs/rtems-rfs-file.c: Fix to the seek bug where a seek
        to 0 after reading the end of the file did not point to the
        correct block.
        * libfs/src/rfs/rtems-rfs-rtems.h,
        libfs/src/rfs/rtems-rfs-trace.c: Fix the trace flags. Used to fix
        the bug.
2011-12-09 07:21:02 +00:00
Ralf Corsepius
47528a8f2e 2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/pipe/pipe.c: Include <rtems/pipe.h> (Missing prototype).
2011-12-06 15:20:50 +00:00
Ralf Corsepius
46ae58a595 2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/imfs/imfs_debug.c: Make IMFS_print_jnode,
	IMFS_dump_directory static.
	* libfs/src/imfs/memfile.c: Make memfile_free_blocks_in_table static.
2011-12-06 07:05:54 +00:00
Ralf Corsepius
326d83fb6a 2011-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/imfs/deviceerrno.c:
	Include <rtems/devfs.h> for missing prototypes.
2011-12-02 17:27:16 +00:00
Ralf Corsepius
03f407b297 2011-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/rfs/rtems-rfs-rtems-dev.c:
	Remove duplicate prototype of rtems_deviceio_errno.
	Include <rtems/devfs.h> for rtems_deviceio_errno().
2011-12-02 17:25:31 +00:00
Ralf Corsepius
3eb8f28875 2011-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/imfs/imfs_eval.c: Make IMFS_evaluate_permission,
	IMFS_evaluate_hard_link, IMFS_evaluate_sym_link static.
	* libfs/src/imfs/imfs_fifo.c: Make IMFS_fifo_open,
	IMFS_fifo_close, IMFS_fifo_read, IMFS_fifo_write,
	IMFS_fifo_ioctl static.
2011-12-02 13:39:58 +00:00
Ralf Corsepius
66b8047e52 Remove stray whitespaces. 2011-11-06 12:44:24 +00:00
Ralf Corsepius
984c4c492f 2011-11-06 Ralf Corsépius <ralf.corsepius@rtems.org>
PR1945/cpukit
	* libfs/src/nfsclient/src/nfs.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, libnetworking/lib/ftpfs.c,
	libnetworking/lib/tftpDriver.c: Replace rtems_off64_t with off_t.
2011-11-06 12:00:04 +00:00
Ralf Corsepius
22ad826358 2011-11-06 Ralf Corsépius <ralf.corsepius@rtems.org>
PR1945/cpukit
	* libfs/src/imfs/deviceio.c, libfs/src/imfs/imfs.h,
	libfs/src/imfs/imfs_directory.c, libfs/src/imfs/imfs_fifo.c,
	libfs/src/imfs/memfile.c: Replace rtems_off64_t with off_t.
2011-11-06 11:57:10 +00:00
Ralf Corsepius
59ca2f8ccb 2011-11-06 Ralf Corsépius <ralf.corsepius@rtems.org>
PR1945/cpukit
	* libfs/src/dosfs/msdos.h, libfs/src/dosfs/msdos_dir.c,
	libfs/src/dosfs/msdos_file.c:
	Replace rtems_off64_t with off_t.
2011-11-06 11:54:49 +00:00
Ralf Corsepius
e4c0a04bd3 2011-11-06 Ralf Corsépius <ralf.corsepius@rtems.org>
PR1945/cpukit
	* libfs/src/defaults/default_ftruncate.c,
	libfs/src/defaults/default_lseek.c:
	Replace rtems_off64_t with off_t.
2011-11-06 11:52:45 +00:00
Ralf Corsepius
e38658762d 2011-11-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/rfs/rtems-rfs-dir.c: Rename PRIdoff_t into PRIooff_t.
2011-11-06 07:08:32 +00:00
Chris Johns
1e0f63b52c 2011-11-04 Chris Johns <chrisj@rtems.org>
* libfs/src/rfs/rtems-rfs-dir.h: Commit the missing change. Part
        of removing the hardcoded dir string.
2011-11-03 22:02:01 +00:00
Chris Johns
97ae192a23 2011-11-03 Chris Johns <chrisj@rtems.org>
PR 1948/filesystem
        * libfs/src/rfs/rtems-rfs-file-system.c,
        libfs/src/rfs/rtems-rfs-file-system.h,
        libfs/src/rfs/rtems-rfs-format.c, libfs/src/rfs/rtems-rfs-rtems.c:
        Add support for mount passing an ASCIIZ string containing
        configuration options. Remove the hardcoded dir string and
        size. Fix comments.
        * libblock/src/bdbuf.c: Fix state labels in trace output.
2011-11-03 06:32:42 +00:00
Ralf Corsepius
8c30ecd177 2011-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/imfs/imfs.h: Add IMFS_memfile_maximum_size.
2011-10-26 03:49:27 +00:00
Ralf Corsepius
9b42315cee 2011-10-20 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/dosfs/msdos_file.c (msdos_file_datasync):
	Remove unused var "rc".
2011-10-20 10:48:30 +00:00
Ralf Corsepius
49755cfd68 2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/pipe/fifo.c: Conditionally use var "sc".
2011-10-18 09:35:17 +00:00
Ralf Corsepius
f25425b106 2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/rfs/rtems-rfs-file-system.c (rtems_rfs_fs_open):
	Comment out unused vars "group", "group_base".
2011-10-17 13:59:26 +00:00
Ralf Corsepius
48943dc195 2011-10-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/devfs/devfs_mknod.c: Remove const cast.
	* libfs/src/imfs/ioman.c: Remove const cast.
	* libfs/src/devfs/devfs.h: Make device_name a const char*.
	* sapi/include/rtems/io.h: Make device_name a const char*.
2011-10-10 07:11:26 +00:00
Ralf Corsepius
da30d6c009 2011-10-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/imfs/memfile.c (memfile_ioctl): Remove unused var
	"the_jnode".
2011-10-07 09:36:35 +00:00
Joel Sherrill
13c4f853e6 2011-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1877/cpukit
	* libfs/src/imfs/imfs_mknod.c, libfs/src/imfs/memfile.c,
	sapi/inline/rtems/rbtree.inl, score/include/rtems/score/rbtree.h,
	score/inline/rtems/score/rbtree.inl, score/src/rbtree.c,
	score/src/rbtreefind.c, score/src/rbtreeinsert.c: Add comparison
	function for RBTrees.
2011-08-02 19:25:59 +00:00
Sebastian Huber
363aacef6d 2011-08-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/nfsclient/src/nfs.c: Fixed creation of directories.
2011-08-01 07:27:25 +00:00
Joel Sherrill
186fee26ef 2011-07-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/dosfs/fat_file.c, libmisc/monitor/monitor.h,
	score/cpu/m68k/rtems/score/cpu.h: Remove stray spaces from unsigned32
	to uint32_t conversion.
2011-07-21 13:18:30 +00:00
Sebastian Huber
a2900a8b4b 2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio_.h: Added
	rtems_filesystem_is_root_location().
	* libfs/src/imfs/imfs_directory.c, libfs/src/imfs/imfs_eval.c,
	libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c: Use
	rtems_filesystem_is_root_location().
2011-07-21 12:03:26 +00:00
Joel Sherrill
aa03052eee 2011-07-13 Till Straumann <strauman@slac.stanford.edu>
PR 1775/filesystem
	* libfs/src/nfsclient/src/nfs.c: NFSAddress NFS issue where read/write
	problems when requested bytes greater than nfsStBlksize. Failure to
	create files and symlinks.
2011-07-13 19:05:43 +00:00
Chris Johns
acb92e332b 2011-07-04 Chris Johns <chrisj@rtems.org>
PR 1827/filesystem
        * libfs/src/rfs/rtems-rfs-rtems.c: Skip the parent (..) path value
        when eval make moving up out of the RFS file system.
2011-07-04 00:31:25 +00:00
Joel Sherrill
21242c252a 2011-06-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems/bspIo.h, include/rtems/concat.h,
	include/rtems/endian.h, include/rtems/fs.h, include/rtems/irq.h,
	include/rtems/pci.h, include/rtems/userenv.h,
	libblock/include/rtems/flashdisk.h,
	libblock/include/rtems/nvdisk-sram.h,
	libblock/include/rtems/nvdisk.h, libcsupport/include/clockdrv.h,
	libcsupport/include/console.h, libcsupport/include/iosupp.h,
	libcsupport/include/spurious.h,
	libcsupport/include/motorola/mc68230.h,
	libcsupport/include/rtems/assoc.h, libcsupport/include/rtems/error.h,
	libcsupport/include/rtems/framebuffer.h,
	libcsupport/include/rtems/gxx_wrappers.h,
	libcsupport/include/rtems/libcsupport.h,
	libcsupport/include/rtems/libio_.h,
	libcsupport/include/rtems/malloc.h,
	libcsupport/include/rtems/termiostypes.h,
	libcsupport/include/sys/statvfs.h, libcsupport/include/sys/termios.h,
	libcsupport/include/sys/utsname.h, libcsupport/include/zilog/z8036.h,
	libcsupport/include/zilog/z8530.h, libcsupport/include/zilog/z8536.h,
	libfs/src/imfs/imfs.h, libfs/src/pipe/pipe.h,
	libmisc/capture/capture-cli.h, libmisc/capture/capture.h,
	libmisc/cpuuse/cpuuse.h, libmisc/devnull/devnull.h,
	libmisc/devnull/devzero.h, libmisc/dumpbuf/dumpbuf.h,
	libmisc/fb/fb.h, libmisc/fb/mw_uid.h, libmisc/mouse/mouse_parser.h,
	libmisc/shell/shellconfig.h, libmisc/stringto/stringto.h,
	libmisc/untar/untar.h, libnetworking/memory.h, posix/include/aio.h,
	posix/include/mqueue.h, posix/include/semaphore.h,
	posix/include/rtems/posix/aio_misc.h,
	posix/include/rtems/posix/barrier.h,
	posix/include/rtems/posix/cond.h, posix/include/rtems/posix/config.h,
	posix/include/rtems/posix/key.h, posix/include/rtems/posix/mqueue.h,
	posix/include/rtems/posix/mutex.h,
	posix/include/rtems/posix/posixapi.h,
	posix/include/rtems/posix/priority.h,
	posix/include/rtems/posix/psignal.h,
	posix/include/rtems/posix/pthread.h,
	posix/include/rtems/posix/ptimer.h,
	posix/include/rtems/posix/rwlock.h,
	posix/include/rtems/posix/semaphore.h,
	posix/include/rtems/posix/sigset.h,
	posix/include/rtems/posix/spinlock.h,
	posix/include/rtems/posix/threadsup.h,
	posix/include/rtems/posix/time.h, posix/include/rtems/posix/timer.h,
	posix/inline/rtems/posix/barrier.inl,
	posix/inline/rtems/posix/cond.inl,
	posix/inline/rtems/posix/mqueue.inl,
	posix/inline/rtems/posix/mutex.inl,
	posix/inline/rtems/posix/priority.inl,
	posix/inline/rtems/posix/pthread.inl,
	posix/inline/rtems/posix/rwlock.inl,
	posix/inline/rtems/posix/semaphore.inl,
	posix/inline/rtems/posix/spinlock.inl,
	posix/inline/rtems/posix/timer.inl, rtems/mainpage.h,
	rtems/include/rtems/rtems/barrier.h,
	rtems/include/rtems/rtems/object.h,
	rtems/include/rtems/rtems/timer.h,
	rtems/inline/rtems/rtems/barrier.inl,
	rtems/inline/rtems/rtems/timer.inl,
	rtems/src/semtranslatereturncode.c, sapi/include/rtems/config.h,
	sapi/include/rtems/fatal.h, sapi/include/rtems/mptables.h,
	score/include/rtems/score/object.h,
	score/include/rtems/score/priority.h,
	score/inline/rtems/score/object.inl,
	score/inline/rtems/score/priority.inl: Add @file Doxygen directives
	and descriptions to files which originated with RTEMS. This improves
	the file list page generated by Doxygen.
2011-06-24 17:52:58 +00:00
Joel Sherrill
b5e273943e 2011-06-10 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1812/filesystem
	* libfs/src/imfs/imfs_stat.c: stat() implementation for IMFS did not
	set st_blksize field. Set it based upon user configuration.
2011-06-10 18:16:42 +00:00
Ralf Corsepius
3bab08dccf 2011-05-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/Makefile.am: Unconditionally descend into src/nfsclient.
	Include subdirs.am.
2011-05-13 15:34:50 +00:00
Chris Johns
e0ae9008ef 2011-05-11 Chris Johns <chrisj@rtems.org>
PR 1774/filesystem
        * libfs/src/imfs/imfs_eval.c: Updated to fix regressions found in
        the testsuite.
2011-05-11 03:01:54 +00:00
Chris Johns
e0bc543797 2011-04-16 Chris Johns <chrisj@rtems.org>
PR 1774/filesystem
        * libfs/src/imfs/imfs_eval.c: Fix the IMFS eval and eval for make
        handlers to not inspect a mounted file sytems path.
2011-04-16 04:40:11 +00:00
Sebastian Huber
8bbb37d1f8 2011-04-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/pipe/fifo.c: Fixed integer type.
2011-04-15 11:13:21 +00:00
Joel Sherrill
5d2aacc2a9 2011-04-05 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1701/filesystems
	* libfs/src/imfs/memfile.c: Fix sense of assert.
2011-04-05 13:38:49 +00:00
Joel Sherrill
315c9b89f3 2011-03-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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-15 15:05:29 +00:00
Chris Johns
597624691b 2011-03-15 Chris Johns <chrisj@rtems.org>
* 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-15 07:32:39 +00:00
Chris Johns
ecfeb16b42 2011-03-15 Chris Johns <chrisj@rtems.org>
PR 1757/filesystem
        * libfs/src/rfs/rtems-rfs-block-pos.h: Fix the bug in equal
        compare.
2011-03-15 05:14:39 +00:00
Chris Johns
d0fcd0b8a6 2011-03-15 Chris Johns <chrisj@rtems.org>
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-15 05:02:34 +00:00
Joel Sherrill
78d1190528 2011-03-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/imfs/deviceerrno.c: Add RTEMS_INVALID_CLOCK,
	RTEMS_INVALID_NODE, and RTEMS_NOT_CONFIGURED.
2011-03-14 16:24:00 +00:00
Chris Johns
9a65833c1e 2011-03-03 Chris Johns <chrisj@rtems.org>
* 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-03-03 06:22:48 +00:00
Ralf Corsepius
8485c7fd61 2011-02-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/dosfs/msdos_misc.c: Don't include <strings.h>.
2011-02-23 13:57:02 +00:00
Chris Johns
9632f83df8 011-02-08 Brett Swimley <bswimley@advanced.pro>
* libfs/src/rfs/rtems-rfs-rtems.c: Fix bug where the eval path did
        not close an inode.
2011-02-07 22:41:37 +00:00
Joel Sherrill
a84d456ce2 2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_readlink.c: readlink
	filesystem entry should return ssize_t.
2011-01-04 19:18:09 +00:00
Joel Sherrill
f447932fc0 2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/nfsclient/src/nfs.c: readlink filesystem entry should
	return ssize_t.
2011-01-04 18:32:59 +00:00
Sebastian Huber
d00b7a5a3f 2010-12-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/dosfs/msdos_conv.c: Fixed convertion of half seconds to
	seconds.
2010-12-28 09:55:57 +00:00
Sebastian Huber
3ae59505d0 2010-12-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/dosfs/msdos_misc.c: Create short file names acceptable for
	Windows.
2010-12-28 08:46:57 +00:00
Sebastian Huber
45edf78e36 2010-12-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* 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-12-27 14:35:13 +00:00
Sebastian Huber
ce002b161d 2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* 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-11-25 09:27:06 +00:00
Chris Johns
6dd4853c48 2010-10-19 Chris Johns <chrisj@rtems.org>
* libfs/src/rfs/rtems-rfs-rtems-file.c: Add missing unlock in
        write. Return the error code in close.
2010-10-18 22:39:35 +00:00
Chris Johns
0a127c5591 2010-10-11 Chris Johns <chrisj@rtems.org>
* 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-10-11 04:34:48 +00:00
Sebastian Huber
d62711f290 2010-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/defaults/default_close.c: Return 0 instead of an error
	status.
2010-09-27 12:32:40 +00:00