Commit Graph

727 Commits

Author SHA1 Message Date
Sebastian Huber
295ca7ded0 RFS: Include <rtems/rtems-rfs-shell.h>
Prepare for header file move to common include directory.

Update #3254.
2017-12-13 09:04:26 +01:00
Sebastian Huber
7d9455edfe pipe: Include <rtems/pipe.h>
Prepare for header file move to common include directory.

Update #3254.
2017-12-13 09:04:26 +01:00
Sebastian Huber
7683da88e4 dosfs: Include <rtems/dosfs.h>
Prepare for header file move to common include directory.

Update #3254.
2017-12-13 09:04:26 +01:00
Sebastian Huber
339069fc81 devfs: Include <rtems/devfs.h>
Prepare for header file move to common include directory.

Update #3254.
2017-12-13 09:04:25 +01:00
Sebastian Huber
a397c7d8bc IMFS: Include <rtems/imfs.h>
Prepare for header file move to common include directory.

Update #3254.
2017-12-13 09:04:25 +01:00
Christian Mauderer
2fe368787e dosfs: Allow creating a file with similar name.
If there is already a file with a long file name it isn't possible to
create a second file which has a name that ends on the first files name
(for example ets.beam and sets.beam). This patch fixes that.

Update #3258.
2017-12-07 07:30:16 +01:00
Christian Mauderer
ca835e5683 dosfs: Fix files with same name as volume name.
Take care that a file in the root directory with the same name as the
volume name can be found.

Update #3257.
2017-12-05 08:00:34 +01:00
Sebastian Huber
e2fe881a87 score: Simplify red-black tree debug support
Make the RBTree_Node layout independent of RTEMS_DEBUG (and all other
build configuration options).  This allows the use of this structure in
Newlib.

Update #3112.
2017-09-27 14:56:47 +02:00
Sebastian Huber
d4c54416b7 libio: Add rtems_libio_iop_is_append()
Update #3132.
2017-09-15 10:27:12 +02:00
Sebastian Huber
3cffd66d76 libio: Add rtems_libio_iop_is_writeable()
Update #3132.
2017-09-15 10:27:12 +02:00
Sebastian Huber
bbcdc302cd libio: Add rtems_libio_iop_is_no_delay()
Update #3132.
2017-09-15 10:27:12 +02:00
Sebastian Huber
e2b1db2311 libio: Add rtems_libio_iop_flags()
Update #3132.
2017-09-15 10:27:12 +02:00
Sebastian Huber
856ede4f91 libio: Add iop set/clear flags
Update #3132.
2017-09-15 07:48:03 +02:00
Sebastian Huber
4d495cfd01 dosfs: Fix fat_file_update()
Do not update the non-existant meta-data of the root directory.

Update #2944.
2017-09-06 14:31:04 +02:00
Sebastian Huber
a2c204ebf8 dosfs: Fix find name next entry preparation
Update #2964.
2017-09-06 13:59:35 +02:00
Sebastian Huber
34dda6042a dosfs: Fix msdos_dir_read()
Set a proper name buffer length for each converter invocation.

Update #2987.
2017-09-06 13:21:41 +02:00
Sebastian Huber
fae59c9b42 dosfs: Support a cluster size of 64KiB
Close #3003.
2017-09-06 10:20:46 +02:00
Sebastian Huber
b2ed712d26 Include missing <string.h>
Update #2133.
2017-08-25 10:58:58 +02:00
Kevin Kirspel
c6bb1c33bc posix/mmap: Add support for file handler and MAP_ANON
Added a mmap file handler to struct _rtems_filesystem_file_handlers_r.
Updated each file handler object to support the default mmap handler.
Updated mmap() to call the mmap handler for MAP_SHARED.
Added a mmap file handler for shm

Added support for MAP_ANON in mmap().

Updates #2859
2017-07-14 16:04:05 -04:00
Sebastian Huber
643b82026c Include missing <sys/param.h>
Some kernel-space header expect that <sys/param.h> is present.

Update #2833.
2017-06-07 13:02:19 +02:00
Sebastian Huber
787f51f5b3 Do not include <sys/ioctl.h> in kernel-space
Update #2833.
2017-06-07 13:02:08 +02:00
Chris Johns
a748603cb4 build-system: Parallel build all subdirs. 2017-05-24 19:59:22 +10:00
Joel Sherrill
54bdf0c7e5 rtems/inttypes.h: New file. Uses contents from cpukit
Provide extentions to <inttpes.h> PRIxxx constants for more POSIX types.
Start with existing definitions found in RTEMS Project owned code
in cpukit/.

updates #2983.
2017-04-18 11:24:44 -05:00
Sebastian Huber
d50ab07938 dosfs: Fix file name search
Do not use our long file name entry count to optimize the file name
search. The Unicode comparison must be taken into account.

Update #2939.
2017-03-16 15:33:59 +01:00
Sebastian Huber
dfd879fa42 dosfs: Fix race condition msdos_dir_read()
Obtain file system instance lock before member access.

Update #2937.
2017-03-16 15:33:58 +01:00
Sebastian Huber
6c988987f6 dosfs: Rename fat_entries to lfn_entries
The name "fat_entries" for long file name directory entries is quite
misleading.
2017-03-16 15:33:58 +01:00
Sebastian Huber
5f8ed0d8da dosfs: Fix long file name padding
Update #2934.
2017-03-16 15:33:58 +01:00
Sebastian Huber
e625a57ff8 dosfs: msdos_filename_utf8_to_short_name_for_save
Simplify.
2017-03-16 15:33:58 +01:00
Sebastian Huber
b1daf0f095 dosfs: Fix msdos_add_file()
Make sure that long file names work accross cluster boundaries.

Update #2929.
2017-03-16 15:33:58 +01:00
Sebastian Huber
1a9483e2db dosfs: Simplify msdos_add_file()
Update #2929.
2017-03-16 15:33:57 +01:00
Sebastian Huber
3efe74953f dosfs: Add and use msdos_lfn_checksum()
Update #2929.
2017-03-16 15:33:57 +01:00
Sebastian Huber
063eb574b9 dosfs: Simplify fat_file_open()
Update #2929.
2017-03-16 15:33:57 +01:00
Sebastian Huber
ccd4a7f397 dosfs: Simplify msdos_creat_node()
Update #2929.
2017-03-16 15:33:57 +01:00
Sebastian Huber
e69ee3629d dosfs: Fix fat_file_write()
Remove forced overwrite which leads to file data corruption.  The logic
to determine a forced overwrite was fundamentally broken.  For simplity,
disable this feature.

Update #2622.
2017-03-16 15:33:57 +01:00
Sebastian Huber
1becaa953e dosfs: Fix msdos_utf8_normalize_and_fold()
It is all right in case the result uses the full destination buffer.
Without this fix the handling of a maximum 8.3 short file name is
broken.

Update #2928.
2017-03-16 15:33:57 +01:00
Sebastian Huber
a60db6958f dosfs: Fix FAT32 formatter
The second FAT entry contains a bit to indicate if the FAT32 filesystem
is not dirty and a bit to indicate if there was no IO error.  Set both
bits for a fresh filesystem.  This prevents a warning if mounted on
Windows.

Close #2913.
2017-02-28 09:31:04 +01:00
Sebastian Huber
267de79ad2 dosfs: Directories should have a file size of 0
Close #2755.
2017-02-28 09:31:04 +01:00
Sebastian Huber
5bfeddc0c2 termios: Add kqueue() and poll() support
Real implementation is provided by libbsd.
2017-02-23 07:27:43 +01:00
Nick Withers
df184ebea1 Remove old CVS keywords
Update #2388.
2017-02-15 14:52:15 +01:00
Sebastian Huber
d9c6542970 dosfs: Fix msdos_find_file_in_directory()
For a filename match the entry must match without anything remaining.

Close #2908.
2017-02-14 08:07:22 +01:00
Sebastian Huber
2711914f82 Use <sys/endian.h>
Update #2803.
2017-01-24 08:39:22 +01:00
Sebastian Huber
c0151e6c64 nfsclient: Fix suspicious condition
Close #2700.
2017-01-23 14:38:35 +01:00
Sebastian Huber
66bd19eaf1 JFFS2: Fix typo 2017-01-19 14:10:42 +01:00
Sebastian Huber
ab834d65e4 JFFS2: RTEMS_JFFS2_ON_DEMAND_GARBAGE_COLLECTION
Update #2844.
2016-12-20 08:28:23 +01:00
Sebastian Huber
ade135d455 JFFS2: Add RTEMS_JFFS2_FORCE_GARBAGE_COLLECTION
Add IO control to force a garbage collection.

Update #2844.
2016-12-20 08:26:25 +01:00
Sebastian Huber
07c833f8f9 JFFS2: Add RTEMS_JFFS2_GET_INFO
Add IO control RTEMS_JFFS2_GET_INFO to get some JFFS2 filesystem
instance information.

Update #2844.
2016-12-20 08:26:21 +01:00
Sebastian Huber
d496e0979a imfs: Untangle dependencies
This helps to use IMFS_make_generic_node() without pulling in the
complete IMFS implementation.
2016-09-19 07:22:01 +02:00
Sebastian Huber
a3e9ae5d0d imfs: Fix IMFS_stat_file()
Use the adjusted and not the requested memfile bytes per block.
Untangle dependencies.
2016-09-16 14:02:41 +02:00
Sebastian Huber
da15db787b score: Improve red-black tree debug support
Ensure that we extract a node only from the right tree.
2016-09-06 10:52:19 +02:00
Sebastian Huber
aaaf9610db score: Add debug support to red-black trees
This helps to detect double insert and extract errors.
2016-08-08 09:34:29 +02:00