Introduce fs API.

Signed-off-by: katlogic <kat@lua.cz>