summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/rfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rfs: Remove erroneous call of rtems_disk_release()Sebastian Huber2018-08-101-1/+0
| | | | | | | The function rtems_rfs_buffer_sync() erroneously calls rtems_disk_release(). This screws up the reference counting of the disk. Close #3495.
* RFS: Fix resource leakSebastian Huber2015-10-211-0/+2
| | | | Update #2433.
* PR2039: Fix NULL pointer accessSebastian Huber2012-03-141-2/+2
| | | | | | | In case rtems_bdbuf_read() returns an error status, the block device buffer pointer will be set to NULL. In RFS the chain node of the block device buffer will be used for RFS purposes. We must not do this after an erroneous read.
* PR 2026/filesystem - Fix semaphore attributesSebastian Huber2012-02-231-7/+2
| | | | | Semaphores of type RTEMS_SIMPLE_BINARY_SEMAPHORE are not suitable for a mutex. Use RTEMS_BINARY_SEMAPHORE with RTEMS_INHERIT_PRIORITY instead.
* 2011-12-09 Chris Johns <chrisj@rtems.org>Chris Johns2011-12-093-29/+70
| | | | | | | | | | 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-11-03 Chris Johns <chrisj@rtems.org>Chris Johns2011-11-034-3/+41
| | | | | | | | | | 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. * libblock/src/bdbuf.c: Fix state labels in trace output.
* 2011-07-04 Chris Johns <chrisj@rtems.org>Chris Johns2011-07-041-1/+1
| | | | | | 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-03-14 Chris Johns <chrisj@rtems.org>Chris Johns2011-03-141-1/+1
| | | | | | PR 1757/filesystem * libfs/src/rfs/rtems-rfs-block-pos.h: Fix the bug in equal compare.
* 2011-03-14 Chris Johns <chrisj@rtems.org>Chris Johns2011-03-144-14/+49
| | | | | | | | | 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.
* 2011-03-03 Chris Johns <chrisj@rtems.org>Chris Johns2011-03-031-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-08 Brett Swimley <bswimley@advanced.pro>Chris Johns2011-02-071-0/+6
| | | | | * libfs/src/rfs/rtems-rfs-rtems.c: Fix bug where the eval path did not close an inode.
* 2010-10-19 Chris Johns <chrisj@rtems.org>Chris Johns2010-10-181-1/+4
| | | | | * libfs/src/rfs/rtems-rfs-rtems-file.c: Add missing unlock in write. Return the error code in close.
* Disable trace.Chris Johns2010-10-111-1/+1
|
* The patch to the 4.10 branch did not apply correctly. This fixes it.Chris Johns2010-10-1110-79/+68
|
* 2010-10-11 Chris Johns <chrisj@rtems.org>Chris Johns2010-10-113-23/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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. * cpukit/libmisc/untar/untar.c: Merge 4.11 pax fix. This fix also supports MacOS's tar.
* 2010-08-26 Chris Johns <chrisj@rtems.org>Chris Johns2010-08-262-11/+18
| | | | | | | * libfs/src/rfs/rtems-rfs-file.c: Check then load the inode if not present on the close. * libfs/src/rfs/rtems-rfs-format.c: Initialise the buffer chain.
* 2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-06-241-0/+5
| | | | | | PR 1587/filesystem Coverity Id 35 * libfs/src/rfs/rtems-rfs-shell.c: Address possible NULL dereference.
* 2010-06-18 Chris Johns <chrisj@rtems.org>Chris Johns2010-06-173-17/+35
| | | | | | | | | * libfs/src/rfs/rtems-rfs-file-block.c: Clean up uint64_t maths. * libfs/src/rfs/rtems-rfs-file-system.h, libfs/src/rfs/rtems-rfs-file-system.c: Move questionable macros to C functions.
* 2010-06-17 Chris Johns <chrisj@rtems.org>Chris Johns2010-06-173-6/+6
| | | | | | libfs/src/rfs/rtems-rfs-bitmaps.h, libfs/src/rfs/rtems-rfs-block-pos.h, libfs/src/rfs/rtems-rfs-block.h: PR 1556. Struct clean up.
* 2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-171-2/+2
| | | | | * libfs/src/rfs/rtems-rfs-file-system.h: Revert previous change. Force RTEMS_RFS_VERSION_MASK to be 32bit.
* 2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-172-10/+13
| | | | * libfs/src/rfs/rtems-rfs-format.c: Various 64bit fixes.
* 2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-171-2/+4
| | | | * libfs/src/rfs/rtems-rfs-file-system.c: Various 64bit fixes.
* 2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-171-1/+3
| | | | * libfs/src/rfs/rtems-rfs-rtems-file.c: Various 64bit fixes.
* 2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-171-13/+13
| | | | * libfs/src/rfs/rtems-rfs-buffer.c: Various 64bit fixes.
* 2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-171-29/+30
| | | | * libfs/src/rfs/rtems-rfs-shell.c: Various 64bit fixes.
* 2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-171-21/+22
| | | | * libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Various 64bit fixes.
* 2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-171-5/+7
| | | | * libfs/src/rfs/rtems-rfs-group.c: Various 64bit fixes.
* 2010-06-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-161-11/+13
| | | | * libfs/src/rfs/rtems-rfs-file.c: Various 64bit fixes.
* 2010-06-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-161-5/+7
| | | | * libfs/src/rfs/rtems-rfs-inode.c: Various 64bit fixes.
* 2010-06-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-161-17/+26
| | | | | * libfs/src/rfs/rtems-rfs-rtems.c: Various 64bit fixes. Add PRIomode_t.
* 2010-06-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-161-2/+3
| | | | | * libfs/src/rfs/rtems-rfs-buffer-bdbuf.c: Various 64bit fixes.
* 2010-06-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-169-16/+14
| | | | | | | | | | | | | | PR 1556/cpukit * libfs/src/rfs/rtems-rfs-bitmaps.h, libfs/src/rfs/rtems-rfs-block-pos.h, libfs/src/rfs/rtems-rfs-buffer.h, libfs/src/rfs/rtems-rfs-file-system-fwd.h, libfs/src/rfs/rtems-rfs-file-system.h, libfs/src/rfs/rtems-rfs-file.h, libfs/src/rfs/rtems-rfs-format.h, libfs/src/rfs/rtems-rfs-group.h, libfs/src/rfs/rtems-rfs-inode.h: Rename "struct rtems_rfs_*_t" into "struct _rtems_rfs_*".
* 2010-06-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-161-1/+1
| | | | | PR 1556/cpukit * libfs/src/rfs/rtems-rfs-shell.c: Remove rtems_rfs_shell_cmd_t.
* 2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-152-49/+61
| | | | | | | * libfs/src/rfs/rtems-rfs-dir.c: Various 64bit compatibility fixes. Add PRIdoff_t. Remove stray "\"s. * libfs/src/rfs/rtems-rfs-link.c: Various 64bit compatibility fixes.
* 2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-151-1/+1
| | | | * libfs/src/rfs/rtems-rfs-file-system.h: Remove bogus typecast.
* 2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-152-8/+11
| | | | | * libfs/src/rfs/rtems-rfs-block.c, libfs/src/rfs/rtems-rfs-buffer.c, libnetworking/nfs/bootp_subr.c: Misc. 64bit-compatibility fixes.
* 2010-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-06-125-12/+12
| | | | | | | * libfs/src/devfs/devfs.h, libfs/src/rfs/rtems-rfs-block-pos.h, libfs/src/rfs/rtems-rfs-block.h, libfs/src/rfs/rtems-rfs-dir.h, libfs/src/rfs/rtems-rfs-group.h, libfs/src/rfs/rtems-rfs-inode.h: Fix broken doxygen commands.
* 2010-05-31 Chris Johns <chrisj@rtems.org>Chris Johns2010-05-312-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libcsupport/Makefile.am: Add mount-mgr.c. * libcsupport/src/mount-mgr.c: New. * include/rtems/fs.h: Added rtems_filesystem_location_mount. * libcsupport/include/rtems/libio.h, libcsupport/src/mount.c: New mount interface. It is similar to Linux. * libcsupport/include/rtems/libio_.h: Remove the init_fs_mount_table call. * libcsupport/src/base_fs.c: Remove init_fs_mount_table_call. Use the new mount call. Remove setting the root node in the global pathloc. Mount does this now. * libcsupport/src/privateenv.c: Remove the hack to set the root mount table entry in the environment. * libcsupport/src/unmount.cL Free the target string. * libblock/src/bdpart-mount.c: New mount API. * libfs/src/devfs/devfs.h, libfs/src/devfs/devfs_init.c, libfs/src/dosfs/dosfs.h, libfs/src/dosfs/msdos.h, libfs/src/dosfs/msdos_init.c, libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_init.c, libfs/src/imfs/miniimfs_init.c, libfs/src/nfsclient/src/librtemsNfs.h, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs.h, libnetworking/lib/ftpfs.c, libnetworking/rtems/ftpfs.h, libnetworking/rtems/tftp.h: New mount_h API. * libfs/src/devfs/devfs_eval.c: Local include of extern ops. * libfs/src/nfsclient/src/nfs.c: New mount API. Removed the mount me call and fixed the initialisation to happen when mounting. * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Remove mount filesystem files. * libmisc/fsmount/fsmount.c, libmisc/fsmount/fsmount.h: Updated to the new mount table values. * libmisc/shell/main_mount_ftp.c, libmisc/shell/main_mount_msdos.c, libmisc/shell/main_mount_rfs.c, libmisc/shell/main_mount_tftp.c: Removed. * libmisc/shell/main_mount.c: Use the new mount API. Also access the file system table for the file system types. * libnetworking/lib/tftpDriver.c: Updated to the new mount API. Fixed to allow mounting from any mount point. Also can now have more than file system mounted. * sapi/include/confdefs.h: Add file system configuration support.
* 2010-05-28 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-05-281-3/+3
| | | | * libfs/src/rfs/rtems-rfs-rtems.c: Use size_t for node_len.
* 2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-05-271-2/+2
| | | | | | * libfs/src/rfs/rtems-rfs-rtems.c: Use size_t instead of int for pathlen. Use %zi to print pathlen.
* 2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-05-221-1/+5
| | | | | * libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Use "16 bit int" arg in call to srand if "32 bit int" doesn't fit into "int".
* 2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-04-261-1/+1
| | | | * libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Fix warning.
* 2010-04-12 Chris Johns <chrisj@rtems.org>Chris Johns2010-04-1210-23/+33
| | | | | | | | | | | libfs/src/rfs/rtems-rfs-buffer-bdbuf.c, libfs/src/rfs/rtems-rfs-buffer.c, libfs/src/rfs/rtems-rfs-data.h, libfs/src/rfs/rtems-rfs-dir.c, libfs/src/rfs/rtems-rfs-file-system.c, libfs/src/rfs/rtems-rfs-format.c, libfs/src/rfs/rtems-rfs-inode.h, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs-rtems.h, libfs/src/rfs/rtems-rfs-shell.c: Fix for PR1502. Clean up problems on 16bit targets.
* 2010-03-27 Chris Johns <chrisj@rtems.org>Chris Johns2010-03-2722-0/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | libfs/src/nfsclient/src/cexphelp.c, libfs/src/nfsclient/src/dirutils.c, libfs/src/nfsclient/src/nfs.modini.c, libfs/src/nfsclient/src/nfsTest.c, libfs/src/nfsclient/src/rpcio.c, libfs/src/nfsclient/src/rpcio.modini.c, libfs/src/nfsclient/src/sock_mbuf.c, libfs/src/nfsclient/src/xdr_mbuf.c, libfs/src/rfs/rtems-rfs-bitmaps-ut.c, libfs/src/rfs/rtems-rfs-bitmaps.c, libfs/src/rfs/rtems-rfs-block.c, libfs/src/rfs/rtems-rfs-buffer-bdbuf.c, libfs/src/rfs/rtems-rfs-buffer-devio.c, libfs/src/rfs/rtems-rfs-buffer.c, libfs/src/rfs/rtems-rfs-dir-hash.c, libfs/src/rfs/rtems-rfs-dir.c, libfs/src/rfs/rtems-rfs-file-system.c, libfs/src/rfs/rtems-rfs-file.c, libfs/src/rfs/rtems-rfs-format.c, libfs/src/rfs/rtems-rfs-group.c, libfs/src/rfs/rtems-rfs-inode.c, libfs/src/rfs/rtems-rfs-link.c, libfs/src/rfs/rtems-rfs-mutex.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, libfs/src/rfs/rtems-rfs-rtems-utils.c, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs-shell.c, libfs/src/rfs/rtems-rfs-trace.c: Add HAVE_CONFIG_H support to let files receive configure defines.
* 2010-03-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-03-229-47/+48
| | | | | | | | | | * libfs/src/rfs/rtems-rfs-bitmaps-ut.c, libfs/src/rfs/rtems-rfs-block.c, libfs/src/rfs/rtems-rfs-buffer.c, libfs/src/rfs/rtems-rfs-dir.c, libfs/src/rfs/rtems-rfs-file.c, libfs/src/rfs/rtems-rfs-format.c, libfs/src/rfs/rtems-rfs-group.c, libfs/src/rfs/rtems-rfs-rtems-file.c, libfs/src/rfs/rtems-rfs-shell.c: Fix printf format warning. Primarily for size_t.
* 010-03-04 Chris Johns <chrisj@rtems.org>Chris Johns2010-03-044-32/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libcsupport/include/rtems/libio.h, libcsupport/src/_rename_r.c: Add a rename file op and have rename use it. * libfs/Makefile.am, libfs/src/dosfs/msdos_rename.c, libfs/src/imfs/imfs_rename.c: New files to support the rename file op. * libfs/src/imfs/imfs.h: Add rename interface. * libfs/src/imfs/imfs_init.c: Add rename handler. * libfs/src/imfs/miniimfs_init.c: Fix up ops struct. * libfs/src/dosfs/msdos.h: Add msdos_rename and remove msdos_file_link. * libfs/src/dosfs/msdos_create.c: Remove the link call. * libfs/src/dosfs/msdos_eval.c: Fix a path parsing bug. * libfs/src/dosfs/msdos_init.c: Add rename handler and clean up the struct naming. * libfs/src/rfs/rtems-rfs-link.c, libfs/src/rfs/rtems-rfs-link.h: Change the link call to allow linking of directories if told to and change the unlink to handle unlink directories that are not empty so rename can be supported. * libfs/src/rfs/rtems-rfs-rtems-dir.c: Fix the link/unlink calls. * libfs/src/rfs/rtems-rfs-rtems.c: Add a rename handler. Fix the link/unlink calls. * libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_format.c, libfs/src/dosfs/msdos_misc.c, httpd/asp.c, libfs/src/nfsclient/src/nfs.c: Work around a newlib warning when using the is*() family of calls.
* 2010-03-01 Chris Johns <chrisj@rtems.org>Chris Johns2010-02-281-3/+17
| | | | * libfs/src/rfs/rtems-rfs-buffer.h: Add `rtems_rfs_buffer_handle_reset'.
* 010-02-26 Chris Johns <chrisj@rtems.org>Chris Johns2010-02-2610-164/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libfs/src/rfs/rtems-rfs-block.c: Reset a buffer handle after moving down an indirection level. * libfs/src/rfs/rtems-rfs-dir.c: Move directory entry validation into a macro and use the macro. Fix the range check on the ino so all inodes can be used. * libfs/src/rfs/rtems-rfs-file-system.c, libfs/src/rfs/rtems-rfs-file-system.h:: Add a version number to the superblock. Use RTEMS_RFS_INODE_SIZE. * libfs/src/rfs/rtems-rfs-file.c: Fix the size offset on partial block lengths. Set the size in the file handle on a truncate to 0. * libfs/src/rfs/rtems-rfs-format.c: Add a version number to the superblock. Use RTEMS_RFS_INODE_SIZE. A better set of defaults for small disks. * libfs/src/rfs/rtems-rfs-inode.c: Use RTEMS_RFS_INODE_SIZE. Free the allocated inode if it cannot be opened. * libfs/src/rfs/rtems-rfs-inode.h: Add RTEMS_RFS_INODE_SIZE. * libfs/src/rfs/rtems-rfs-rtems-file.c: Move some of the iop acceses inside the fs lock. * libfs/src/rfs/rtems-rfs-shell.c: Use RTEMS_RFS_INODE_SIZE.
* Fixed the inode values.Chris Johns2010-02-221-3/+3
|
* 2010-02-23 Chris Johns <chrisj@rtems.org>Chris Johns2010-02-226-19/+64
| | | | | | | | | | | | | | | | * libfs/src/rfs/rtems-rfs-dir.c: Fix printf format warning for a 64bit off_t. * libfs/src/rfs/rtems-rfs-file-system.h: Add a macro to get the file system flags. * libfs/src/rfs/rtems-rfs-group.c, libfs/src/rfs/rtems-rfs-group.h: Add rtems_rfs_group_usage. * libfs/src/rfs/rtems-rfs-rtems.c: Fill in all the fields in the statvfs struct. * libfs/src/rfs/rtems-rfs-shell.c: Use rtems_rfs_group_usage.