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:
parent
f731ec7bff
commit
e2cee4255d
@ -214,7 +214,6 @@ static int _mount(vfs_mount_t *mountp)
|
||||
}
|
||||
|
||||
mp->os_locks = &_lwext4_os_lock;
|
||||
mp->mounted = true;
|
||||
|
||||
res = ext4_recover(fs->mp.name);
|
||||
if (res != EOK && res != ENOTSUP) {
|
||||
@ -228,6 +227,7 @@ static int _mount(vfs_mount_t *mountp)
|
||||
return -res;
|
||||
}
|
||||
|
||||
mp->mounted = true;
|
||||
ext4_cache_write_back(fs->mp.name, 1);
|
||||
|
||||
return -res;
|
||||
|
Loading…
Reference in New Issue
Block a user