1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00

[FL-3664] 64k does not enough (#3216)

* Unit tests: add "exists" to furi_record tests
* Unit tests: mu_warn, storage 64k test
* Storage: read/write over 64k
* Unit tests: moar tests for storage r/w for >64k cases
* Apps, libs: replace uint16_t with size_t on storage r/w operations
* Unit tests: better data pattern, subghz: warning if transmission is prohibited

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Sergey Gavrilov
2023-11-15 19:39:27 +03:00
committed by GitHub
parent 98d5718ec9
commit 4b3e8aba29
25 changed files with 188 additions and 81 deletions

View File

@@ -1,5 +1,5 @@
entry,status,name,type,params
Version,+,45.1,,
Version,+,46.0,,
Header,+,applications/services/bt/bt_service/bt.h,,
Header,+,applications/services/cli/cli.h,,
Header,+,applications/services/cli/cli_vcp.h,,
@@ -1376,7 +1376,7 @@ Function,+,furi_pubsub_subscribe,FuriPubSubSubscription*,"FuriPubSub*, FuriPubSu
Function,+,furi_pubsub_unsubscribe,void,"FuriPubSub*, FuriPubSubSubscription*"
Function,+,furi_record_close,void,const char*
Function,+,furi_record_create,void,"const char*, void*"
Function,-,furi_record_destroy,_Bool,const char*
Function,+,furi_record_destroy,_Bool,const char*
Function,+,furi_record_exists,_Bool,const char*
Function,-,furi_record_init,void,
Function,+,furi_record_open,void*,const char*
@@ -2090,7 +2090,7 @@ Function,-,storage_dir_rewind,_Bool,File*
Function,+,storage_error_get_desc,const char*,FS_Error
Function,+,storage_file_alloc,File*,Storage*
Function,+,storage_file_close,_Bool,File*
Function,+,storage_file_copy_to_file,_Bool,"File*, File*, uint32_t"
Function,+,storage_file_copy_to_file,_Bool,"File*, File*, size_t"
Function,+,storage_file_eof,_Bool,File*
Function,+,storage_file_exists,_Bool,"Storage*, const char*"
Function,+,storage_file_free,void,File*
@@ -2100,13 +2100,13 @@ Function,-,storage_file_get_internal_error,int32_t,File*
Function,+,storage_file_is_dir,_Bool,File*
Function,+,storage_file_is_open,_Bool,File*
Function,+,storage_file_open,_Bool,"File*, const char*, FS_AccessMode, FS_OpenMode"
Function,+,storage_file_read,uint16_t,"File*, void*, uint16_t"
Function,+,storage_file_read,size_t,"File*, void*, size_t"
Function,+,storage_file_seek,_Bool,"File*, uint32_t, _Bool"
Function,+,storage_file_size,uint64_t,File*
Function,+,storage_file_sync,_Bool,File*
Function,+,storage_file_tell,uint64_t,File*
Function,+,storage_file_truncate,_Bool,File*
Function,+,storage_file_write,uint16_t,"File*, const void*, uint16_t"
Function,+,storage_file_write,size_t,"File*, const void*, size_t"
Function,+,storage_get_next_filename,void,"Storage*, const char*, const char*, const char*, FuriString*, uint8_t"
Function,+,storage_get_pubsub,FuriPubSub*,Storage*
Function,+,storage_int_backup,FS_Error,"Storage*, const char*"
1 entry status name type params
2 Version + 45.1 46.0
3 Header + applications/services/bt/bt_service/bt.h
4 Header + applications/services/cli/cli.h
5 Header + applications/services/cli/cli_vcp.h
1376 Function + furi_pubsub_unsubscribe void FuriPubSub*, FuriPubSubSubscription*
1377 Function + furi_record_close void const char*
1378 Function + furi_record_create void const char*, void*
1379 Function - + furi_record_destroy _Bool const char*
1380 Function + furi_record_exists _Bool const char*
1381 Function - furi_record_init void
1382 Function + furi_record_open void* const char*
2090 Function + storage_error_get_desc const char* FS_Error
2091 Function + storage_file_alloc File* Storage*
2092 Function + storage_file_close _Bool File*
2093 Function + storage_file_copy_to_file _Bool File*, File*, uint32_t File*, File*, size_t
2094 Function + storage_file_eof _Bool File*
2095 Function + storage_file_exists _Bool Storage*, const char*
2096 Function + storage_file_free void File*
2100 Function + storage_file_is_dir _Bool File*
2101 Function + storage_file_is_open _Bool File*
2102 Function + storage_file_open _Bool File*, const char*, FS_AccessMode, FS_OpenMode
2103 Function + storage_file_read uint16_t size_t File*, void*, uint16_t File*, void*, size_t
2104 Function + storage_file_seek _Bool File*, uint32_t, _Bool
2105 Function + storage_file_size uint64_t File*
2106 Function + storage_file_sync _Bool File*
2107 Function + storage_file_tell uint64_t File*
2108 Function + storage_file_truncate _Bool File*
2109 Function + storage_file_write uint16_t size_t File*, const void*, uint16_t File*, const void*, size_t
2110 Function + storage_get_next_filename void Storage*, const char*, const char*, const char*, FuriString*, uint8_t
2111 Function + storage_get_pubsub FuriPubSub* Storage*
2112 Function + storage_int_backup FS_Error Storage*, const char*

View File

@@ -1,5 +1,5 @@
entry,status,name,type,params
Version,+,45.1,,
Version,+,46.0,,
Header,+,applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h,,
Header,+,applications/services/bt/bt_service/bt.h,,
Header,+,applications/services/cli/cli.h,,
@@ -1571,7 +1571,7 @@ Function,+,furi_pubsub_subscribe,FuriPubSubSubscription*,"FuriPubSub*, FuriPubSu
Function,+,furi_pubsub_unsubscribe,void,"FuriPubSub*, FuriPubSubSubscription*"
Function,+,furi_record_close,void,const char*
Function,+,furi_record_create,void,"const char*, void*"
Function,-,furi_record_destroy,_Bool,const char*
Function,+,furi_record_destroy,_Bool,const char*
Function,+,furi_record_exists,_Bool,const char*
Function,-,furi_record_init,void,
Function,+,furi_record_open,void*,const char*
@@ -2717,7 +2717,7 @@ Function,-,storage_dir_rewind,_Bool,File*
Function,+,storage_error_get_desc,const char*,FS_Error
Function,+,storage_file_alloc,File*,Storage*
Function,+,storage_file_close,_Bool,File*
Function,+,storage_file_copy_to_file,_Bool,"File*, File*, uint32_t"
Function,+,storage_file_copy_to_file,_Bool,"File*, File*, size_t"
Function,+,storage_file_eof,_Bool,File*
Function,+,storage_file_exists,_Bool,"Storage*, const char*"
Function,+,storage_file_free,void,File*
@@ -2727,13 +2727,13 @@ Function,-,storage_file_get_internal_error,int32_t,File*
Function,+,storage_file_is_dir,_Bool,File*
Function,+,storage_file_is_open,_Bool,File*
Function,+,storage_file_open,_Bool,"File*, const char*, FS_AccessMode, FS_OpenMode"
Function,+,storage_file_read,uint16_t,"File*, void*, uint16_t"
Function,+,storage_file_read,size_t,"File*, void*, size_t"
Function,+,storage_file_seek,_Bool,"File*, uint32_t, _Bool"
Function,+,storage_file_size,uint64_t,File*
Function,+,storage_file_sync,_Bool,File*
Function,+,storage_file_tell,uint64_t,File*
Function,+,storage_file_truncate,_Bool,File*
Function,+,storage_file_write,uint16_t,"File*, const void*, uint16_t"
Function,+,storage_file_write,size_t,"File*, const void*, size_t"
Function,+,storage_get_next_filename,void,"Storage*, const char*, const char*, const char*, FuriString*, uint8_t"
Function,+,storage_get_pubsub,FuriPubSub*,Storage*
Function,+,storage_int_backup,FS_Error,"Storage*, const char*"
1 entry status name type params
2 Version + 45.1 46.0
3 Header + applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h
4 Header + applications/services/bt/bt_service/bt.h
5 Header + applications/services/cli/cli.h
1571 Function + furi_pubsub_unsubscribe void FuriPubSub*, FuriPubSubSubscription*
1572 Function + furi_record_close void const char*
1573 Function + furi_record_create void const char*, void*
1574 Function - + furi_record_destroy _Bool const char*
1575 Function + furi_record_exists _Bool const char*
1576 Function - furi_record_init void
1577 Function + furi_record_open void* const char*
2717 Function + storage_error_get_desc const char* FS_Error
2718 Function + storage_file_alloc File* Storage*
2719 Function + storage_file_close _Bool File*
2720 Function + storage_file_copy_to_file _Bool File*, File*, uint32_t File*, File*, size_t
2721 Function + storage_file_eof _Bool File*
2722 Function + storage_file_exists _Bool Storage*, const char*
2723 Function + storage_file_free void File*
2727 Function + storage_file_is_dir _Bool File*
2728 Function + storage_file_is_open _Bool File*
2729 Function + storage_file_open _Bool File*, const char*, FS_AccessMode, FS_OpenMode
2730 Function + storage_file_read uint16_t size_t File*, void*, uint16_t File*, void*, size_t
2731 Function + storage_file_seek _Bool File*, uint32_t, _Bool
2732 Function + storage_file_size uint64_t File*
2733 Function + storage_file_sync _Bool File*
2734 Function + storage_file_tell uint64_t File*
2735 Function + storage_file_truncate _Bool File*
2736 Function + storage_file_write uint16_t size_t File*, const void*, uint16_t File*, const void*, size_t
2737 Function + storage_get_next_filename void Storage*, const char*, const char*, const char*, FuriString*, uint8_t
2738 Function + storage_get_pubsub FuriPubSub* Storage*
2739 Function + storage_int_backup FS_Error Storage*, const char*