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
Benjamin Valentin
92d9d5676a
sys/vfs: add vfs_default pseudo-module
2022-02-14 13:04:37 +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
be45400631
Merge pull request #17341 from benpicco/vfs-mtd_cleanup
...
sys/vfs: add file-system auto-mount
2022-02-09 21:50:34 +01:00
Benjamin Valentin
2f6aa71946
sys/vfs: add file-system auto-mount
2022-02-09 12:21:53 +01:00
Benjamin Valentin
aac538ba7f
sys/vfs: provide vfs_fsync()
2022-02-07 16:07:20 +01:00
Leandro Lanzieri
368ccdf3f8
sys/vfs: model Kconfig
2021-11-29 10:30:49 +01:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
0b801c4de0
all: adapt to moved sched defines
2020-11-23 16:56:34 +01:00
Bas Stottelaar
922e2ac1c9
sys/*: replace #if ENABLE_DEBUG with IS_ACTIVE
2020-11-02 21:49:39 +01:00
chrysn
b6392d63ef
vfs: Provide generic stat implementation (and use in fatfs)
...
When a file system has `fstat` and `open` implemented, `stat` can still
be missing. The new function is a generic implementation, and used in
fatfs to provide a `stat`.
2020-10-25 17:39:57 +01:00
Bas Stottelaar
1b35d06a51
sys/*: realign ENABLE_DEBUG
2020-10-23 11:27:48 +02:00
Martine S. Lenders
ef844d8863
vfs: provide function to get internal file information by fd
2020-07-01 13:36:25 +02:00
Hauke Petersen
b837e656f9
stdio/vfs: generalized VFS mapping for STDIO
2018-08-30 11:14:59 +02:00
Hauke Petersen
c2184f3454
boards/cpu/drivers/sys: use generic stdio_ if
2018-08-22 10:54:25 +02:00
Joakim Nohlgård
be14d2eace
sys/vfs: Exclude stdio file numbers from auto allocation
...
Fixes #8309 (https://github.com/RIOT-OS/RIOT/issues/8309 )
2018-02-13 18:05:28 +01:00
Joakim Nohlgård
490e7c87e0
sys/vfs: Check suggested fd is valid
...
Avoids out of bounds array access on _vfs_open_files if vfs_bind is
called with an invalid (positive) fd number
2018-02-12 08:45:19 +01:00
Vincent Dupont
d5bce2440b
vfs: do not umount fs which is not mounted
2018-02-09 14:29:46 +01:00
Vincent Dupont
2eca6d25fd
vfs: add format function in vfs api
2018-02-09 14:29:45 +01:00
smlng
eb3bfdf1d2
sys/vfs: fix format error in debug output
2018-01-17 15:25:15 +01:00
dcc0804e10
sys/vfs: DEBUG fix
2018-01-15 14:37:04 +01:00
smlng
b283b7784c
make: fix various compile errors with Wextra
...
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-11-28 18:31:43 +01:00
Joakim Nohlgård
dcc37329df
sys/vfs: A virtual file system (VFS) layer for RIOT
...
The VFS layer provides file system abstractions to allow using a unified
interface to access files from mounted file systems.
2017-03-07 17:59:57 +01:00