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 d9484eb commit 7dc7e0a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fuse/opcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ func doCreate(server *Server, req *request) {
req.status = status
}

func doTmpFile(server *Server, req *request) {
out := (*CreateOut)(req.outData())
status := server.fileSystem.Create(req.cancel, (*CreateIn)(req.inData), req.filenames[0], out)
req.status = status
}

func doReadDir(server *Server, req *request) {
in := (*ReadIn)(req.inData)
buf := server.allocOut(req, in.Size)
Expand Down Expand Up @@ -799,7 +805,7 @@ func init() {
_OP_INTERRUPT: doInterrupt,
_OP_COPY_FILE_RANGE: doCopyFileRange,
_OP_LSEEK: doLseek,
_OP_TMPFILE: doCreate,
_OP_TMPFILE: doTmpFile,
} {
handler := v
operationHandlers[op].Func = func(s *Server, r *request) {
Expand Down

0 comments on commit 7dc7e0a

Please sign in to comment.