Skip to content

Commit

Permalink
debug findRabbitReletiveSource
Browse files Browse the repository at this point in the history
  • Loading branch information
bdevcich committed Jan 17, 2024
1 parent 0666a69 commit 47e1bd8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion daemons/compute/server/servers/server_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,14 @@ func (s *defaultServer) findRabbitRelativeSource(ctx context.Context, computeMou
for _, clientMount := range clientMounts.Items {
for _, mount := range clientMount.Spec.Mounts {
if *computeMountInfo.Device.DeviceReference == *mount.Device.DeviceReference {
return mount.MountPath + strings.TrimPrefix(req.Source, computeMountInfo.MountPath), nil
log.Println("BLAKE ---------------------------------------")
log.Println("mount.MountPath: " + mount.MountPath)
log.Println("req.Source: " + req.Source)
log.Println("computeMountInfo.MountPath: " + computeMountInfo.MountPath)
ret := mount.MountPath + strings.TrimPrefix(req.Source, computeMountInfo.MountPath)
log.Println("ret: " + ret)
log.Println("---------------------------------------------")
return ret, nil
}
}
}
Expand Down

0 comments on commit 47e1bd8

Please sign in to comment.