From 4c4493628923e2b3b59d957f2d46997642fd17c2 Mon Sep 17 00:00:00 2001 From: Moshe Shahar Date: Thu, 18 Apr 2024 11:05:07 +0300 Subject: [PATCH] feat: add malloc volume service Signed-off-by: Moshe Shahar --- cmd/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/main.go b/cmd/main.go index b2d2b13..1da92a3 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -133,6 +133,7 @@ func runGrpcServer(grpcPort int, spdkAddress string, tlsFiles string, store gokv pb.RegisterFrontendVirtioScsiServiceServer(s, frontendOpiSpdkServer) pb.RegisterNvmeRemoteControllerServiceServer(s, backendOpiSpdkServer) pb.RegisterNullVolumeServiceServer(s, backendOpiSpdkServer) + pb.RegisterMallocVolumeServiceServer(s, backendOpiSpdkServer) pb.RegisterAioVolumeServiceServer(s, backendOpiSpdkServer) pb.RegisterMiddleendEncryptionServiceServer(s, middleendOpiSpdkServer) pc.RegisterInventoryServiceServer(s, &inventory.Server{}) @@ -160,6 +161,7 @@ func runGatewayServer(grpcPort int, httpPort int) { registerGatewayHandler(ctx, mux, endpoint, opts, pb.RegisterAioVolumeServiceHandlerFromEndpoint, "backend aio") registerGatewayHandler(ctx, mux, endpoint, opts, pb.RegisterNullVolumeServiceHandlerFromEndpoint, "backend null") + registerGatewayHandler(ctx, mux, endpoint, opts, pb.RegisterMallocVolumeServiceHandlerFromEndpoint, "backend malloc") registerGatewayHandler(ctx, mux, endpoint, opts, pb.RegisterNvmeRemoteControllerServiceHandlerFromEndpoint, "backend nvme") registerGatewayHandler(ctx, mux, endpoint, opts, pb.RegisterMiddleendEncryptionServiceHandlerFromEndpoint, "middleend encryption")