FilesystemUtil: export fdatasync
Save/restore StateMachine's session table into snapshots
Clean up StateMachine a bit