Commit 86c921d9 authored by Aaron Jacobs's avatar Aaron Jacobs

OpenDirOp

parent ecdc71b1
...@@ -239,22 +239,12 @@ func Convert( ...@@ -239,22 +239,12 @@ func Convert(
io = to io = to
co = &to.commonOp co = &to.commonOp
case *fuseshim.OpenRequest: case fusekernel.OpOpendir:
if typed.Dir { to := &OpenDirOp{
to := &OpenDirOp{ Inode: InodeID(m.Header().Node),
bfReq: typed,
Inode: InodeID(typed.Header.Node),
}
io = to
co = &to.commonOp
} else {
to := &OpenFileOp{
bfReq: typed,
Inode: InodeID(typed.Header.Node),
}
io = to
co = &to.commonOp
} }
io = to
co = &to.commonOp
case fusekernel.OpRead: case fusekernel.OpRead:
in := (*fusekernel.ReadIn)(m.Data()) in := (*fusekernel.ReadIn)(m.Data())
......
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