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
8eccfcb4
Commit
8eccfcb4
authored
Jul 08, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse: hide unsupported types CuseInitIn, BmapIn, BmapOut, IoctlIn, IoctlOut.
parent
de0c98a2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
20 deletions
+16
-20
fuse/nodefs/defaultfile.go
fuse/nodefs/defaultfile.go
+0
-4
fuse/opcode.go
fuse/opcode.go
+7
-7
fuse/types.go
fuse/types.go
+9
-9
No files found.
fuse/nodefs/defaultfile.go
View file @
8eccfcb4
...
@@ -65,10 +65,6 @@ func (f *defaultFile) Chmod(perms uint32) fuse.Status {
...
@@ -65,10 +65,6 @@ func (f *defaultFile) Chmod(perms uint32) fuse.Status {
return
fuse
.
ENOSYS
return
fuse
.
ENOSYS
}
}
func
(
f
*
defaultFile
)
Ioctl
(
input
*
fuse
.
IoctlIn
)
(
output
*
fuse
.
IoctlOut
,
data
[]
byte
,
code
fuse
.
Status
)
{
return
nil
,
nil
,
fuse
.
ENOSYS
}
func
(
f
*
defaultFile
)
Allocate
(
off
uint64
,
size
uint64
,
mode
uint32
)
(
code
fuse
.
Status
)
{
func
(
f
*
defaultFile
)
Allocate
(
off
uint64
,
size
uint64
,
mode
uint32
)
(
code
fuse
.
Status
)
{
return
fuse
.
ENOSYS
return
fuse
.
ENOSYS
}
}
fuse/opcode.go
View file @
8eccfcb4
...
@@ -423,9 +423,9 @@ func init() {
...
@@ -423,9 +423,9 @@ func init() {
_OP_ACCESS
:
unsafe
.
Sizeof
(
AccessIn
{}),
_OP_ACCESS
:
unsafe
.
Sizeof
(
AccessIn
{}),
_OP_CREATE
:
unsafe
.
Sizeof
(
CreateIn
{}),
_OP_CREATE
:
unsafe
.
Sizeof
(
CreateIn
{}),
_OP_INTERRUPT
:
unsafe
.
Sizeof
(
InterruptIn
{}),
_OP_INTERRUPT
:
unsafe
.
Sizeof
(
InterruptIn
{}),
_OP_BMAP
:
unsafe
.
Sizeof
(
BmapIn
{}),
_OP_BMAP
:
unsafe
.
Sizeof
(
_
BmapIn
{}),
_OP_IOCTL
:
unsafe
.
Sizeof
(
IoctlIn
{}),
_OP_IOCTL
:
unsafe
.
Sizeof
(
_
IoctlIn
{}),
_OP_POLL
:
unsafe
.
Sizeof
(
PollIn
{}),
_OP_POLL
:
unsafe
.
Sizeof
(
_
PollIn
{}),
_OP_FALLOCATE
:
unsafe
.
Sizeof
(
FallocateIn
{}),
_OP_FALLOCATE
:
unsafe
.
Sizeof
(
FallocateIn
{}),
_OP_READDIRPLUS
:
unsafe
.
Sizeof
(
ReadIn
{}),
_OP_READDIRPLUS
:
unsafe
.
Sizeof
(
ReadIn
{}),
}
{
}
{
...
@@ -448,9 +448,9 @@ func init() {
...
@@ -448,9 +448,9 @@ func init() {
_OP_INIT
:
unsafe
.
Sizeof
(
InitOut
{}),
_OP_INIT
:
unsafe
.
Sizeof
(
InitOut
{}),
_OP_OPENDIR
:
unsafe
.
Sizeof
(
OpenOut
{}),
_OP_OPENDIR
:
unsafe
.
Sizeof
(
OpenOut
{}),
_OP_CREATE
:
unsafe
.
Sizeof
(
CreateOut
{}),
_OP_CREATE
:
unsafe
.
Sizeof
(
CreateOut
{}),
_OP_BMAP
:
unsafe
.
Sizeof
(
BmapOut
{}),
_OP_BMAP
:
unsafe
.
Sizeof
(
_
BmapOut
{}),
_OP_IOCTL
:
unsafe
.
Sizeof
(
IoctlOut
{}),
_OP_IOCTL
:
unsafe
.
Sizeof
(
_
IoctlOut
{}),
_OP_POLL
:
unsafe
.
Sizeof
(
PollOut
{}),
_OP_POLL
:
unsafe
.
Sizeof
(
_
PollOut
{}),
_OP_NOTIFY_ENTRY
:
unsafe
.
Sizeof
(
NotifyInvalEntryOut
{}),
_OP_NOTIFY_ENTRY
:
unsafe
.
Sizeof
(
NotifyInvalEntryOut
{}),
_OP_NOTIFY_INODE
:
unsafe
.
Sizeof
(
NotifyInvalInodeOut
{}),
_OP_NOTIFY_INODE
:
unsafe
.
Sizeof
(
NotifyInvalInodeOut
{}),
_OP_NOTIFY_DELETE
:
unsafe
.
Sizeof
(
NotifyInvalDeleteOut
{}),
_OP_NOTIFY_DELETE
:
unsafe
.
Sizeof
(
NotifyInvalDeleteOut
{}),
...
@@ -574,7 +574,7 @@ func init() {
...
@@ -574,7 +574,7 @@ func init() {
_OP_LISTXATTR
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
GetXAttrIn
)(
ptr
)
},
_OP_LISTXATTR
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
GetXAttrIn
)(
ptr
)
},
_OP_SETATTR
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
SetAttrIn
)(
ptr
)
},
_OP_SETATTR
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
SetAttrIn
)(
ptr
)
},
_OP_INIT
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
InitIn
)(
ptr
)
},
_OP_INIT
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
InitIn
)(
ptr
)
},
_OP_IOCTL
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
IoctlIn
)(
ptr
)
},
_OP_IOCTL
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
_
IoctlIn
)(
ptr
)
},
_OP_OPEN
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
OpenIn
)(
ptr
)
},
_OP_OPEN
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
OpenIn
)(
ptr
)
},
_OP_MKNOD
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
MknodIn
)(
ptr
)
},
_OP_MKNOD
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
MknodIn
)(
ptr
)
},
_OP_CREATE
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
CreateIn
)(
ptr
)
},
_OP_CREATE
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
CreateIn
)(
ptr
)
},
...
...
fuse/types.go
View file @
8eccfcb4
...
@@ -177,7 +177,7 @@ type InitOut struct {
...
@@ -177,7 +177,7 @@ type InitOut struct {
MaxWrite
uint32
MaxWrite
uint32
}
}
type
CuseInitIn
struct
{
type
_
CuseInitIn
struct
{
InHeader
InHeader
Major
uint32
Major
uint32
Minor
uint32
Minor
uint32
...
@@ -185,7 +185,7 @@ type CuseInitIn struct {
...
@@ -185,7 +185,7 @@ type CuseInitIn struct {
Flags
uint32
Flags
uint32
}
}
type
CuseInitOut
struct
{
type
_
CuseInitOut
struct
{
Major
uint32
Major
uint32
Minor
uint32
Minor
uint32
Unused
uint32
Unused
uint32
...
@@ -202,14 +202,14 @@ type InterruptIn struct {
...
@@ -202,14 +202,14 @@ type InterruptIn struct {
Unique
uint64
Unique
uint64
}
}
type
BmapIn
struct
{
type
_
BmapIn
struct
{
InHeader
InHeader
Block
uint64
Block
uint64
Blocksize
uint32
Blocksize
uint32
Padding
uint32
Padding
uint32
}
}
type
BmapOut
struct
{
type
_
BmapOut
struct
{
Block
uint64
Block
uint64
}
}
...
@@ -219,7 +219,7 @@ const (
...
@@ -219,7 +219,7 @@ const (
FUSE_IOCTL_RETRY
=
(
1
<<
2
)
FUSE_IOCTL_RETRY
=
(
1
<<
2
)
)
)
type
IoctlIn
struct
{
type
_
IoctlIn
struct
{
InHeader
InHeader
Fh
uint64
Fh
uint64
Flags
uint32
Flags
uint32
...
@@ -229,14 +229,14 @@ type IoctlIn struct {
...
@@ -229,14 +229,14 @@ type IoctlIn struct {
OutSize
uint32
OutSize
uint32
}
}
type
IoctlOut
struct
{
type
_
IoctlOut
struct
{
Result
int32
Result
int32
Flags
uint32
Flags
uint32
InIovs
uint32
InIovs
uint32
OutIovs
uint32
OutIovs
uint32
}
}
type
PollIn
struct
{
type
_
PollIn
struct
{
InHeader
InHeader
Fh
uint64
Fh
uint64
Kh
uint64
Kh
uint64
...
@@ -244,12 +244,12 @@ type PollIn struct {
...
@@ -244,12 +244,12 @@ type PollIn struct {
Padding
uint32
Padding
uint32
}
}
type
PollOut
struct
{
type
_
PollOut
struct
{
Revents
uint32
Revents
uint32
Padding
uint32
Padding
uint32
}
}
type
NotifyPollWakeupOut
struct
{
type
_
NotifyPollWakeupOut
struct
{
Kh
uint64
Kh
uint64
}
}
...
...
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