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
6f555712
Commit
6f555712
authored
Mar 25, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SetXAttr to WrappingPathFilesystem.
Make sure this doesn't fail again.
parent
fc01a377
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
6 deletions
+21
-6
fuse/default_test.go
fuse/default_test.go
+17
-6
fuse/wrappedfs.go
fuse/wrappedfs.go
+4
-0
No files found.
fuse/default_test.go
View file @
6f555712
package
fuse
// Compilation test for DummyFuse and DummyPathFuse
// Make sure library supplied Filesystems support the
// required interface.
import
(
"testing"
)
func
TestDummy
(
t
*
testing
.
T
)
{
fs
:=
new
(
DefaultRawFuseFileSystem
)
NewMountState
(
fs
)
func
TestRawFs
(
t
*
testing
.
T
)
{
var
iface
RawFileSystem
pathFs
:=
new
(
DefaultPathFilesystem
)
iface
=
new
(
DefaultRawFuseFileSystem
)
iface
=
new
(
WrappingRawFilesystem
)
iface
=
new
(
TimingRawFilesystem
)
NewPathFileSystemConnector
(
pathFs
)
_
=
iface
}
func
TestPathFs
(
t
*
testing
.
T
)
{
var
iface
PathFilesystem
iface
=
new
(
DefaultPathFilesystem
)
iface
=
new
(
WrappingPathFilesystem
)
iface
=
new
(
TimingPathFilesystem
)
_
=
iface
}
func
TestDummyFile
(
t
*
testing
.
T
)
{
...
...
fuse/wrappedfs.go
View file @
6f555712
...
...
@@ -86,6 +86,10 @@ func (me *WrappingPathFilesystem) GetXAttr(name string, attr string) ([]byte, St
return
me
.
Original
.
GetXAttr
(
name
,
attr
)
}
func
(
me
*
WrappingPathFilesystem
)
SetXAttr
(
name
string
,
attr
string
,
data
[]
byte
,
flags
int
)
Status
{
return
me
.
Original
.
SetXAttr
(
name
,
attr
,
data
,
flags
)
}
func
(
me
*
WrappingPathFilesystem
)
ListXAttr
(
name
string
)
([]
string
,
Status
)
{
return
me
.
Original
.
ListXAttr
(
name
)
}
...
...
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