mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 22:23:16 +00:00
rump_fs: try to mount the fs on startup
By now the file system gets mounted and unmounted on demand (whenever the first clients comes along and whenever the last client leaves). As a precaution we now also try to mount and unmounted the file system in the init phase to prevent the first client from failing to its own surprise. Issue #2558.
This commit is contained in:
parent
f2d063be07
commit
84e0ffe7cb
@ -99,6 +99,20 @@ void File_system::init()
|
||||
|
||||
/* check support for symlinks */
|
||||
_supports_symlinks = check_symlinks(fs_type);
|
||||
|
||||
/*
|
||||
* Try to mount the file system just to check if it
|
||||
* is working as intended. In case it is not that gives
|
||||
* us a change to react upon before any client may
|
||||
* hang.
|
||||
*/
|
||||
try {
|
||||
mount_fs();
|
||||
unmount_fs();
|
||||
} catch (...) {
|
||||
Genode::error("dry mount attempt failed, aborting");
|
||||
throw Genode::Exception();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user