make readdir work

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