Commit ea88e396 authored by Ivan Krasin's avatar Ivan Krasin

Started a switch by OpCode. Can't continue today

parent ddc2da5e
...@@ -99,8 +99,14 @@ func (m *MountPoint) handle(in []byte, toW chan [][]byte, errors chan os.Error) ...@@ -99,8 +99,14 @@ func (m *MountPoint) handle(in []byte, toW chan [][]byte, errors chan os.Error)
errors <- err errors <- err
return return
} }
fmt.Printf("Here! in = %v, h = %v\n", in, h) switch h.Opcode {
os.Exit(0) // case FUSE_INIT: // I too want to sleep. Will continue later.
default:
errors <- os.NewError(fmt.Sprintf("Unsupported OpCode: %d", h.Opcode))
fmt.Printf("Unsupported OpCode: %d\n", h.Opcode)
// TODO: report an error to the kernel
os.Exit(1)
}
} }
......
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