Commit fc142cb2 authored by Aaron Jacobs's avatar Aaron Jacobs

ReadFileOp

parent 7133c835
......@@ -249,6 +249,21 @@ func Convert(
co = &to.commonOp
}
case fusekernel.OpRead:
in := (*fusekernel.ReadIn)(m.Data())
if m.Len() < fusekernel.ReadInSize(protocol) {
goto corrupt
}
to := &ReadFileOp{
Inode: InodeID(m.Header().Node),
Handle: HandleID(in.Fh),
Offset: int64(in.Offset),
Size: int(in.Size),
}
io = to
co = &to.commonOp
case *fuseshim.ReadRequest:
if typed.Dir {
to := &ReadDirOp{
......
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