Commit 8eccfcb4 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse: hide unsupported types CuseInitIn, BmapIn, BmapOut, IoctlIn, IoctlOut.

parent de0c98a2
...@@ -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
} }
...@@ -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) },
......
...@@ -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
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment