make getattr work

Signed-off-by: Huamin Chen <fusion.filesystem@gmail.com>