| 90 | // Special backends that want to install themselves as the root use this hook. |
| 91 | // Otherwise, we use the default backends. |
| 92 | __attribute__((weak)) extern "C" backend_t wasmfs_create_root_dir(void) { |
| 93 | #ifdef WASMFS_CASE_INSENSITIVE |
| 94 | return createIgnoreCaseBackend([]() { return createMemoryBackend(); }); |
| 95 | #else |
| 96 | return createMemoryBackend(); |
| 97 | #endif |
| 98 | } |
| 99 | |
| 100 | std::shared_ptr<Directory> WasmFS::initRootDirectory() { |
| 101 | auto rootBackend = wasmfs_create_root_dir(); |
no test coverage detected