From f73b5741d1e17c36b861e72aa93804c56843ee20 Mon Sep 17 00:00:00 2001 From: Moshe Shahar Date: Thu, 18 Apr 2024 11:05:12 +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 0eede7f..3657040 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -132,6 +132,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{}) @@ -159,6 +160,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")