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

stenc should not move the tape #63

Closed
jmwilson opened this issue May 10, 2022 · 0 comments
Closed

stenc should not move the tape #63

jmwilson opened this issue May 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jmwilson
Copy link
Contributor

While investigating #27, I saw in the code if stenc can't determine the encryption status of the current block, it will start moving the tape forward until it gets a different answer, up to some limit. This can happen if the tape is positioned at a file mark or end of tape, which doesn't hold data.

Two things:

  • requesting status should never change state - just report the information as-is that encryption status can't be determined
  • should change "Volume encryption" to "Current block encryption" or such for correctness. The actual command in the spec is called "next block encryption status" because all it determines the encryption setting for the record at the current tape head position. Other parts of the volume could be encrypted or not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants