LinearTapeFileSystem / LinearTapeFileSystem/ltfs
Encryption Function Error?
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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