Commit 7f077882 authored by Ivan Krasin's avatar Ivan Krasin

Started implementation of ReadDir and decided that I need to think a bit

parent f1de3e67
...@@ -153,6 +153,16 @@ func handle(fs FileSystem, in_data []byte, toW chan [][]byte, errors chan os.Err ...@@ -153,6 +153,16 @@ func handle(fs FileSystem, in_data []byte, toW chan [][]byte, errors chan os.Err
open_out.Fh = 1 open_out.Fh = 1
out = open_out out = open_out
case FUSE_READDIR:
in := new(ReadIn)
err = binary.Read(r, binary.LittleEndian, in)
if err != nil {
break
}
fmt.Printf("FUSE_READDIR: %v\n", in)
// Here I need to stop and to think a bit.
os.Exit(1)
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