Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

TANDBERG LTO-6 HH is not detected and empty cartridge cannot be formated.

Cerrado
#645 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
c, linux

Línea de trabajo

Comienza reproduciendo ambos fallos con ltfs -o device-list y mkltfs -d /dev/sg0; después, inspecciona el backend de cinta SG indicado en libtape-sg.so y los registros correspondientes. Se considera terminado cuando se detecta el TANDBERG LTO-6 HH y el formateo de un cartucho vacío se completa sin un error de sense desconocido ni un segmentation fault.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the bug

ltfs -o device-list fails with Cannot open device: failed backend open call, also mkltfs -d /dev/sg0 fails with an unknown sense code.

To Reproduce

Steps to reproduce the behavior:

Installation:

git checkout release/v2.4.9.0
git submodule update --init --recursive
./autogen.sh
./configure
make
make install 

Observed behavior Issue A

Command:

sudo ltfs -o device-list

The command ltfs -o device-list returned:

156f4 LTFS14000I LTFS starting, LTFS version 2.4.9.0 (Prelim), log level 2.
156f4 LTFS14058I LTFS Format Specification version 2.4.0.
156f4 LTFS14104I Launched by "ltfs -o device-list".
156f4 LTFS14105I This binary is built for Linux (x86_64).
156f4 LTFS14106I GCC version is 15.2.0.
156f4 LTFS17087I Kernel version: Linux version 7.0.0-29-generic (buildd@lcy02-amd64-113) (x86_64-linux-gnu-gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0, GNU ld (GNU Binutils for Ubuntu) 2.46) #29-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 17 20:52:35 UTC 2026 i386.
156f4 LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
156f4 LTFS17089I Distribution: PRETTY_NAME="Ubuntu 26.04 LTS".
156f4 LTFS14063I Sync type is "time", Sync time is 300 sec.
156f4 LTFS17085I Plugin: Loading "sg" tape backend.
156f4 LTFS17085I Plugin: Loading "unified" iosched backend.
156f4 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
156f4 LTFS30209I Opening a device through sg-ibmtape driver (0).
156f4 LTFS30288I Opening a tape device for drive serial 0.
156f4 LTFS12012E Cannot open device: failed backend open call.
156f4 LTFS10004E Cannot open device '0'.

Observed behavior Issue B

The command mkltfs -d /dev/sg0 failed:

natsim@TheFatOfTheLand:~/ltfs$ sudo mkltfs -d /dev/sg0
LTFS15000I Starting mkltfs, LTFS version 2.4.9.0 (Prelim), log level 2.
LTFS15041I Launched by "mkltfs -d /dev/sg0".
LTFS15042I This binary is built for Linux (x86_64).
LTFS15043I GCC version is 15.2.0.
LTFS17087I Kernel version: Linux version 7.0.0-29-generic (buildd@lcy02-amd64-113) (x86_64-linux-gnu-gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0, GNU ld (GNU Binutils for Ubuntu) 2.46) #29-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 17 20:52:35 UTC 2026 i386.
LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
LTFS17089I Distribution: PRETTY_NAME="Ubuntu 26.04 LTS".
LTFS15003I Formatting device '/dev/sg0'.
LTFS15004I LTFS volume blocksize: 524288.
LTFS15005I Index partition placement policy: None.
LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x61991ca168a0).
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg0).
Segmentation fault sudo mkltfs -d /dev/sg0

dmesg says:

[ 3182.554453] mkltfs[100872]: segfault at 0 ip 00007bc1444623e0 sp 00007ffebdee2710 error 4 in libtape-sg.so[a3e0,7bc14445e000+2b000] likely on CPU 19 (core 39, socket 0)
[ 3182.554463] Code: ff ff 85 c0 75 15 48 8b 85 a8 fe ff ff 48 8b 00 8b 40 1c 89 85 a0 fe ff ff eb 1b 48 83 85 a8 fe ff ff 08 48 8b 85 a8 fe ff ff <48> 8b 00 48 85 c0 0f 85 57 ff ff ff 83 bd a0 fe ff ff 00 7e 7d 48

Other information

  • Kernel: Linux 7.0.0-29-generic
  • OS: Ubuntu 26.04 LTS
  • Device: TANDBERG LTO-6 HH
Lenguaje dominante
C
Estrellas
358
Forks
111
Merge medio
5 d 1 h
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de LinearTapeFileSystem/ltfs

Todos los issues de LinearTapeFileSystem/ltfs

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.