summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/dosfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit/dosfs: Simplify expressions where possibleKinsey Moore2024-01-221-3/+3
|
* cpukit/dosfs: Don't leak a FAT FDKinsey Moore2024-01-221-7/+7
| | | | | | The tmp_fat_fd variable is unconditionally opened in the branch where it is used within the loop and so must be closed or else risk a resource leak.
* cpukit/dosfs: Remove unused internal function argKinsey Moore2024-01-161-2/+0
|
* cpukit: Remove or use unused variable assignmentsKinsey Moore2024-01-163-2/+8
|
* cpukit/dosfs: Jump to correct error handlerKinsey Moore2024-01-101-1/+1
| | | | | | | When encountering an error during filesystem creation, fat_fd must be cleaned up appropriately once the file is opened. There was an opportunity for a resource leak due to jumping to the incorrect error handling label.
* cpukit/dosfs: Cast away ignored returnKinsey Moore2024-01-051-1/+1
| | | | | An error is already being reported. Checking the return value of this function is not useful.
* cpukit/libfs/dosfs: Use enum values for enum initKinsey Moore2023-10-301-1/+1
|
* fat_fat_operations.c: Fix incorrect indentationJoel Sherrill2023-10-121-3/+3
|
* Update company nameSebastian Huber2023-05-207-8/+8
| | | | | The embedded brains GmbH & Co. KG is the legal successor of embedded brains GmbH.
* Do not use RTEMS_INLINE_ROUTINESebastian Huber2022-09-191-2/+2
| | | | | | | Directly use "static inline" which is available in C99 and later. This brings the RTEMS implementation closer to standard C. Close #3935.
* cpukit: Automated IMD header file clean upChristian Mauderer2022-03-101-1/+1
| | | | | | Use the same form of IMD in all copyright lines Update #4625.
* bsps and cpukit: Manual file header clean upChristian Mauderer2022-03-101-8/+5
| | | | Updates #4625.
* cpukit/: Scripted embedded brains header file clean upJoel Sherrill2022-03-102-12/+0
| | | | Updates #4625.
* cpukit: occured -> occurredSebastian Huber2021-07-169-41/+41
|
* Change filesystem utime_h handler to utimens_hRyan Long2021-05-281-6/+5
| | | | | | | Also updated licenses. Closes #4400 Updates #3899
* dosfs: Use peek supportChristian Mauderer2021-03-263-5/+31
| | | | | | This speeds up reading fragmented files. Fix #3689
* dosfs: Fix Doxygen group placementSebastian Huber2020-12-0210-25/+27
| | | | Update #3706.
* dosfs: Fix memory leak on failed mounts.Christian Mauderer2020-08-041-0/+5
| | | | | | | | | | | | | | | | | | | | Currently if mount fails, a converter isn't destroyed. We have to take care of two cases: 1. The user doesn't provide a converter. In this case mounting a dosfs creates a default converter. This patch makes sure that the converter is destroyed again if mount failes for this case. 2. The user provides a converter. In this case it's not sure that the dosfs specific routines are reached because mount can fail before that. Therefore the user has to destroy the converter himself again. This patch adds a documentation for that and implements it in the media server. Closes #4042.
* doxygen: Switch @brief and @ingroupSebastian Huber2020-04-2820-20/+40
| | | | This order change fixes the Latex documentation build via Doxygen.
* Canonicalize config.h includeSebastian Huber2020-04-1619-20/+20
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* dosfs: Fix format with media block sizes > 512Sebastian Huber2019-10-011-47/+46
|
* doxygen: Added groups to IO libraryAndreas Dachsberger2019-04-022-2/+2
| | | | Update #3706.
* Remove explicit file names from @fileSebastian Huber2019-02-281-1/+1
| | | | | | This makes the @file documentation independent of the actual file name. Update #3707.
* fs: Add struct dirent::d_type supportSebastian Huber2019-02-051-0/+11
|
* Spelling and grammar fixes in source code comments (GCI 2018)Marçal Comajoan Cara2018-12-041-1/+1
|
* dosfs: Fix device identifierSebastian Huber2018-11-271-1/+1
| | | | Update #3358.
* dosfs: Avoid deprecated routineSebastian Huber2018-08-074-2/+5
| | | | Update #3358.
* dosfs: Use self-contained recursive mutexSebastian Huber2018-02-028-103/+43
| | | | Update #2843.
* Remove make preinstallChris Johns2018-01-251-433/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
* dosfs: Include <rtems/dosfs.h>Sebastian Huber2017-12-132-2/+2
| | | | | | Prepare for header file move to common include directory. Update #3254.
* dosfs: Allow creating a file with similar name.Christian Mauderer2017-12-071-3/+7
| | | | | | | | 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.
* dosfs: Fix files with same name as volume name.Christian Mauderer2017-12-051-1/+2
| | | | | | | Take care that a file in the root directory with the same name as the volume name can be found. Update #3257.
* libio: Add rtems_libio_iop_is_append()Sebastian Huber2017-09-151-1/+1
| | | | Update #3132.
* dosfs: Fix fat_file_update()Sebastian Huber2017-09-061-5/+3
| | | | | | Do not update the non-existant meta-data of the root directory. Update #2944.
* dosfs: Fix find name next entry preparationSebastian Huber2017-09-061-25/+50
| | | | Update #2964.
* dosfs: Fix msdos_dir_read()Sebastian Huber2017-09-061-27/+28
| | | | | | Set a proper name buffer length for each converter invocation. Update #2987.
* dosfs: Support a cluster size of 64KiBSebastian Huber2017-09-063-12/+10
| | | | Close #3003.
* posix/mmap: Add support for file handler and MAP_ANONKevin Kirspel2017-07-142-0/+2
| | | | | | | | | | | 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
* dosfs: Fix file name searchSebastian Huber2017-03-161-17/+7
| | | | | | | 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.
* dosfs: Fix race condition msdos_dir_read()Sebastian Huber2017-03-161-5/+5
| | | | | | Obtain file system instance lock before member access. Update #2937.
* dosfs: Rename fat_entries to lfn_entriesSebastian Huber2017-03-161-20/+20
| | | | | The name "fat_entries" for long file name directory entries is quite misleading.
* dosfs: Fix long file name paddingSebastian Huber2017-03-161-3/+3
| | | | Update #2934.
* dosfs: msdos_filename_utf8_to_short_name_for_saveSebastian Huber2017-03-161-15/+10
| | | | Simplify.
* dosfs: Fix msdos_add_file()Sebastian Huber2017-03-161-245/+155
| | | | | | Make sure that long file names work accross cluster boundaries. Update #2929.
* dosfs: Simplify msdos_add_file()Sebastian Huber2017-03-161-4/+2
| | | | Update #2929.
* dosfs: Add and use msdos_lfn_checksum()Sebastian Huber2017-03-163-22/+25
| | | | Update #2929.
* dosfs: Simplify fat_file_open()Sebastian Huber2017-03-161-3/+1
| | | | Update #2929.
* dosfs: Simplify msdos_creat_node()Sebastian Huber2017-03-161-21/+14
| | | | Update #2929.
* dosfs: Fix fat_file_write()Sebastian Huber2017-03-163-30/+11
| | | | | | | | 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.
* dosfs: Fix msdos_utf8_normalize_and_fold()Sebastian Huber2017-03-161-2/+2
| | | | | | | | 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.