mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 03:45:24 +00:00
rump_fs: handle non-existing root directory
This commit is contained in:
parent
3680a79f38
commit
6b1923bbe6
@ -440,8 +440,14 @@ class File_system::Root : public Root_component<Session_component>
|
||||
ram_quota, session_size);
|
||||
throw Root::Quota_exceeded();
|
||||
}
|
||||
return new (md_alloc())
|
||||
Session_component(tx_buf_size, _ep, root_dir, writeable, *md_alloc());
|
||||
|
||||
try {
|
||||
return new (md_alloc())
|
||||
Session_component(tx_buf_size, _ep, root_dir, writeable, *md_alloc());
|
||||
} catch (Lookup_failed) {
|
||||
PERR("File system root directory \"%s\" does not exist", root_dir);
|
||||
throw Root::Unavailable();
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user