split fs functions into fs.c

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>