LinearTapeFileSystem / LinearTapeFileSystem/ltfs

Encryption Function Error?

Open
#498 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
352
Forks
110
Avg merge
2h 50m
Merged PRs (30d)
2

Description

Vendor ID = HP
Product ID = Ultrium 6-SCSI
Product Name =[Ultrium 6-SCSI]

I have HP Ultrium 6 tape drive and I try to use the encryption function. (my tape drive support it)
I typed command
'mkltfs -d $SERIAL --kmi-backend=simple -o kmi_dki_for_format=$KEYINDEX -o kmi_dk_for_format=$KEY'
but the message displayed.
'LTFS30243E Encryption feature is not supported on the drive: 8454.'

in [src > tape_drivers > linux > sg > sg_tape.c]
I think the Function [is_encryption_capable] is not work properly.
maybe '!' missing in if statement

if (IS_LTO(priv->drive_type)) {
ltfsmsg(LTFS_ERR, 30243E, priv->drive_type);
return -EDEV_INTERNAL_ERROR;
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/tape_drivers/linux/sg/sg_tape.c and inspect is_encryption_capable alongside the LTFS30243E path shown in the report. Reproduce the mkltfs command with the HP Ultrium 6-SCSI drive if available, then verify whether the encryption capability check correctly permits supported drives.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.