Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Robin Randhawa
redoxfs
Commits
78c5e1c6
Commit
78c5e1c6
authored
Jan 20, 2018
by
Jeremy Soller
Browse files
Enter null namespace for redoxfs
parent
40e2a3e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mount/redox/mod.rs
View file @
78c5e1c6
extern
crate
spin
;
use
syscall
;
use
syscall
::{
Packet
,
Scheme
};
use
std
::
fs
::
File
;
use
std
::
io
::{
self
,
Read
,
Write
};
...
...
@@ -19,6 +20,8 @@ pub fn mount<D: Disk, P: AsRef<Path>, F: FnMut()>(filesystem: FileSystem<D>, mou
callback
();
syscall
::
setrens
(
0
,
0
)
.expect
(
"redoxfs: failed to enter null namespace"
);
let
scheme
=
FileScheme
::
new
(
format!
(
"{}"
,
mountpoint
.display
()),
filesystem
);
loop
{
let
mut
packet
=
Packet
::
default
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment