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

pkg/lwext4: don't consider fs mounted if recover fails

This commit is contained in:
Benjamin Valentin 2023-11-07 19:08:39 +01:00
parent f731ec7bff
commit e2cee4255d

View File

@ -214,7 +214,6 @@ static int _mount(vfs_mount_t *mountp)
} }
mp->os_locks = &_lwext4_os_lock; mp->os_locks = &_lwext4_os_lock;
mp->mounted = true;
res = ext4_recover(fs->mp.name); res = ext4_recover(fs->mp.name);
if (res != EOK && res != ENOTSUP) { if (res != EOK && res != ENOTSUP) {
@ -228,6 +227,7 @@ static int _mount(vfs_mount_t *mountp)
return -res; return -res;
} }
mp->mounted = true;
ext4_cache_write_back(fs->mp.name, 1); ext4_cache_write_back(fs->mp.name, 1);
return -res; return -res;