Giter Site home page Giter Site logo

Comments (7)

remcohn avatar remcohn commented on May 23, 2024

solves the issue on Debian8 with Quantium LTO6 drive too. thanks a lot!

from stenc.

bahelit avatar bahelit commented on May 23, 2024

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.

jonasstein avatar jonasstein commented on May 23, 2024

@ninthclowd what do you think, should we merge this?

from stenc.

scsirob avatar scsirob commented on May 23, 2024

@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.

hrubsa avatar hrubsa commented on May 23, 2024

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.

scsirob avatar scsirob commented on May 23, 2024

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.

royalmoose avatar royalmoose commented on May 23, 2024

Adding the line: memset(&kad,0,sizeof(kad)); in scsiencrypt.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-encryption

Patch 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.