From 71ef236e91ca5437abb62777d659d5c4d065f05f Mon Sep 17 00:00:00 2001 From: adminer Date: Thu, 16 Jul 2026 08:44:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20internal/endpoint/endpoint.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/endpoint/endpoint.go | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/internal/endpoint/endpoint.go b/internal/endpoint/endpoint.go index de344b1..f778015 100644 --- a/internal/endpoint/endpoint.go +++ b/internal/endpoint/endpoint.go @@ -600,22 +600,8 @@ func (s *Receiver) clientRootFromCtx(ctx context.Context) *zfs.DatasetPath { return s.conf.RootWithoutClientComponent.Copy() } - var clientIdentity string - if s.Test_OverrideClientIdentityFunc != nil { - clientIdentity = s.Test_OverrideClientIdentityFunc() - } else { - var ok bool - clientIdentity, ok = ctx.Value(ClientIdentityKey).(string) // no shadow - if !ok { - panic("ClientIdentityKey context value must be set") - } - } - - clientRoot, err := clientRoot(s.conf.RootWithoutClientComponent, clientIdentity) - if err != nil { - panic(fmt.Sprintf("ClientIdentityContextKey must have been validated before invoking Receiver: %s", err)) - } - return clientRoot + // Патч: всегда возвращаем только root_fs без client_identity + return s.conf.RootWithoutClientComponent.Copy() } type subroot struct {