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
8c28663b
Commit
8c28663b
authored
Sep 04, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split out default.go.
parent
8536bc6b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
179 additions
and
183 deletions
+179
-183
fuse/Makefile
fuse/Makefile
+2
-0
fuse/default.go
fuse/default.go
+0
-183
fuse/defaultfile.go
fuse/defaultfile.go
+48
-0
fuse/defaultraw.go
fuse/defaultraw.go
+129
-0
No files found.
fuse/Makefile
View file @
8c28663b
...
...
@@ -7,6 +7,8 @@ MANUAL_GOFILES=api.go \
bufferpool.go
\
copy.go
\
default.go
\
defaultfile.go
\
defaultraw.go
\
direntry.go
\
files.go
\
fuse.go
\
...
...
fuse/default.go
View file @
8c28663b
package
fuse
import
(
"fmt"
"log"
"os"
)
var
_
=
log
.
Println
var
_
=
fmt
.
Println
func
(
me
*
DefaultRawFileSystem
)
Init
(
init
*
RawFsInit
)
{
}
func
(
me
*
DefaultRawFileSystem
)
StatFs
()
*
StatfsOut
{
return
nil
}
func
(
me
*
DefaultRawFileSystem
)
Lookup
(
h
*
InHeader
,
name
string
)
(
out
*
EntryOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Forget
(
h
*
InHeader
,
input
*
ForgetIn
)
{
}
func
(
me
*
DefaultRawFileSystem
)
GetAttr
(
header
*
InHeader
,
input
*
GetAttrIn
)
(
out
*
AttrOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Open
(
header
*
InHeader
,
input
*
OpenIn
)
(
flags
uint32
,
handle
uint64
,
status
Status
)
{
return
0
,
0
,
OK
}
func
(
me
*
DefaultRawFileSystem
)
SetAttr
(
header
*
InHeader
,
input
*
SetAttrIn
)
(
out
*
AttrOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Readlink
(
header
*
InHeader
)
(
out
[]
byte
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Mknod
(
header
*
InHeader
,
input
*
MknodIn
,
name
string
)
(
out
*
EntryOut
,
code
Status
)
{
return
new
(
EntryOut
),
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Mkdir
(
header
*
InHeader
,
input
*
MkdirIn
,
name
string
)
(
out
*
EntryOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Unlink
(
header
*
InHeader
,
name
string
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Rmdir
(
header
*
InHeader
,
name
string
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Symlink
(
header
*
InHeader
,
pointedTo
string
,
linkName
string
)
(
out
*
EntryOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Rename
(
header
*
InHeader
,
input
*
RenameIn
,
oldName
string
,
newName
string
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Link
(
header
*
InHeader
,
input
*
LinkIn
,
name
string
)
(
out
*
EntryOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
GetXAttr
(
header
*
InHeader
,
attr
string
)
(
data
[]
byte
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
SetXAttr
(
header
*
InHeader
,
input
*
SetXAttrIn
,
attr
string
,
data
[]
byte
)
Status
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
ListXAttr
(
header
*
InHeader
)
(
data
[]
byte
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
RemoveXAttr
(
header
*
InHeader
,
attr
string
)
Status
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Access
(
header
*
InHeader
,
input
*
AccessIn
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Create
(
header
*
InHeader
,
input
*
CreateIn
,
name
string
)
(
flags
uint32
,
handle
uint64
,
out
*
EntryOut
,
code
Status
)
{
return
0
,
0
,
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Bmap
(
header
*
InHeader
,
input
*
BmapIn
)
(
out
*
BmapOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Poll
(
header
*
InHeader
,
input
*
PollIn
)
(
out
*
PollOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
OpenDir
(
header
*
InHeader
,
input
*
OpenIn
)
(
flags
uint32
,
handle
uint64
,
status
Status
)
{
return
0
,
0
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Read
(
*
ReadIn
,
BufferPool
)
([]
byte
,
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Release
(
header
*
InHeader
,
input
*
ReleaseIn
)
{
}
func
(
me
*
DefaultRawFileSystem
)
Write
(
input
*
WriteIn
,
data
[]
byte
)
(
written
uint32
,
code
Status
)
{
return
0
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Flush
(
input
*
FlushIn
)
Status
{
return
OK
}
func
(
me
*
DefaultRawFileSystem
)
Fsync
(
input
*
FsyncIn
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
ReadDir
(
header
*
InHeader
,
input
*
ReadIn
)
(
*
DirEntryList
,
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
ReleaseDir
(
header
*
InHeader
,
input
*
ReleaseIn
)
{
}
func
(
me
*
DefaultRawFileSystem
)
FsyncDir
(
header
*
InHeader
,
input
*
FsyncIn
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Ioctl
(
header
*
InHeader
,
input
*
IoctlIn
)
(
output
*
IoctlOut
,
data
[]
byte
,
code
Status
)
{
return
nil
,
nil
,
ENOSYS
}
////////////////////////////////////////////////////////////////
// DefaultFile
func
(
me
*
DefaultFile
)
Read
(
*
ReadIn
,
BufferPool
)
([]
byte
,
Status
)
{
return
[]
byte
(
""
),
ENOSYS
}
func
(
me
*
DefaultFile
)
Write
(
*
WriteIn
,
[]
byte
)
(
uint32
,
Status
)
{
return
0
,
ENOSYS
}
func
(
me
*
DefaultFile
)
Flush
()
Status
{
return
OK
}
func
(
me
*
DefaultFile
)
Release
()
{
}
func
(
me
*
DefaultFile
)
GetAttr
()
(
*
os
.
FileInfo
,
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultFile
)
Fsync
(
*
FsyncIn
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultFile
)
Utimens
(
atimeNs
uint64
,
mtimeNs
uint64
)
Status
{
return
ENOSYS
}
func
(
me
*
DefaultFile
)
Truncate
(
size
uint64
)
Status
{
return
ENOSYS
}
func
(
me
*
DefaultFile
)
Chown
(
uid
uint32
,
gid
uint32
)
Status
{
return
ENOSYS
}
func
(
me
*
DefaultFile
)
Chmod
(
perms
uint32
)
Status
{
return
ENOSYS
}
func
(
me
*
DefaultFile
)
Ioctl
(
input
*
IoctlIn
)
(
output
*
IoctlOut
,
data
[]
byte
,
code
Status
)
{
return
nil
,
nil
,
ENOSYS
}
////////////////////////////////////////////////////////////////
// DefaultFileSystem
func
(
me
*
DefaultFileSystem
)
GetAttr
(
name
string
,
context
*
Context
)
(
*
os
.
FileInfo
,
Status
)
{
return
nil
,
ENOSYS
}
...
...
fuse/defaultfile.go
0 → 100644
View file @
8c28663b
package
fuse
import
(
"os"
)
func
(
me
*
DefaultFile
)
Read
(
*
ReadIn
,
BufferPool
)
([]
byte
,
Status
)
{
return
[]
byte
(
""
),
ENOSYS
}
func
(
me
*
DefaultFile
)
Write
(
*
WriteIn
,
[]
byte
)
(
uint32
,
Status
)
{
return
0
,
ENOSYS
}
func
(
me
*
DefaultFile
)
Flush
()
Status
{
return
OK
}
func
(
me
*
DefaultFile
)
Release
()
{
}
func
(
me
*
DefaultFile
)
GetAttr
()
(
*
os
.
FileInfo
,
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultFile
)
Fsync
(
*
FsyncIn
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultFile
)
Utimens
(
atimeNs
uint64
,
mtimeNs
uint64
)
Status
{
return
ENOSYS
}
func
(
me
*
DefaultFile
)
Truncate
(
size
uint64
)
Status
{
return
ENOSYS
}
func
(
me
*
DefaultFile
)
Chown
(
uid
uint32
,
gid
uint32
)
Status
{
return
ENOSYS
}
func
(
me
*
DefaultFile
)
Chmod
(
perms
uint32
)
Status
{
return
ENOSYS
}
func
(
me
*
DefaultFile
)
Ioctl
(
input
*
IoctlIn
)
(
output
*
IoctlOut
,
data
[]
byte
,
code
Status
)
{
return
nil
,
nil
,
ENOSYS
}
fuse/defaultraw.go
0 → 100644
View file @
8c28663b
package
fuse
func
(
me
*
DefaultRawFileSystem
)
Init
(
init
*
RawFsInit
)
{
}
func
(
me
*
DefaultRawFileSystem
)
StatFs
()
*
StatfsOut
{
return
nil
}
func
(
me
*
DefaultRawFileSystem
)
Lookup
(
h
*
InHeader
,
name
string
)
(
out
*
EntryOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Forget
(
h
*
InHeader
,
input
*
ForgetIn
)
{
}
func
(
me
*
DefaultRawFileSystem
)
GetAttr
(
header
*
InHeader
,
input
*
GetAttrIn
)
(
out
*
AttrOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Open
(
header
*
InHeader
,
input
*
OpenIn
)
(
flags
uint32
,
handle
uint64
,
status
Status
)
{
return
0
,
0
,
OK
}
func
(
me
*
DefaultRawFileSystem
)
SetAttr
(
header
*
InHeader
,
input
*
SetAttrIn
)
(
out
*
AttrOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Readlink
(
header
*
InHeader
)
(
out
[]
byte
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Mknod
(
header
*
InHeader
,
input
*
MknodIn
,
name
string
)
(
out
*
EntryOut
,
code
Status
)
{
return
new
(
EntryOut
),
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Mkdir
(
header
*
InHeader
,
input
*
MkdirIn
,
name
string
)
(
out
*
EntryOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Unlink
(
header
*
InHeader
,
name
string
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Rmdir
(
header
*
InHeader
,
name
string
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Symlink
(
header
*
InHeader
,
pointedTo
string
,
linkName
string
)
(
out
*
EntryOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Rename
(
header
*
InHeader
,
input
*
RenameIn
,
oldName
string
,
newName
string
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Link
(
header
*
InHeader
,
input
*
LinkIn
,
name
string
)
(
out
*
EntryOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
GetXAttr
(
header
*
InHeader
,
attr
string
)
(
data
[]
byte
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
SetXAttr
(
header
*
InHeader
,
input
*
SetXAttrIn
,
attr
string
,
data
[]
byte
)
Status
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
ListXAttr
(
header
*
InHeader
)
(
data
[]
byte
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
RemoveXAttr
(
header
*
InHeader
,
attr
string
)
Status
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Access
(
header
*
InHeader
,
input
*
AccessIn
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Create
(
header
*
InHeader
,
input
*
CreateIn
,
name
string
)
(
flags
uint32
,
handle
uint64
,
out
*
EntryOut
,
code
Status
)
{
return
0
,
0
,
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Bmap
(
header
*
InHeader
,
input
*
BmapIn
)
(
out
*
BmapOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Poll
(
header
*
InHeader
,
input
*
PollIn
)
(
out
*
PollOut
,
code
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
OpenDir
(
header
*
InHeader
,
input
*
OpenIn
)
(
flags
uint32
,
handle
uint64
,
status
Status
)
{
return
0
,
0
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Read
(
*
ReadIn
,
BufferPool
)
([]
byte
,
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Release
(
header
*
InHeader
,
input
*
ReleaseIn
)
{
}
func
(
me
*
DefaultRawFileSystem
)
Write
(
input
*
WriteIn
,
data
[]
byte
)
(
written
uint32
,
code
Status
)
{
return
0
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Flush
(
input
*
FlushIn
)
Status
{
return
OK
}
func
(
me
*
DefaultRawFileSystem
)
Fsync
(
input
*
FsyncIn
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
ReadDir
(
header
*
InHeader
,
input
*
ReadIn
)
(
*
DirEntryList
,
Status
)
{
return
nil
,
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
ReleaseDir
(
header
*
InHeader
,
input
*
ReleaseIn
)
{
}
func
(
me
*
DefaultRawFileSystem
)
FsyncDir
(
header
*
InHeader
,
input
*
FsyncIn
)
(
code
Status
)
{
return
ENOSYS
}
func
(
me
*
DefaultRawFileSystem
)
Ioctl
(
header
*
InHeader
,
input
*
IoctlIn
)
(
output
*
IoctlOut
,
data
[]
byte
,
code
Status
)
{
return
nil
,
nil
,
ENOSYS
}
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