Commit c0804378 authored by Aaron Jacobs's avatar Aaron Jacobs

Fixed conversions.go.

parent f5d80cf9
...@@ -252,7 +252,7 @@ func convertInMessage( ...@@ -252,7 +252,7 @@ func convertInMessage(
Inode: fuseops.InodeID(m.Header().Nodeid), Inode: fuseops.InodeID(m.Header().Nodeid),
Handle: fuseops.HandleID(in.Fh), Handle: fuseops.HandleID(in.Fh),
Offset: int64(in.Offset), Offset: int64(in.Offset),
Size: int(in.Size), Dst: make([]byte, in.Size),
} }
case fusekernel.OpReaddir: case fusekernel.OpReaddir:
...@@ -266,7 +266,7 @@ func convertInMessage( ...@@ -266,7 +266,7 @@ func convertInMessage(
Inode: fuseops.InodeID(m.Header().Nodeid), Inode: fuseops.InodeID(m.Header().Nodeid),
Handle: fuseops.HandleID(in.Fh), Handle: fuseops.HandleID(in.Fh),
Offset: fuseops.DirOffset(in.Offset), Offset: fuseops.DirOffset(in.Offset),
Size: int(in.Size), Dst: make([]byte, in.Size),
} }
case fusekernel.OpRelease: case fusekernel.OpRelease:
...@@ -486,7 +486,7 @@ func (c *Connection) kernelResponseForOp( ...@@ -486,7 +486,7 @@ func (c *Connection) kernelResponseForOp(
case *fuseops.ReadDirOp: case *fuseops.ReadDirOp:
m = c.getOutMessage() m = c.getOutMessage()
m.Append(o.Data) m.Append(o.Dst[:o.BytesRead])
case *fuseops.ReleaseDirHandleOp: case *fuseops.ReleaseDirHandleOp:
m = c.getOutMessage() m = c.getOutMessage()
...@@ -498,7 +498,7 @@ func (c *Connection) kernelResponseForOp( ...@@ -498,7 +498,7 @@ func (c *Connection) kernelResponseForOp(
case *fuseops.ReadFileOp: case *fuseops.ReadFileOp:
m = c.getOutMessage() m = c.getOutMessage()
m.Append(o.Data) m.Append(o.Dst[:o.BytesRead])
case *fuseops.WriteFileOp: case *fuseops.WriteFileOp:
m = c.getOutMessage() m = c.getOutMessage()
......
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