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
Kirill Smelkov
go-fuse
Commits
de0c98a2
Commit
de0c98a2
authored
Jul 08, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unionfs: Fix access constants package.
parent
62df4e52
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
unionfs/autounion.go
unionfs/autounion.go
+2
-2
unionfs/unionfs.go
unionfs/unionfs.go
+2
-3
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+1
-2
No files found.
unionfs/autounion.go
View file @
de0c98a2
...
...
@@ -473,6 +473,6 @@ func (fs *autoUnionFs) OpenDir(name string, context *fuse.Context) (stream []fus
return
stream
,
status
}
func
(
fs
*
autoUnionFs
)
StatFs
(
name
string
)
*
nodefs
.
StatfsOut
{
return
&
nodefs
.
StatfsOut
{}
func
(
fs
*
autoUnionFs
)
StatFs
(
name
string
)
*
fuse
.
StatfsOut
{
return
&
fuse
.
StatfsOut
{}
}
unionfs/unionfs.go
View file @
de0c98a2
...
...
@@ -15,7 +15,6 @@ import (
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
"github.com/hanwen/go-fuse/fuse/pathfs"
"github.com/hanwen/go-fuse/raw"
)
func
filePathHash
(
path
string
)
string
{
...
...
@@ -567,7 +566,7 @@ func (fs *unionFS) Chmod(name string, mode uint32, context *fuse.Context) (code
func
(
fs
*
unionFS
)
Access
(
name
string
,
mode
uint32
,
context
*
fuse
.
Context
)
(
code
fuse
.
Status
)
{
// We always allow writing.
mode
=
mode
&^
raw
.
W_OK
mode
=
mode
&^
fuse
.
W_OK
if
name
==
""
{
return
fuse
.
OK
}
...
...
@@ -970,7 +969,7 @@ func (fs *unionFS) String() string {
return
fmt
.
Sprintf
(
"UnionFs(%v)"
,
names
)
}
func
(
fs
*
unionFS
)
StatFs
(
name
string
)
*
nodefs
.
StatfsOut
{
func
(
fs
*
unionFS
)
StatFs
(
name
string
)
*
fuse
.
StatfsOut
{
return
fs
.
fileSystems
[
0
]
.
StatFs
(
""
)
}
...
...
unionfs/unionfs_test.go
View file @
de0c98a2
...
...
@@ -18,7 +18,6 @@ import (
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
"github.com/hanwen/go-fuse/fuse/pathfs"
"github.com/hanwen/go-fuse/raw"
)
var
_
=
fmt
.
Print
...
...
@@ -731,7 +730,7 @@ func TestUnionFsWriteAccess(t *testing.T) {
}
setRecursiveWritable
(
t
,
wd
+
"/ro"
,
false
)
err
=
syscall
.
Access
(
wd
+
"/mnt/file"
,
raw
.
W_OK
)
err
=
syscall
.
Access
(
wd
+
"/mnt/file"
,
fuse
.
W_OK
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"Access failed: %v"
,
err
)
...
...
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