Fix path syscalls

This commit is contained in:
momo5502
2025-02-08 12:47:20 +01:00
parent 55557006c7
commit b5a0f73113
6 changed files with 206 additions and 44 deletions

View File

@@ -1,5 +1,6 @@
#include "io_device.hpp"
#include "devices/afd_endpoint.hpp"
#include "devices/mount_point_manager.hpp"
namespace
{
@@ -28,5 +29,10 @@ std::unique_ptr<io_device> create_device(const std::u16string_view device)
return create_afd_endpoint();
}
if (device == u"MountPointManager")
{
return create_mount_point_manager();
}
throw std::runtime_error("Unsupported device: " + u16_to_u8(device));
}