2 bugs in stenc to enable HW encryption on LTO drives

Bug #1873702 reported by MichaelE
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
stenc (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The current version of stenc in Debian/Ubuntu still contains 2 small bugs which may cause the following error when trying to activate HW encryption:

$ stenc -f /dev/nst0 -a 1 -e on -k test.key
Provided key length is 256 bits.
Key checksum is 7a43.
Turning on encryption on device '/dev/nst0'...
Sense Code: Illegal Request (0x05)
 ASC: 0x26
 ASCQ: 0x00
 Additional data: 0x00000000000000000000000000000000
Error: Turning encryption on for '/dev/nst0' failed!
Usage: stenc --version | -g <length> -k <file> [-kd <description>] | -f <device> [--detail] [-e <on/mixed/rawread/off> [-k <file>] [-kd <description>] [-a <index>] [--protect | --unprotect] [--ckod] ]
Type 'man stenc' for more information

Please see also https://serverfault.com/questions/864580/what-could-cause-a-sense-error-when-setting-lto-encryption

Fixes have been applied to the GitHub repository of stenc (https://github.com/scsitape/stenc), but not ported to Debian. Fixing this would be very easy and be very helpful to users of stenc.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in stenc (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.