[FL-2675] /int space reservation (#1448)
* storage: added global #defines for /int, /ext & /any * storage: introduced PATH_EXT, PATH_INT& PATH_ANY macros * core apps: moved hardcoded config files names to separate headers; prefixed them with "."; updater: added file name migration to new naming convention on backup extraction * storage: fixed storage_merge_recursive handling of complex directory structures; storage_move_to_sd: changed data migration logic to all non-dot files & all folders * core: added macro aliases for core record names * Bumped protobuf commit pointer * storage: reserved 5 pages in /int; denying write&creation of non-dot files when running out of free space Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
* const uint16_t array_size = 4;
|
||||
* const uint8_t* array[array_size] = {0x00, 0x01, 0xFF, 0xA3};
|
||||
*
|
||||
* if(!flipper_format_file_open_new(format, "/ext/flipper_format_test")) break;
|
||||
* if(!flipper_format_file_open_new(format, EXT_PATH("flipper_format_test"))) break;
|
||||
* if(!flipper_format_write_header_cstr(format, "Flipper Test File", version)) break;
|
||||
* if(!flipper_format_write_comment_cstr(format, "Just test file")) break;
|
||||
* if(!flipper_format_write_string_cstr(format, "String", string_value)) break;
|
||||
@@ -78,7 +78,7 @@
|
||||
* string_init(file_type);
|
||||
* string_init(string_value);
|
||||
*
|
||||
* if(!flipper_format_file_open_existing(file, "/ext/flipper_format_test")) break;
|
||||
* if(!flipper_format_file_open_existing(file, EXT_PATH("flipper_format_test"))) break;
|
||||
* if(!flipper_format_read_header(file, file_type, &version)) break;
|
||||
* if(!flipper_format_read_string(file, "String", string_value)) break;
|
||||
* if(!flipper_format_read_uint32(file, "UINT", &uint32_value, 1)) break;
|
||||
|
Reference in New Issue
Block a user