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

38587 Commits

Author SHA1 Message Date
chrysn
b9b0ca8972 sys/shell/vfs: Use vfs_iter_mount_dirs instead of vfs_iter_mounts
This solves highly theoretical race conditions of file systems being
unmounted in an application while a shell `df` runs, fixes the previous
weird behavior that `/mountpoint/non-existant-path` could be df'd and
would even report that non-existant path as a file name, but more
practically ensures that an example of vfs_iter_mount_dirs is around.
2022-02-16 19:15:02 +01:00
chrysn
f0e80ee10c tests: Cover vfs_iterate_mount_dirs in a new test
... adding precision to the documentation where a corner case was
discovered during testing and is permitted.

The test is too large for one small board, just like the other existing
VFS test.
2022-02-16 19:15:02 +01:00
chrysn
90069197f7 sys/vfs: Introduce vfs_iterate_mount_dirs
... as thread-safe replacement for vfs_iterate_mounts
2022-02-16 19:15:02 +01:00
chrysn
9a319a9b4f sys/vfs: Iterate over file systems in sequence
This is a cosmetic change when considering vfs_iterate_mounts alone
(which now reports FSs in precise mount order rather than reporting the
most recently mounted, followed by the rest in mount order), but is
helpful for uses of it that need some guarantees in order to produce
reliable results even when iteration and (un)mounting interact.
2022-02-16 19:15:02 +01:00
chrysn
599eade495 sys/vfs: Add vfs_dstatvfs 2022-02-15 14:58:01 +01:00
chrysn
ff1f81aac8 sys/vfs: Drop per-filesystem fstatvfs
No current file system implements it, there is no defined semantic
difference between running fstatfs and the fallback currently
implemented, and there is practically no optimization gained from not
just running it through a single statvfs.
2022-02-15 14:58:01 +01:00
chrysn
4c54bd8bdb vfs: Document that open directories are counted
The addition is helpful because directories are visibly different from
open files (and generally are not treated like files).
2022-02-15 11:17:02 +01:00
chrysn
69db27f1cc
Merge pull request #17614 from chrysn-pull-requests/ztimer-doc-stricter
sys/ztimer doc: List prerequisites for successful use of ztimer_now
2022-02-15 09:09:12 +01:00
chrysn
1c3a646936
Merge pull request #17653 from benpicco/cpu/native-fatfs_defaults
boards/native: select MTD defaults for FAT
2022-02-15 09:03:21 +01:00
Benjamin Valentin
cd543f1873 examples/filesystem: adopt README.md after changing MTD defaults 2022-02-14 18:22:17 +01:00
Francisco
d197c2518b
Merge pull request #17648 from MrKevinWeiss/pr/kconfig/boardconfig
boards: Use BOARD.config pattern for kconfig
2022-02-14 17:49:31 +01:00
benpicco
78e4f6b557
Merge pull request #17643 from benpicco/vfs_default
sys/vfs: add vfs_default, configure default fs for same54-xpro
2022-02-14 16:33:23 +01:00
chrysn
632ca35eb4 sys/ztimer doc: List prerequisites for successful use of ztimer_now
Closes: https://github.com/RIOT-OS/RIOT/issues/17298

Co-authored-by: Karl Fessel <karl.fessel@ovgu.de>
2022-02-14 15:50:09 +01:00
benpicco
e126743229
Merge pull request #17632 from fjmolinas/pr_default_modules_deps
makefiles/dependency_resolution: add outer loop for DEFAULT_MODULE deps
2022-02-14 15:17:19 +01:00
Benjamin Valentin
315342ea10 tests/pkg_fatfs*: don't overwrite native MTD defaults 2022-02-14 15:11:52 +01:00
Benjamin Valentin
5f1dda0eda boards/native: select MTD defaults for FAT
The FAT file system makes some strong assumptions about sector and
block size that are not met by the default native MTD emulation.

To avoid this trip hazard, change the native MTD defaults when FAT is
used.
2022-02-14 15:10:12 +01:00
MrKevinWeiss
ddfe1f6aff
boards: Use BOARD.config pattern for kconfig
Many simple kconfig configurations are added to boards and brought in with the board name.

This makes a common import of these configs so one only requires adding a BOARD.config without having to alter the makefile.
2022-02-14 13:10:09 +01:00
Benjamin Valentin
60d9782e52 boards/native: default to using littlefs2 on virtual flash 2022-02-14 13:04:37 +01:00
Benjamin Valentin
33e1d38dae boards/same54-xpro: default to using littlefs2 on external flash 2022-02-14 13:04:37 +01:00
Benjamin Valentin
92d9d5676a sys/vfs: add vfs_default pseudo-module 2022-02-14 13:04:37 +01:00
Francisco Molina
3de5549899 makefile: move DEFAULT_MODULEs with deps to default_modules.deps.mk 2022-02-14 13:03:32 +01:00
Francisco Molina
25e670e263 makefiles/dependency_resolution: add outer loop for DEFAULT_MODULE deps
Some DEFAULT_MODULEs in tree have dependencies of their own. This is
usually done for aliases of init modules, and do not have dependencies
themselves.

This adds the final stage to dependency resolutions where DEFAULT_MODULEs
dependencies MAY be included. These included modules MUST NOT have
dependencies themselves.

This allows for modules to disable DEFAULT_MODULEs during dependencies
resolution independent of the inclusion order.

auto_init and periph_init modules are moved to this outer-loop, allowing
therefore for modules to disable them during the dependency resolution
2022-02-14 12:59:31 +01:00
Francisco Molina
08dc06d5e0 sys/Makefile.dep: fix dhcp_relay dependency
Modules select by auto-init modules MUST NOT have dependencies
themselfs, dhcp_relay was not respecting that. Instead of having
the auto-init module select dhcp_relay, do it the other way
around.
2022-02-14 12:59:31 +01:00
Marian Buschsieweke
ec0df56b67
Merge pull request #17646 from kaspar030/tests_periph_flashpage_pagemem
tests/periph_flashpage: fix conditional compilation
2022-02-13 11:41:42 +01:00
806e7dee9a tests/periph_flashpage: fix conditional compilation 2022-02-12 22:41:12 +01:00
chrysn
25882133f8
Merge pull request #17634 from benpicco/pkg/fatfs-statvfs
pkg/fatfs: implement statvfs()
2022-02-12 15:25:04 +01:00
chrysn
aae6c18cb1
Merge pull request #17645 from chrysn-pull-requests/all-stat-buffers
vfs: Initialize stat buffers so FSs don't have to
2022-02-12 15:12:47 +01:00
chrysn
2cb4b70458 vfs / treewide: Remove manual zeroing of vfs stat buffers 2022-02-12 12:31:38 +01:00
chrysn
4e84c19281 vfs: Zero buffers in all stat calls
This allows individual VFS implementations to populate just the fields
they can populte.
2022-02-12 12:23:03 +01:00
benpicco
79743273e1
Merge pull request #17550 from krzysztof-cabaj/add-cpy2remed
tools/cpy2remed: Addition of new programmer for nucleo boards
2022-02-11 20:05:14 +01:00
Juergen Fitschen
2b5eb0274a
Merge pull request #17642 from jue89/feature/pm-layered-blocker
sys/pm_layered: allow board.h to set PM_BLOCKER_INITIAL
2022-02-11 19:53:10 +01:00
f6b7255275
Merge pull request #17641 from fjmolinas/pr_senml_saul_default
tests/senml: do no include saul_default
2022-02-11 17:20:36 +01:00
Juergen Fitschen
b957b3cea1 sys/pm_layered: allow board.h to set PM_BLOCKER_INITIAL 2022-02-11 17:05:34 +01:00
Francisco Molina
a0ec1e0789 tests/senml: do no include saul_default 2022-02-11 17:04:27 +01:00
8c36648bd5
Merge pull request #17640 from benpicco/sys/benchmark-cleanup
sys/benchmark: wrap BENCHMARK_FUNC in do {} while (0)
2022-02-11 16:35:46 +01:00
krzysztof-cabaj
4bb5487f86 tools/cpy2remed: Addition of cpy2remed programmer to nucleo-L552ZE-Q 2022-02-11 08:27:25 -05:00
Benjamin Valentin
17cc382b93 sys/benchmark: wrap BENCHMARK_FUNC in do {} while (0)
This makes the BENCHMARK_FUNC() behave more like a normal C function.
2022-02-11 14:24:38 +01:00
Benjamin Valentin
9982cf5c3e pkg/fatfs: implement statvfs()
This hooks up the statvfs() function to query file system properties.
2022-02-11 14:05:27 +01:00
Francisco
e6024c7fa7
Merge pull request #16384 from silkeh/pr/senml-module
sys/senml: add SenML modules
2022-02-11 13:57:36 +01:00
benpicco
d67207404c
Merge pull request #17639 from krzysztof-cabaj/board-nucleo-l552ze-doc
boards/nucleo-l552ze-q doc: Improvements to documentation
2022-02-11 12:53:01 +01:00
Silke Hofstra
9d61bdbb06 sys/senml: add SenML modules
Add a basic SenML module and submodules with support for:

- Encoding SenML values as CBOR using NanoCBOR.
- Converting from Phydat to SenML.
- Reading and encoding SAUL sensors.
2022-02-11 12:38:21 +01:00
krzysztof-cabaj
30065c6141 boards/nucleo-l552ze-q: Adding improvements to Nucle-L552ZE-Q doc 2022-02-11 06:27:41 -05:00
benpicco
ce779f7b70
Merge pull request #17637 from jenswet/feature/unix_af_enum_t
net: Add typedef for AF enum
2022-02-11 11:52:32 +01:00
benpicco
561157ce72
Merge pull request #17635 from jenswet/feature/netdev_tap_register
cpu/native/netdev_tap: Add to netdev_register
2022-02-11 11:52:04 +01:00
Kevin "Tristate Tom" Weiss
07ee9454f0
Merge pull request #17609 from MrKevinWeiss/pr/fix/kconfigclkspecific
cpu/stm32: Fix clock tree
2022-02-11 11:14:27 +01:00
Jens Wetterich
4dfeafcabd cpu/native/netdev_tap: Add to netdev_register 2022-02-11 07:54:11 +01:00
benpicco
4fb2394f1d
Merge pull request #17636 from jenswet/bugfix/gnr_pkt_iso_cpp
net/gnrc/pkt: Fix ISO C++ compatibility
2022-02-11 00:49:31 +01:00
Jens Wetterich
fd5b1a68b5 net: Add typedef for AF enum 2022-02-10 19:02:50 +01:00
Jens Wetterich
f1f1896628 net/gnrc/pkt: Fix ISO C++ compatibility 2022-02-10 18:26:38 +01:00
MrKevinWeiss
cd07488f51
.murdock: remove boards from blocklist
esp8266-esp-12x
esp32-wrover-kit
msbiot
pyboard

All of these should work now...
2022-02-10 13:43:41 +01:00