Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

ltfs loops with 'LTFS30216W Length mismatch is detected.'

Aperta
#517 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
c, linux, ubuntu

Direzione di ricerca

Inizia con il comando ltfs mount e con i messaggi LTFS30216W ripetuti provenienti da /dev/sg23 sul volume LTO6 interessato. Indaga sul motivo per cui il montaggio entra in un ciclo dopo aver riportato Act=4096 e resid=0, utilizzando le versioni indicate di Ubuntu, kernel, unità e LTFS. Il lavoro è completato quando il volume interessato viene montato correttamente oppure termina con un errore chiaro invece di entrare in un ciclo indefinito.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Investigating

Describe the bug
OS: Ubuntu 24.04. latest master release

MOST volumes in a 2000 tape changer mount, read / write just fine.
Occasionally a volume will be loaded which exibits the following issue:

root@max-sfa-01:/usr/share/SFS/bin/NxCore# ltfs /ltfs/Tape4 -o devname=/dev/sg23
262dcf LTFS14000I LTFS starting, LTFS version 2.4.4.1 (Prelim), log level 2.
262dcf LTFS14058I LTFS Format Specification version 2.4.0.
262dcf LTFS14104I Launched by "ltfs /ltfs/Tape4 -o devname=/dev/sg23".
262dcf LTFS14105I This binary is built for Linux (x86_64).
262dcf LTFS14106I GCC version is 13.3.0.
262dcf LTFS17087I Kernel version: Linux version 6.8.0-58-generic (buildd@lcy02-amd64-040) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #60-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 14 18:29:48 UTC 2025 i386. 262dcf LTFS17089I Distribution: PRETTY_NAME="Ubuntu 24.04.1 LTS".
262dcf LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
262dcf LTFS14063I Sync type is "time", Sync time is 300 sec.
262dcf LTFS17085I Plugin: Loading "sg" tape backend.
262dcf LTFS17085I Plugin: Loading "unified" iosched backend.
262dcf LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
262dcf LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg23).
262dcf LTFS30250I Opened the SCSI tape device 10.0.12.0 (/dev/sg23).
262dcf LTFS30207I Vendor ID is IBM .
262dcf LTFS30208I Product ID is ULTRIUM-TD6 .
262dcf LTFS30214I Firmware revision is KAJ8.
262dcf LTFS30215I Drive serial is 1013005917.
262dcf LTFS30285I The reserved buffer size of /dev/sg23 is 1048576.
262dcf LTFS30294I Setting up timeout values from RSOC.
262dcf LTFS17160I Maximum device block size is 1048576.
262dcf LTFS11330I Loading cartridge.
262dcf LTFS30252I Logical block protection is disabled.
262dcf LTFS11332I Load successful.
262dcf LTFS17157I Changing the drive setting to write-anywhere mode.
262dcf LTFS11005I Mounting the volume.
262dcf LTFS30252I Logical block protection is disabled.
262dcf LTFS30216W Length mismatch is detected. (Act = 4096, resid = 0, resid_sense = -61440).
262dcf LTFS30216W Length mismatch is detected. (Act = 4096, resid = 0, resid_sense = -61440).
262dcf LTFS30216W Length mismatch is detected. (Act = 4096, resid = 0, resid_sense = -61440).
262dcf LTFS30216W Length mismatch is detected. (Act = 4096, resid = 0, resid_sense = -61440).

...... And this loops forever ( process was run for over 12 hours, so never exits ).

To Reproduce
Very difficult as this is a random volume within 2000+ volumes in a changer, I believe this only effects LTO6 media. The changer has mixed LTO media types ( LTO9, LTO7 and LTO6 ).

Expected behavior
The volume should mount as it is formatted etc.

Desktop (please complete the following information):

  • OS: Ubuntu 24.04
  • Version have tried 2.4.4, 2.4.7, 2.5.0 ( Prelim ) all exhibit the same issue
Lingua principale
C
Stelle
352
Fork
110
Merge medio
2h 50m
PR unite (30g)
2

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LinearTapeFileSystem/ltfs

Tutte le issue di LinearTapeFileSystem/ltfs

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.