make readdir and gettattr in fact work

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>