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
dcc775c6
Commit
dcc775c6
authored
Mar 15, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add WrappingPathFilesystem.
parent
59c20b69
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
1 deletion
+85
-1
fuse/Makefile
fuse/Makefile
+2
-1
fuse/wrappedfs.go
fuse/wrappedfs.go
+83
-0
No files found.
fuse/Makefile
View file @
dcc775c6
...
...
@@ -13,7 +13,8 @@ GOFILES=misc.go\
bufferpool.go
\
default.go
\
datafile.go
\
loopback.go
loopback.go
\
wrappedfs.go
include
$(GOROOT)/src/Make.pkg
fuse/wrappedfs.go
0 → 100644
View file @
dcc775c6
package
fuse
type
WrappingPathFilesystem
struct
{
original
PathFilesystem
}
func
(
me
*
WrappingPathFilesystem
)
GetAttr
(
name
string
)
(
*
Attr
,
Status
)
{
return
me
.
original
.
GetAttr
(
name
)
}
func
(
me
*
WrappingPathFilesystem
)
Readlink
(
name
string
)
(
string
,
Status
)
{
return
me
.
original
.
Readlink
(
name
)
}
func
(
me
*
WrappingPathFilesystem
)
Mknod
(
name
string
,
mode
uint32
,
dev
uint32
)
Status
{
return
me
.
original
.
Mknod
(
name
,
mode
,
dev
)
}
func
(
me
*
WrappingPathFilesystem
)
Mkdir
(
name
string
,
mode
uint32
)
Status
{
return
me
.
original
.
Mkdir
(
name
,
mode
)
}
func
(
me
*
WrappingPathFilesystem
)
Unlink
(
name
string
)
(
code
Status
)
{
return
me
.
original
.
Unlink
(
name
)
}
func
(
me
*
WrappingPathFilesystem
)
Rmdir
(
name
string
)
(
code
Status
)
{
return
me
.
original
.
Rmdir
(
name
)
}
func
(
me
*
WrappingPathFilesystem
)
Symlink
(
value
string
,
linkName
string
)
(
code
Status
)
{
return
me
.
original
.
Symlink
(
value
,
linkName
)
}
func
(
me
*
WrappingPathFilesystem
)
Rename
(
oldName
string
,
newName
string
)
(
code
Status
)
{
return
me
.
original
.
Rename
(
oldName
,
newName
)
}
func
(
me
*
WrappingPathFilesystem
)
Link
(
oldName
string
,
newName
string
)
(
code
Status
)
{
return
me
.
original
.
Link
(
oldName
,
newName
)
}
func
(
me
*
WrappingPathFilesystem
)
Chmod
(
name
string
,
mode
uint32
)
(
code
Status
)
{
return
me
.
original
.
Chmod
(
name
,
mode
)
}
func
(
me
*
WrappingPathFilesystem
)
Chown
(
name
string
,
uid
uint32
,
gid
uint32
)
(
code
Status
)
{
return
me
.
original
.
Chown
(
name
,
uid
,
gid
)
}
func
(
me
*
WrappingPathFilesystem
)
Truncate
(
name
string
,
offset
uint64
)
(
code
Status
)
{
return
me
.
original
.
Truncate
(
name
,
offset
)
}
func
(
me
*
WrappingPathFilesystem
)
Open
(
name
string
,
flags
uint32
)
(
file
RawFuseFile
,
code
Status
)
{
return
me
.
original
.
Open
(
name
,
flags
)
}
func
(
me
*
WrappingPathFilesystem
)
OpenDir
(
name
string
)
(
stream
chan
DirEntry
,
status
Status
)
{
return
me
.
original
.
OpenDir
(
name
)
}
func
(
me
*
WrappingPathFilesystem
)
Mount
(
conn
*
PathFileSystemConnector
)
Status
{
return
me
.
original
.
Mount
(
conn
)
}
func
(
me
*
WrappingPathFilesystem
)
Unmount
()
{
me
.
original
.
Unmount
()
}
func
(
me
*
WrappingPathFilesystem
)
Access
(
name
string
,
mode
uint32
)
(
code
Status
)
{
return
me
.
original
.
Access
(
name
,
mode
)
}
func
(
me
*
WrappingPathFilesystem
)
Create
(
name
string
,
flags
uint32
,
mode
uint32
)
(
file
RawFuseFile
,
code
Status
)
{
return
me
.
original
.
Create
(
name
,
flags
,
mode
)
}
func
(
me
*
WrappingPathFilesystem
)
Utimens
(
name
string
,
AtimeNs
uint64
,
CtimeNs
uint64
)
(
code
Status
)
{
return
me
.
original
.
Utimens
(
name
,
AtimeNs
,
CtimeNs
)
}
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