mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
vfs: add auto_unmount_vfs()
This commit is contained in:
parent
f4e9da51fa
commit
5708ca1945
@ -1193,6 +1193,13 @@ void auto_init_vfs(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void auto_unmount_vfs(void)
|
||||||
|
{
|
||||||
|
for (unsigned i = 0; i < MOUNTPOINTS_NUMOF; ++i) {
|
||||||
|
vfs_umount(&vfs_mountpoints_xfa[i], true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int vfs_mount_by_path(const char *path)
|
int vfs_mount_by_path(const char *path)
|
||||||
{
|
{
|
||||||
for (unsigned i = 0; i < MOUNTPOINTS_NUMOF; ++i) {
|
for (unsigned i = 0; i < MOUNTPOINTS_NUMOF; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user