Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Nov 19, 2024
1 parent a8fd626 commit d9484eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fuse/opcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ func init() {
_OP_RENAME2: unsafe.Sizeof(RenameIn{}),
_OP_LSEEK: unsafe.Sizeof(LseekIn{}),
_OP_COPY_FILE_RANGE: unsafe.Sizeof(CopyFileRangeIn{}),
_OP_TMPFILE: unsafe.Sizeof(CreateIn{}),
} {
operationHandlers[op].InputSize = sz
if sz > maxInputSize {
Expand Down Expand Up @@ -690,6 +691,7 @@ func init() {
_OP_NOTIFY_DELETE: unsafe.Sizeof(NotifyInvalDeleteOut{}),
_OP_LSEEK: unsafe.Sizeof(LseekOut{}),
_OP_COPY_FILE_RANGE: unsafe.Sizeof(WriteOut{}),
_OP_TMPFILE: unsafe.Sizeof(CreateOut{}),
} {
operationHandlers[op].OutputSize = sz
}
Expand Down Expand Up @@ -833,6 +835,7 @@ func init() {
_OP_GETLK: func(ptr unsafe.Pointer) interface{} { return (*LkOut)(ptr) },
_OP_LSEEK: func(ptr unsafe.Pointer) interface{} { return (*LseekOut)(ptr) },
_OP_COPY_FILE_RANGE: func(ptr unsafe.Pointer) interface{} { return (*WriteOut)(ptr) },
_OP_TMPFILE: func(ptr unsafe.Pointer) interface{} { return (*CreateOut)(ptr) },
} {
operationHandlers[op].DecodeOut = f
}
Expand Down Expand Up @@ -872,6 +875,7 @@ func init() {
_OP_INTERRUPT: func(ptr unsafe.Pointer) interface{} { return (*InterruptIn)(ptr) },
_OP_LSEEK: func(ptr unsafe.Pointer) interface{} { return (*LseekIn)(ptr) },
_OP_COPY_FILE_RANGE: func(ptr unsafe.Pointer) interface{} { return (*CopyFileRangeIn)(ptr) },
_OP_TMPFILE: func(ptr unsafe.Pointer) interface{} { return (*CreateIn)(ptr) },
} {
operationHandlers[op].DecodeIn = f
}
Expand All @@ -891,6 +895,7 @@ func init() {
_OP_RMDIR: 1,
_OP_SYMLINK: 2,
_OP_UNLINK: 1,
_OP_TMPFILE: 1,
} {
operationHandlers[op].FileNames = count
}
Expand Down

0 comments on commit d9484eb

Please sign in to comment.