VFS converted in to C++