add yanfs source code and remove unreachable statements in it

Change-Id: I9027b22b409c67cfa25e05bf41e74e74c8c31a5a