[EGD-4262] Disk manager (#1025)
* [EGD-4262] Disk manager API draft
* [EGD-4262] New filesystem master user class
* [EGD-4262] Directory fops
* [EGD-4262] Initial version of disk manager API
* [EGD-4261] Registering and finding block devices.
* [EGD-4262] Disk manager without partition parser
* [EGD-4262] Partition parser intial ver.
* [EGD-4262] Disk read driver for Linux
* [EGD-4262] Disk manager unittests.
This unittests should be improved. Currrently it checks
only minimum functionality. Boundary tests should be added
in the next stage.
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
[EGD-4221] lseek syscall fix (#1028)
lseek return incorrect return value. This patch fix it
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
[EGD-4344] vfs-utils refactor (#1010)
* [EGD-4344] removed vfs-utils.cpp and moved all the functions
to utils or eventStore
* [EGD-4344] removed vfs-utils.cpp and moved all the functions
to utils or eventStore
* [EGD-4344] moved methods to utils::filesystem
* Update module-utils/Utils.cpp
Co-authored-by: Piotr Tanski <piotr.tanski@mudita.com>
* Update module-utils/Utils.cpp
Co-authored-by: Piotr Tanski <piotr.tanski@mudita.com>
* Update module-utils/Utils.cpp
Co-authored-by: Piotr Tanski <piotr.tanski@mudita.com>
* [EGD-4344] test fixes, linux fixes, GUI fixes
* [EGD-4344] rebase fixes
* [EGD-4344] bugfixes for rt1051 and mutex support in EventStore
Co-authored-by: Piotr Tanski <piotr.tanski@mudita.com>
[EGD-4264] directory reordering (#1001)
* [EGD-4264] VFS directory reordering
Currently VFS uses flat directory structure
for disc manager I need more sofisticated directory layout
* [EGD-4264] Remove redundant -Wno
* [EGD-4261] New purefs API
* [EGD-4264] Unittest fixes
* [EGD-4264] Directory relativity
* [EGD-4264] Relative path fixes
* [EGD-4264] Fix RT1051 compile errors
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
[EGD-4366] Global data cleanup. (#999)
[EGD-4264] Mark vfs methods as deprecated (#998)
* [EGD-4264] Mark vfs methods as deprecated
Mark all vfs.xxx method as deprecated all applications should migrate
to standandard file IO library like <cstdio> <fstream> <filesystem>.
Standard libraries are working, and vfs. global class will be removed
in the feature relase when disk and filesystem manager will be completed
* [EGD-4264] Deprecated migration guide comment
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
[EGD-4330] file streams ld preload library (#982)
* [EGD-4330] file streams ld preload library
It is concept library LD_PRELOAD for handle syscalls wrapper to the
image fat file.
* [EGD-4330] Stdlib implementation
* [EGD-4330] Stdio syscalls
* [EGD-4330] Dir searching stdlib replacement
* [EGD-4330] NL at end of file
* [EGD-4261] Working version of library wrapper
* [EGD-4330] Script for run emulator on fs image
Run phone emulator using filesystem image
* [EGD-4261] Missing debug file
* [EGD-4330] Not needed to link...
* [EGD-4330] Code review fixes #1
iosyscalls
* [EGD-4330] Code review fixes round #2
* [EGD-4330] Code review round #3
* Ident fixes
* [EGD-4330] Ident fixes
* [EGD-4330] Code review round #4
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
[EGD-4261] stdlib file access syscalls for RT1051 platform (#952)
* [EGD-4261] Initial version of syscalls
* [EGD-4261] CR small fixes
* [EGD-4261] Rename namespace and fsync call
Rename namespace vfs::internal for clarify that syscall functions are for internal use only
* [EGD-4261] Handle manager for stdlib
Handle manager layer for STDIO compatibility.
* [EGD-4261] Initial version of sysscall (old vfs)
* [EGD-4261] Direntry syscalls completed
* [EGD-4261] Fixes in handle manager
* [EGD-4261] Add support for std::filesystem.
libstdc++ from compiler is compiled without <dirent.h>
, so std::directory_iterator doesn't work.
Our implementation fix this issue and override
libstdc++ library code
* [EGD-4261] Compile syscalls only on RT1051 target
* [EGD-4261] RT compile fix
* [EGD-4261] Code review small fixes
* [EGD-4261] Code review fixes
* [EGD-4261] Remove redundant noisy debug log msg.
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
[EGD-4288] refactor global data (#959)
Reduce firmware size by refactoring global data defined in public
headers.
Each global variable which require runtime initialization adds
initialization code to every translation unit which includes the header
where the variable is defined and declared.
[EGD-4181] Indexer service scan files (#914)
* [EGD-4181] Initial file indexer service
* [EGD-4181] Initial version of the indexer service
* [EGD-4181] Small changes needed for file indexer
* [EGD-4181] Pass message from vfs to indexer service
* [EGD-4181] Initial indexer service with timers
* [EGD-4181] File indexer service list files
* [EGD-4181] Use default destructor in header
Don't use iterator
* [EGD-4181] Code review fixes.
* [EGD-4030] File indexer handle base mime types
* [EGD-4181] Code review fixes.
* [EGD-4181] Audio file indexer initial stub
* [EGD-4030] Text files indexer
* [EGD-4081] Missing UTF8 file header
* [EGD-4181] Startup paths as an array.
* [EGD-4181] VFS notifier dir fixes
* [EGD-4181] Service fileindexer as static library
* [EGD-4181] Code review fixes
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
[EGD-4029] Prevent call handler recursively (#927)
Prevent call notification handler from thread which
register notification handler.
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
[EGD-4179] Recursive file list API (#912)
Recursive file list API with callback added
to the freertos FAT implementation
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
[EGD-4029] File indexer notifier (#862)
* [EGD-4029] Initial version of file notifier in the VFS
* [EGD-4029] File indexer notifier in the VFS
* [EGD-4029] Minor syntax fixes in code
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
[EGD-4139] VFS unit tests for lseek (#885)
* [EGD-4139] VFS unit tests for lseek
* [EGD-4139] lseek fat VFS test
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
[EGD-4135] FREERTOS vfat ff_fflush implementation (#878)
ff_fflush implementation is needed for sqlite3 when
unexcepted power failure.
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
[EGD-4075] Use FATFS in the Linux builds (#843)
* [EGD-4075] Use FAT fs in the emulator
Add script for genrate base phone image
* [EGD-4075] Use FreeRTOS-FAT in emulator initial commit
* [EGD-4075] Thread local storage fix
Fixing thread local storage when running on the
Linux platform in the test mode
* [EGD-4075] Improve image generation
Improve image generation script on the linux platform
* [EGD-4075] Fix all test with FAT fs image
Fix all tests with fatfs image
* [EGD-4075] Fix calculator utility test
* [EGD-4075] Image dependencies fix
* Remove uneeded comments
* Missing headers in CR
* [EGD-4075] Fixed whitespaces
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>