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
e56b7970
Commit
e56b7970
authored
Mar 29, 2012
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unionfs.
parent
ed37744c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
unionfs/unionfs.go
unionfs/unionfs.go
+2
-1
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+4
-2
No files found.
unionfs/unionfs.go
View file @
e56b7970
...
...
@@ -4,6 +4,7 @@ import (
"crypto/md5"
"fmt"
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/raw"
"log"
"os"
"path"
...
...
@@ -559,7 +560,7 @@ func (me *UnionFs) Chmod(name string, mode uint32, context *fuse.Context) (code
func
(
me
*
UnionFs
)
Access
(
name
string
,
mode
uint32
,
context
*
fuse
.
Context
)
(
code
fuse
.
Status
)
{
// We always allow writing.
mode
=
mode
&^
fuse
.
W_OK
mode
=
mode
&^
raw
.
W_OK
if
name
==
""
{
return
fuse
.
OK
}
...
...
unionfs/unionfs_test.go
View file @
e56b7970
...
...
@@ -2,7 +2,6 @@ package unionfs
import
(
"fmt"
"github.com/hanwen/go-fuse/fuse"
"io/ioutil"
"log"
"os"
...
...
@@ -12,6 +11,9 @@ import (
"syscall"
"testing"
"time"
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/raw"
)
var
_
=
fmt
.
Print
...
...
@@ -607,7 +609,7 @@ func TestUnionFsWriteAccess(t *testing.T) {
CheckSuccess
(
err
)
freezeRo
(
wd
+
"/ro"
)
err
=
syscall
.
Access
(
wd
+
"/mnt/file"
,
fuse
.
W_OK
)
err
=
syscall
.
Access
(
wd
+
"/mnt/file"
,
raw
.
W_OK
)
if
err
!=
nil
{
CheckSuccess
(
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