1
0
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:
Benjamin Valentin 2023-03-03 13:35:00 +01:00
parent f4e9da51fa
commit 5708ca1945

View File

@ -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)
{
for (unsigned i = 0; i < MOUNTPOINTS_NUMOF; ++i) {