Frederik Haxel
1182de16fd
pkg: Use size_t print format specifier
2023-12-21 12:02:32 +01:00
Benjamin Valentin
85dd564f87
vfs: drop unused abs_path parameter
2022-09-29 22:01:37 +02:00
Fabian Hüßler
578e6280e3
pkg/littlefs: add warning if block size is not reasonable
2022-07-31 10:57:13 +02:00
Fabian Hüßler
41c0b1e7f0
pkg/littlefs: make block size configurable
2022-07-31 10:57:12 +02:00
Benjamin Valentin
6a361795ee
pkg/littlefs*: align readdir() with documentation
...
`readdir()` should only output the name of the file, but littleFS
adds a leading `/`.
Neither FAT nor Linux will exhibit this behavior.
struct dirent *entry;
DIR *dir = opendir(".");
while ((entry = readdir(dir))) {
printf("%s\n", entry->d_name);
}
This results in surprising failures of code that expects filenames
to match that was tested on a different FS, when suddenly there is
a `/` in front of the filename.
2022-02-07 23:25:14 +01:00
Benjamin Valentin
0cd86e728d
pkg/littlefs: hook up vfs_fsync()
2022-02-07 16:10:05 +01:00
Marian Buschsieweke
b76ba4bbfd
pkg/littlefs: use static_assert() instead of BUILD_BUG_ON()
2022-01-05 15:09:09 +01:00
Marian Buschsieweke
3a5a13e343
pkg/littlefs/fs: fix compilation with -Wcast-align
2021-11-08 14:24:18 +01:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
Benjamin Valentin
60eb75da3c
mtd: rename mtd_write_page() -> mtd_write_page_raw()
...
The function will not abstract away the behavior of the underlying media
(e.g. whether only 1 -> 0 writes are possible without erase), thus rename it.
2021-01-26 11:48:26 +01:00
Bas Stottelaar
38a5ff7d4b
pkg/*: realign ENABLE_DEBUG
2020-10-23 02:43:10 +02:00
Benjamin Valentin
f3500257b1
pkg/littlefs: use page-addressed MTD operations
2020-08-18 17:25:40 +02:00
adb46b9ee7
Merge pull request #14006 from benpicco/sdcard_fixes
...
pkg/fs: initialize MTD device before accessing it's properties
2020-05-12 11:31:39 +02:00
fabian18
a3a1c160ee
mtd: Change API to return 0 on success
...
Returning the number of bytes written/read could return a negative integer
because a uint32_t is expected for the length in read()/write() operations.
2020-05-06 20:24:27 +02:00
Benjamin Valentin
85a7254326
pkg/littlefs: init MTD device before accessing it's parameters
...
The parameters of the MTD device (`sector_count`, `page_size`)
are only known after the device has been initialized.
Init the device before using it to avoid reading all 0 on e.g. SD cards.
2020-05-05 13:48:18 +02:00
Vincent Dupont
7e47e36e55
pkg/littlefs: fix file buffer size
2018-10-03 11:54:17 +02:00
Vincent Dupont
3b26d4abf0
pkg/littlefs: add new error codes support
2018-02-27 16:24:06 +01:00
Vincent Dupont
5ede5db234
pkg/littlefs: add format implementation
2018-02-09 14:29:46 +01:00
Pieter Willemsen
8bafd5f4d5
pkg_littlefs: call mtd_write with size == prog_size
2018-01-26 16:12:07 +01:00
1969dd45d9
pkg: littlefs: DEBUG fixes
2018-01-15 14:37:05 +01:00
Vincent Dupont
c8eb77e8ff
pkg: add littlefs pkg and vfs integration
2018-01-09 17:03:44 +01:00