Commit f1de3e67 authored by Ivan Krasin's avatar Ivan Krasin

Opendir mocked

parent f40c1042
...@@ -141,6 +141,18 @@ func handle(fs FileSystem, in_data []byte, toW chan [][]byte, errors chan os.Err ...@@ -141,6 +141,18 @@ func handle(fs FileSystem, in_data []byte, toW chan [][]byte, errors chan os.Err
result = OK result = OK
out = new(GetXattrOut) out = new(GetXattrOut)
case FUSE_OPENDIR:
in := new(OpenIn)
err = binary.Read(r, binary.LittleEndian, in)
if err != nil {
break
}
fmt.Printf("FUSE_OPENDIR: %v\n", in)
var open_out *OpenOut
open_out = new(OpenOut)
open_out.Fh = 1
out = open_out
default: default:
errors <- os.NewError(fmt.Sprintf("Unsupported OpCode: %d", h.Opcode)) errors <- os.NewError(fmt.Sprintf("Unsupported OpCode: %d", h.Opcode))
result = EIO result = EIO
......
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