Commit Graph

84 Commits

Author SHA1 Message Date
Willy-JL
034edf50ce Mass storage revert to expand (max 2G img w/ seek)
This reverts commit 54804fcc66.
2023-08-29 03:25:45 +02:00
Willy-JL
d7aa3ea60f Make all service memory structures OFW comaptible 2023-08-29 01:57:06 +02:00
Willy-JL
54804fcc66 Remove file expand, use seek for mass storage 2023-08-29 01:33:31 +02:00
Willy-JL
8bdbdaa6f5 Tweak services orders
Same order but numbers match OFW
2023-08-29 00:49:15 +02:00
Willy-JL
17a6822a09 Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev 2023-08-27 22:14:33 +02:00
MX
20593d56c0 Merge branch 'ofw-dev' into dev 2023-08-22 21:53:50 +03:00
Astra
e353433cd8 [FL-3488] Assign tickets to all TODO items (#2988)
Co-authored-by: あく <alleteam@gmail.com>
2023-08-23 02:56:27 +09:00
Willy-JL
367389367a Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev 2023-08-10 02:18:22 +02:00
MX
7027f6a4c4 Merge branch 'ofw-dev' into dev 2023-08-09 15:05:12 +03:00
Sergey Gavrilov
00cdc3d1cb [FL-3461] RPC: md5 in storage list (#2929)
* Protobuf: update
* Toolbox: md5 for file. Unit-Tests: test md5_calc.
* Storage RPC, CLI, unit tests: use new md5_calc
* Protobuf: update
* RPC, StorageList: append md5 info to file
* fbt: attempt to fix shallow submodule checkouts
* pvs: make happy
* Protobuf: update to latest release

Co-authored-by: hedger <hedger@nanode.su>
Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-08-09 06:34:54 +09:00
Willy-JL
21eeb53960 Storage error handling improvements 2023-08-03 15:20:54 +02:00
Willy-JL
e8f11e5521 Add storage_file_expand() 2023-08-02 23:33:27 +02:00
Willy-JL
4d6d7adf30 Format 2023-07-23 21:35:06 +02:00
Willy-JL
fbc000423e Add description for storage cli migrate 2023-07-23 20:23:17 +02:00
Willy-JL
23cee7197e <:N1:1130620612352679958><:N2:1130620354440745162> 2023-07-18 00:25:15 +01:00
Willy-JL
bd9f2b6ff7 Add migrate to storage cli 2023-07-18 00:23:05 +01:00
Willy-JL
843133295f Storage fast migrate (use rename recursively) 2023-07-18 00:22:49 +01:00
Willy-JL
b5744fac21 Storage check trailing slash on subdir check 2023-07-14 19:48:41 +02:00
MX
635c824b1b Merge branch 'ofw-dev' into dev 2023-07-14 16:53:45 +03:00
Nikolay Minaylov
e073c603a4 [FL-3334] Storage: explosive rename fix (#2876)
Co-authored-by: あく <alleteam@gmail.com>
2023-07-14 13:16:22 +04:00
MX
c4b04a06bb Merge branch 'ofw-dev' into dev 2023-07-12 21:19:16 +03:00
あく
a4b4802897 Revert "[FL-3420] Storage: directory sort (#2850)" (#2868)
This reverts commit 136114890f.
2023-07-12 21:02:52 +10:00
MX
9d98724dcb Merge branch 'ofw-dev' into dev 2023-07-11 13:31:59 +03:00
Sergey Gavrilov
136114890f [FL-3420] Storage: directory sort (#2850)
* Storage: sort_data holder in file structure
* Storage: sort directory if it possible
* make pvs happy
* Storage: fail sorting if there is no more space for realloc
* Storage: case insensitive sorting.

Co-authored-by: あく <alleteam@gmail.com>
2023-07-11 11:29:45 +04:00
Willy-JL
4ecab40fde Max file name length is actually 253 + null term
More than that and fatfs will truncate like name~1
Also dir_read already accounts for null term in buf size, dont malloc +1
2023-06-13 03:10:10 +01:00
Willy-JL
cb1d05d761 Who tf made extensions have limited length??? 2023-06-12 23:32:36 +01:00
Willy-JL
df8b7cbe48 Random cleanup and housekeeping 2023-06-01 01:46:19 +01:00
Willy-JL
c5cf2ce53f Fix brick on rename across filesystems 2023-05-31 15:43:11 +01:00
Willy-JL
fa89ef848c Add an actual move function (OFW, rename != move) 2023-05-26 22:06:14 +01:00
Willy-JL
20dd1ba9da Fail early on actual rename 2023-05-26 22:05:43 +01:00
MX
d094bfaa12 Merge branch 'ofw-dev' into dev 2023-05-25 16:48:28 +03:00
Sergey Gavrilov
88f0b63577 Storage, common_rename: check that old path is exists (#2698)
* Storage, common_rename: check that old path is exists
* Storage, common_rename: return correct status
2023-05-25 22:44:32 +09:00
MX
1e5a8f4391 Merge branch 'ofw-dev' into dev 2023-05-24 07:16:05 +03:00
Sergey Gavrilov
711f0fef40 [FL-3327] Storage: common_rename is now POSIX compliant (#2693)
* Storage: common_rename is now POSIX compliant

* storage: check for success on storage_common_remove in file rename

---------

Co-authored-by: hedger <hedger@nanode.su>
2023-05-23 18:59:32 +04:00
Willy-JL
162cecf8af No copy move to subdir 2023-05-22 14:09:40 +01:00
Willy-JL
28a4800302 Try to use rename first for migrate 2023-05-15 18:24:25 +01:00
Willy-JL
c6eff58890 OFW be like rEnAmE = cOpY + dElEtE, bro stfu :/ 2023-05-15 01:31:02 +01:00
Willy-JL
4aef6a9df8 Move rgb backlight from useless service to lib 2023-05-10 12:57:31 +01:00
Willy-JL
33ff8e4506 Start storage service first to load xtreme early 2023-05-10 12:13:38 +01:00
Willy-JL
6fefa82817 Move U2F counter back to sd, only key on internal 2023-05-08 14:26:22 +01:00
Willy-JL
8fa7d16c5f Merge branch 'ul-dev' into xfw-dev 2023-05-06 01:43:09 +01:00
MX
6b186622cb Merge branch 'fz-dev' into dev 2023-05-05 16:10:00 +03:00
あく
914129a0d9 [FL-3289] Various Furi/FuriHal bug fixes and improvements (#2637)
* Furi: properly handle thread free before TCB scrapping, add furi_free - more invasive version of free to memmgr. FuriHal: add DWT comparator api to cortex. Updater, RPC: refactor various thread shanenigans. Code cleanup.
* Rollback free macros and related changes
2023-05-05 21:40:55 +09:00
Willy-JL
5d62ce919b :doomed: 2023-05-02 21:29:46 +01:00
jl1990
4fb63eb36b Code cleanup 2023-05-02 18:36:06 +02:00
Willy-JL
601e82d210 Please FBT, snort some copium 2023-04-28 19:52:56 +01:00
Willy-JL
7adb7e2ded Fix internal storage bugs with restoring U2F keys 2023-04-28 19:50:04 +01:00
Willy-JL
10a7c8f84a Backup+restore internal U2F keys on factory reset 2023-04-25 17:18:14 +01:00
Willy-JL
2b9c6e9d9c Expose storage_get_data 2023-03-29 12:19:01 +01:00
Willy-JL
aa8d9b7bac Format 2023-03-28 04:48:41 +01:00