Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Levin Zimmermann
go-fuse
Commits
fcdd7df0
Commit
fcdd7df0
authored
May 27, 2012
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add -allow-other option to loopback executable.
parent
13122745
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
example/loopback/main.go
example/loopback/main.go
+5
-1
No files found.
example/loopback/main.go
View file @
fcdd7df0
...
@@ -19,6 +19,7 @@ var _ = log.Print
...
@@ -19,6 +19,7 @@ var _ = log.Print
func
main
()
{
func
main
()
{
// Scans the arg list and sets up flags
// Scans the arg list and sets up flags
debug
:=
flag
.
Bool
(
"debug"
,
false
,
"print debugging messages."
)
debug
:=
flag
.
Bool
(
"debug"
,
false
,
"print debugging messages."
)
other
:=
flag
.
Bool
(
"allow-other"
,
false
,
"mount with -o allowother."
)
flag
.
Parse
()
flag
.
Parse
()
if
flag
.
NArg
()
<
2
{
if
flag
.
NArg
()
<
2
{
// TODO - where to get program name?
// TODO - where to get program name?
...
@@ -46,7 +47,10 @@ func main() {
...
@@ -46,7 +47,10 @@ func main() {
mountPoint
:=
flag
.
Arg
(
0
)
mountPoint
:=
flag
.
Arg
(
0
)
fmt
.
Println
(
"Mounting"
)
fmt
.
Println
(
"Mounting"
)
err
:=
state
.
Mount
(
mountPoint
,
nil
)
mOpts
:=
&
fuse
.
MountOptions
{
AllowOther
:
*
other
,
}
err
:=
state
.
Mount
(
mountPoint
,
mOpts
)
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Printf
(
"Mount fail: %v
\n
"
,
err
)
fmt
.
Printf
(
"Mount fail: %v
\n
"
,
err
)
os
.
Exit
(
1
)
os
.
Exit
(
1
)
...
...
Write
Preview
Markdown
is supported
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