finish fs.c file.c and log.c