Skip to content
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

Merged
merged 1 commit into from
Feb 10, 2023
Merged

Conversation

glimchb
Copy link
Member

@glimchb glimchb commented Feb 9, 2023

Fixes #143

Signed-off-by: Boris Glimcher [email protected]

@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Merging #145 (8f7b99d) into main (519c5c9) will decrease coverage by 0.56%.
The diff coverage is 0.00%.

@@            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              
Impacted Files Coverage Δ
pkg/server/middleend.go 58.57% <0.00%> (-4.19%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@glimchb
Copy link
Member Author

glimchb commented Feb 9, 2023

fails on spdk/spdk#2904

@glimchb glimchb marked this pull request as ready for review February 10, 2023 17:33
@glimchb glimchb requested a review from a team as a code owner February 10, 2023 17:33
@@ -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
Copy link
Contributor

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

Copy link
Member Author

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)),
Copy link
Contributor

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?

Copy link
Member Author

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

@glimchb glimchb merged commit 25e3a12 into opiproject:main Feb 10, 2023
@glimchb glimchb deleted the destroykey branch February 10, 2023 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spdk: missing accel_crypto_key_destroy
2 participants