rump_fs: handle non-existing root directory

devel
Sebastian Sumpf 7 years ago committed by Josef Söntgen
parent 3680a79f38
commit 6b1923bbe6
  1. 10
      repos/dde_rump/src/server/rump_fs/main.cc

@ -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…
Cancel
Save