1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

17 Commits

Author SHA1 Message Date
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
4dd5cb3e08 pkg/littlefs2: add warning if block size is not reasonable 2022-07-31 10:57:13 +02:00
Fabian Hüßler
a29d5c24cd pkg/littlefs2: make block size configurable 2022-07-31 10:57:13 +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
c55b264428 pkg/littlefs2: hook up vfs_fsync() 2022-02-07 16:07:37 +01:00
Marian Buschsieweke
906d73107a
pkg/littlefs2: use static_assert() instead of BUILD_BUG_ON() 2022-01-05 15:09:09 +01:00
Marian Buschsieweke
78810d736c
pkg/littlefs2/fs: fix compilation with -Wcast-align 2021-11-08 14:24:32 +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
c2492209d8 pkg/littlefs2: use page-addressed MTD operations 2020-08-18 17:25:40 +02:00
Benjamin Valentin
a028102149 pkg/littlefs2: rename littlefs_desc_t -> littlefs2_desc_t
Allow to have both versions of the FS present at the same time.
2020-07-17 16:43:00 +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
891a05dca6 pkg/littlefs2: 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
9b02c7b4ee
pkg/littlefs2: Add package for LittleFS v2.x.y 2020-02-20 14:51:45 +01:00