-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spdk: middle: add AccelCryptoKeyDestroy #145
Conversation
Codecov Report
@@ Coverage Diff @@
## main #145 +/- ##
==========================================
- Coverage 49.27% 48.72% -0.56%
==========================================
Files 4 4
Lines 1236 1250 +14
==========================================
Hits 609 609
- Misses 608 622 +14
Partials 19 19
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
fails on spdk/spdk#2904 |
Fixes opiproject#143 Signed-off-by: Boris Glimcher <[email protected]>
@@ -99,6 +99,7 @@ func (s *Server) DeleteEncryptedVolume(ctx context.Context, in *pb.DeleteEncrypt | |||
// UpdateEncryptedVolume updates an encrypted volume | |||
func (s *Server) UpdateEncryptedVolume(ctx context.Context, in *pb.UpdateEncryptedVolumeRequest) (*pb.EncryptedVolume, error) { | |||
log.Printf("UpdateEncryptedVolume: Received from client: %v", in) | |||
// first delete old bdev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, codecov doesn't seem very smart to flag a comment line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷
@@ -121,7 +136,7 @@ func (s *Server) UpdateEncryptedVolume(ctx context.Context, in *pb.UpdateEncrypt | |||
} | |||
params2 := AccelCryptoKeyCreateParams{ | |||
Cipher: r.FindStringSubmatch(in.EncryptedVolume.Cipher.String())[1], | |||
Name: "super_key2", | |||
Name: "super_key", | |||
Key: string(in.EncryptedVolume.Key), | |||
Key2: strings.Repeat("b", len(in.EncryptedVolume.Key)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be "a"'s repeated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wanted to show a change from a
to b
since this is update
command
Fixes #143
Signed-off-by: Boris Glimcher [email protected]