Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
redoxfs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ashton Kemerling
redoxfs
Commits
0353bfc0
Commit
0353bfc0
authored
8 years ago
by
David Teller
Committed by
David Teller
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Let root manipulate a fuse-mounted redoxfs vfs.
This (along with a few Makefile changes) solves my issues building on macOS.
parent
b7608c15
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fuse/main.rs
+9
-1
9 additions, 1 deletion
fuse/main.rs
with
9 additions
and
1 deletion
fuse/main.rs
+
9
−
1
View file @
0353bfc0
...
...
@@ -7,6 +7,7 @@ extern crate time;
use
image
::
Image
;
use
std
::
env
;
use
std
::
ffi
::
OsStr
;
use
std
::
path
::
Path
;
use
time
::
Timespec
;
use
fuse
::{
FileType
,
FileAttr
,
Filesystem
,
Request
,
ReplyData
,
ReplyEntry
,
ReplyAttr
,
ReplyCreate
,
ReplyDirectory
,
ReplyEmpty
,
ReplyStatfs
,
ReplyWrite
};
...
...
@@ -289,7 +290,14 @@ fn main() {
if
let
Some
(
mountpoint
)
=
env
::
args_os
()
.nth
(
2
)
{
fuse
::
mount
(
RedoxFS
{
fs
:
filesystem
},
&
mountpoint
,
&
[]);
},
&
mountpoint
,
&
[
// One of the uses of this redoxfs fuse wrapper is to populate a filesystem
// while building the Redox OS kernel. This means that we need to write on
// a filesystem that belongs to `root`, which in turn means that we need to
// be `root`, thus that we need to allow `root` to have access.
OsStr
::
new
(
"-o"
),
OsStr
::
new
(
"allow_root"
),
]);
}
else
{
println!
(
"redoxfs: no mount point provided"
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment