MCPcopy Create free account
hub / github.com/SmingHub/Sming / fileMountFileSystem

Function fileMountFileSystem

Sming/Core/FileSystem.cpp:37–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37bool fileMountFileSystem(IFS::IFileSystem* fs)
38{
39 if(fs == nullptr) {
40 debug_e("Failed to created filesystem object");
41 return false;
42 }
43
44 int res = fs->mount();
45 debug_i("mount() returned %d (%s)", res, fs->getErrorString(res).c_str());
46
47 if(res < 0) {
48 delete fs;
49 return false;
50 }
51
52 fileSetFileSystem(fs);
53
54 debug_i("File system initialised");
55 return true;
56}
57
58bool fwfs_mount()
59{

Callers 3

spiffs_mountFunction · 0.85
hyfs_mountFunction · 0.85
fwfs_mountFunction · 0.85

Calls 4

fileSetFileSystemFunction · 0.85
mountMethod · 0.80
c_strMethod · 0.45
getErrorStringMethod · 0.45

Tested by

no test coverage detected