Comments (7)
solves the issue on Debian8 with Quantium LTO6 drive too. thanks a lot!
from stenc.
Attempting to enable encryption on an IBM tape library 3573-TL from a machine running CenOS 7.4 and receive an identical error even after applying the patch.
# stenc -f /dev/nst0 -a 1 -e on -k /etc/tape.key Provided key length is 256 bits. Key checksum is 4637. Turning on encryption on device '/dev/nst0'... Sense Code: Illegal Request (0x05) ASC: 0x24 ASCQ: 0x00 Additional data: 0x00000001534c4f5430303000000007c7e1000000000080b560000000000000000000000000000000000000000000000000000000000000000000000000000000000000003039355133303439363600000000000000000000 Error: Turning encryption on for '/dev/nst0' failed!
from stenc.
@ninthclowd what do you think, should we merge this?
from stenc.
@bahelit Your error is different. ASC 0x24 means your drive rejects one of the SCSI commands it got from stenc. The original error referred to ASC 0x26 which means the SCSI command was accepted but the data sent by that command wasn't.
from stenc.
We also need the patch on Debian 10 amd64.
Our tape drive is Quantum Ultrium LTO-5.
Please merge the patch. I think there can be nothing wrong with zeroing the memory before using it...
from stenc.
When you zero the entire kad structure, the two lines below it to set kad.type and kad.authenticated to zero can be removed.
from stenc.
Adding the line:
memset(&kad,0,sizeof(kad));
inscsiencrypt.cpp
fix this issue as described here:What could cause a 'sense error' when setting LTO encryption?
https://serverfault.com/questions/864580/what-could-cause-a-sense-error-when-setting-lto-encryptionPatch for stenc v1.0.7 (https://github.com/scsitape/stenc/archive/1.0.7.tar.gz):
Just tested on Debian 9 and 10 with Quantum LTO5. Patch works perfectly.
from stenc.
Related Issues (20)
- Error when compiling for freeBSD HOT 9
- warning: The preprocessor macro `STDC_HEADERS' is obsolete. HOT 1
- LTO-9 density code not mapped HOT 3
- Invalid argument (Invalid IOCTL call) when using lin_tape device driver? (RHEL9 & ULT3580-HH8) HOT 2
- ./configure syntax error on line 4556 in CentOS 7.9 HOT 3
- man page REPORTING BUGS HOT 2
- Considering C++17 as minimum requirement HOT 5
- Wrong version in the configure.ac
- CI needs pandoc HOT 6
- Drop support for AIX? HOT 2
- New IBM LTO8 drive firmware returns 0x24 error HOT 4
- Header of manpage is missing HOT 1
- stenc should not move the tape
- List new dependencies in changelog
- Blank tape HOT 6
- Compilation error HOT 1
- The manpage is not up to date HOT 3
- Compilation error after merge PR91 HOT 3
- License information in SPDX standard HOT 1
- need script to set version numbers properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stenc.