diff --git a/sys/vfs/vfs.c b/sys/vfs/vfs.c index e48bbe6f5d..d161dbe63c 100644 --- a/sys/vfs/vfs.c +++ b/sys/vfs/vfs.c @@ -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) {