LinearTapeFileSystem / ltfs

Reference implementation of the LTFS format Spec for stand alone tape drive
BSD 3-Clause "New" or "Revised" License
252 stars 76 forks source link

FreeBSD newest revision doesnt see my Tandberg LTO-6 tapedrive #286

Closed ia2115 closed 2 years ago

ia2115 commented 3 years ago

Just git cloned newest ltfs, the version that works with debian 10.

ltfs -o device_list
LTFS9015W Setting the locale to 'en_US.UTF-8'. If this is wrong, please set the LANG environment variable before starting ltfs.
18fc3 LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
18fc3 LTFS14058I LTFS Format Specification version 2.4.0.
18fc3 LTFS14104I Launched by "ltfs -o device_list".
18fc3 LTFS14105I This binary is built for FreeBSD.
18fc3 LTFS14106I GCC version is FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2).
18fc3 LTFS17087I Kernel version: FreeBSD 12.2-STABLE r369131 GENERIC
.
18fc3 LTFS17085I Plugin: Loading "cam" tape backend.
Tape Device list:.

from var/log/messages

May 20 20:05:46 pzfjails kernel: sa0 at mps0 bus 0 scbus0 target 83 lun 0
May 20 20:05:46 pzfjails kernel: sa0: <TANDBERG LTO-6 HH 3579> Removable Sequential Access SPC-4 SCSI device
May 20 20:05:46 pzfjails kernel: sa0: Serial Number HUJ527449P
May 20 20:05:46 pzfjails kernel: sa0: 600.000MB/s transfers
May 20 20:05:46 pzfjails kernel: sa0: Command Queueing enabled
# ls -la /dev/sa*
crw-rw----  1 root  operator  0xeb May 20 20:05 /dev/sa0
crw-rw----  1 root  operator  0xea May 20 20:05 /dev/sa0.ctl

no compile errors or anything like it.

root@pc:~/ltfs # ./autogen.sh
root@pc:~/ltfs # ./configure --prefix=/usr/local --mandir=/usr/local/man
checking build system type... amd64-unknown-freebsd12.2
checking host system type... amd64-unknown-freebsd12.2
checking target system type... amd64-unknown-freebsd12.2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... no
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of cc... gcc3
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for cc option to accept ISO C99... none needed
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 393216
checking how to convert amd64-unknown-freebsd12.2 file names to amd64-unknown-freebsd12.2 format... func_convert_file_noop
checking how to convert amd64-unknown-freebsd12.2 file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from cc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd12.2 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether to compile in debug mode... no
checking whether to compile in message checking mode... no
checking enable warnings as errors... no
checking whether to enable optimizations... no
checking whether to enable livelink mode support default=yes ... yes
checking whether to enable snmp or not... yes
checking whether to enable new locking system or not... no
checking whether to enable lin_tape or not (Linux Only)... no
checking whether to enable handling of buggy I/Fs or not (Linux/MacOS Only)... no
checking for pkg-config... /usr/local/bin/pkg-config
checking for genrb... /usr/local/bin/genrb
checking for pkgdata... /usr/local/bin/pkgdata
checking pkg-config is at least version 0.9.0... yes
checking for FUSE_MODULE... yes
checking for LIBXML2_MODULE... yes
checking for UUID_MODULE... yes
checking for pthread_create in -lpthread... yes
checking for clock_gettime in -lrt... yes
checking for cam_open_device in -lcam... yes
checking for XML_ParserCreate in -lbsdxml... yes
checking for mt_status_free in -lmt... yes
checking for backtrace in -lexecinfo... yes
checking use latest ICU... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for mode_t... yes
checking for off_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking size of time_t... 8
checking for struct stat.st_blocks... yes
checking for struct stat.st_blksize... yes
checking for struct stat.st_rdev... yes
checking for inline... inline
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working strnlen... yes
checking for bzero... yes
checking for memchr... yes
checking for memset... yes
checking for mkdir... yes
checking for rmdir... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strerror... yes
checking for strndup... yes
checking for strrchr... yes
checking for strstr... yes
checking for xmlTextReaderSetup... no
checking for xmlTextReaderSetup in -lxml2... no
checking for XML_PARSE_HUGE... yes
checking if compiling with clang... yes
checking for SSE4.2... yes, x86_64
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating messages/Makefile
config.status: creating conf/Makefile
config.status: creating man/Makefile
config.status: creating init.d/Makefile
config.status: creating src/Makefile
config.status: creating src/libltfs/Makefile
config.status: creating src/tape_drivers/generic/file/Makefile
config.status: creating src/tape_drivers/generic/itdtimg/Makefile
config.status: creating src/tape_drivers/linux/lin_tape/Makefile
config.status: creating src/tape_drivers/linux/sg/Makefile
config.status: creating src/tape_drivers/osx/iokit/Makefile
config.status: creating src/tape_drivers/freebsd/cam/Makefile
config.status: creating src/tape_drivers/netbsd/scsipi-ibmtape/Makefile
config.status: creating src/iosched/Makefile
config.status: creating src/kmi/Makefile
config.status: creating src/utils/Makefile
config.status: creating ltfs.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
root@pc:~/ltfs #

# make
make  all-recursive
Making all in messages
Making all in src
Making all in libltfs
Making all in tape_drivers/generic/file
Making all in tape_drivers/generic/itdtimg
Making all in tape_drivers/freebsd/cam
Making all in iosched
Making all in libltfs
Making all in utils
Making all in kmi
Making all in iosched
Making all in utils
Making all in conf
Making all in init.d
Making all in man
root@pzfjails:~/ltfs # make install
Making install in messages
Making install in src
Making install in libltfs
 ../../build-aux/install-sh -c -d '/usr/local/lib'
 /bin/sh ../../libtool   --mode=install /usr/bin/install -c   libltfs.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libltfs.so.0.0.0 /usr/local/lib/libltfs.so.0.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libltfs.so.0.0.0 libltfs.so.0 || { rm -f libltfs.so.0 && ln -s libltfs.so.0.0.0 libltfs.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libltfs.so.0.0.0 libltfs.so || { rm -f libltfs.so && ln -s libltfs.so.0.0.0 libltfs.so; }; })
libtool: install: /usr/bin/install -c .libs/libltfs.lai /usr/local/lib/libltfs.la
libtool: install: /usr/bin/install -c .libs/libltfs.a /usr/local/lib/libltfs.a
libtool: install: chmod 644 /usr/local/lib/libltfs.a
libtool: install: ranlib /usr/local/lib/libltfs.a
if [ ! -d "/usr/local/share/snmp" ]; then  mkdir -p "/usr/local/share/snmp";  cp LtfsSnmpTrapDef.txt LTFS-MIB.txt "/usr/local/share/snmp/";  elif [ ! -f "/usr/local/share/snmp/LtfsSnmpTrapDef.txt" ]; then  cp LtfsSnmpTrapDef.txt "/usr/local/share/snmp/LtfsSnmpTrapDef.txt";  elif [ ! -f "/usr/local/share/snmp/LTFS-MIB.txt" ]; then  cp LTFS-MIB.txt "/usr/local/share/snmp/LTFS-MIB.txt";  fi
Making install in tape_drivers/generic/file
 ../../../../build-aux/install-sh -c -d '/usr/local/lib'
 /bin/sh ../../../../libtool --tag=disable-static  --mode=install /usr/bin/install -c   libtape-file.la '/usr/local/lib'
libtool: warning: relinking 'libtape-file.la'
libtool: install: (cd /root/ltfs/src/tape_drivers/generic/file; /bin/sh "/root/ltfs/libtool"  --tag CC --tag disable-static --mode=relink cc -Wall -Wsign-compare -fsigned-char -I/usr/local/include/fuse -D_FILE_OFFSET_BITS=64 -I/usr/local/include/uuid -I/usr/local/include -I/usr/local/include/libxml2 -DU_DISABLE_RENAMING=1 -I/usr/local/include -D ENABLE_SNMP -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -Ufreebsd12 -Dfreebsd12=freebsd12 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/usr/local/lib/perl5/5.32/mach/CORE -I/usr/include -I. -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=0 -O0 -ggdb -avoid-version -module -Wl,--no-undefined,--as-needed -L/usr/local/lib -lfuse -pthread -L/usr/local/lib -luuid -L/usr/local/lib -lxml2 -L/usr/local/lib -licui18n -licuuc -licudata -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L../../../../messages/ -ltape_generic_file_dat -o libtape-file.la -rpath /usr/local/lib libtape_file_la-filedebug_tc.lo libtape_file_la-filedebug_conf_tc.lo libtape_file_la-ibm_tape.lo ../../../libltfs/libltfs.la -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread )
libtool: relink: cc -shared  -fPIC -DPIC  .libs/libtape_file_la-filedebug_tc.o .libs/libtape_file_la-filedebug_conf_tc.o .libs/libtape_file_la-ibm_tape.o   -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/lib -L/lib -L../../../../messages/ -ltape_generic_file_dat -lltfs -L../../messages -lfuse -luuid -lxml2 -licui18n -licuuc -licudata -lnetsnmpmibs -lnetsnmpagent -lm -lkvm -ldevstat -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -llibltfs_dat -linternal_error_dat -ltape_common_dat -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread  -O2 -fstack-protector-strong -O2 -fstack-protector-strong -fstack-protector-strong -g -O2 -O0 -ggdb -Wl,--no-undefined -Wl,--as-needed -pthread -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE   -pthread -Wl,-soname -Wl,libtape-file.so -o .libs/libtape-file.so
libtool: install: /usr/bin/install -c .libs/libtape-file.soT /usr/local/lib/libtape-file.so
libtool: install: /usr/bin/install -c .libs/libtape-file.lai /usr/local/lib/libtape-file.la
make  install-exec-hook
mkdir -p /usr/local/lib/ltfs
for f in libtape-file.la; do rm -f /usr/local/lib/$f; done
for f in libtape-file; do mv /usr/local/lib/$f* /usr/local/lib/ltfs; done
Making install in tape_drivers/generic/itdtimg
 ../../../../build-aux/install-sh -c -d '/usr/local/lib'
 /bin/sh ../../../../libtool --tag=disable-static  --mode=install /usr/bin/install -c   libtape-itdtimg.la '/usr/local/lib'
libtool: warning: relinking 'libtape-itdtimg.la'
libtool: install: (cd /root/ltfs/src/tape_drivers/generic/itdtimg; /bin/sh "/root/ltfs/libtool"  --tag CC --tag disable-static --mode=relink cc -Wall -Wsign-compare -fsigned-char -I/usr/local/include/fuse -D_FILE_OFFSET_BITS=64 -I/usr/local/include/uuid -I/usr/local/include -I/usr/local/include/libxml2 -DU_DISABLE_RENAMING=1 -I/usr/local/include -D ENABLE_SNMP -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -Ufreebsd12 -Dfreebsd12=freebsd12 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/usr/local/lib/perl5/5.32/mach/CORE -I/usr/include -I. -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=0 -O0 -ggdb -avoid-version -module -Wl,--no-undefined,--as-needed -L/usr/local/lib -lfuse -pthread -L/usr/local/lib -luuid -L/usr/local/lib -lxml2 -L/usr/local/lib -licui18n -licuuc -licudata -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L../../../../messages -ltape_generic_itdtimg_dat -o libtape-itdtimg.la -rpath /usr/local/lib libtape_itdtimg_la-itdtimg_tc.lo ../../../libltfs/libltfs.la -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread )
libtool: relink: cc -shared  -fPIC -DPIC  .libs/libtape_itdtimg_la-itdtimg_tc.o   -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/lib -L/lib -L../../../../messages -ltape_generic_itdtimg_dat -lltfs -L../../messages -lfuse -luuid -lxml2 -licui18n -licuuc -licudata -lnetsnmpmibs -lnetsnmpagent -lm -lkvm -ldevstat -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -llibltfs_dat -linternal_error_dat -ltape_common_dat -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread  -O2 -fstack-protector-strong -O2 -fstack-protector-strong -fstack-protector-strong -g -O2 -O0 -ggdb -Wl,--no-undefined -Wl,--as-needed -pthread -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE   -pthread -Wl,-soname -Wl,libtape-itdtimg.so -o .libs/libtape-itdtimg.so
libtool: install: /usr/bin/install -c .libs/libtape-itdtimg.soT /usr/local/lib/libtape-itdtimg.so
libtool: install: /usr/bin/install -c .libs/libtape-itdtimg.lai /usr/local/lib/libtape-itdtimg.la
make  install-exec-hook
mkdir -p /usr/local/lib/ltfs
for f in libtape-itdtimg.la; do rm -f /usr/local/lib/$f; done
for f in libtape-itdtimg; do mv /usr/local/lib/$f* /usr/local/lib/ltfs; done
Making install in tape_drivers/freebsd/cam
 ../../../../build-aux/install-sh -c -d '/usr/local/lib'
 /bin/sh ../../../../libtool --tag=disable-static  --mode=install /usr/bin/install -c   libtape-cam.la '/usr/local/lib'
libtool: warning: relinking 'libtape-cam.la'
libtool: install: (cd /root/ltfs/src/tape_drivers/freebsd/cam; /bin/sh "/root/ltfs/libtool"  --tag CC --tag disable-static --mode=relink cc -Wall -Wsign-compare -fsigned-char -I/usr/local/include/fuse -D_FILE_OFFSET_BITS=64 -I/usr/local/include/uuid -I/usr/local/include -I/usr/local/include/libxml2 -DU_DISABLE_RENAMING=1 -I/usr/local/include -D ENABLE_SNMP -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -Ufreebsd12 -Dfreebsd12=freebsd12 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/usr/local/lib/perl5/5.32/mach/CORE -I/usr/include -I. -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=0 -O0 -ggdb -avoid-version -module -Wl,--no-undefined,--as-needed -L/usr/local/lib -lfuse -pthread -L/usr/local/lib -luuid -L/usr/local/lib -lxml2 -L/usr/local/lib -licui18n -licuuc -licudata -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L../../../../messages -ltape_freebsd_cam_dat -o libtape-cam.la -rpath /usr/local/lib libtape_cam_la-cam_cmn.lo libtape_cam_la-cam_tc.lo libtape_cam_la-vendor_compat.lo libtape_cam_la-ibm_tape.lo libtape_cam_la-hp_tape.lo libtape_cam_la-quantum_tape.lo ../../../libltfs/libltfs.la ./libtape_cam_la-reed_solomon_crc.lo ./libtape_cam_la-crc32c_crc.lo -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread )
libtool: relink: cc -shared  -fPIC -DPIC  .libs/libtape_cam_la-cam_cmn.o .libs/libtape_cam_la-cam_tc.o .libs/libtape_cam_la-vendor_compat.o .libs/libtape_cam_la-ibm_tape.o .libs/libtape_cam_la-hp_tape.o .libs/libtape_cam_la-quantum_tape.o ./.libs/libtape_cam_la-reed_solomon_crc.o ./.libs/libtape_cam_la-crc32c_crc.o   -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/lib -L/lib -L../../../../messages -ltape_freebsd_cam_dat -lltfs -L../../messages -lfuse -luuid -lxml2 -licui18n -licuuc -licudata -lnetsnmpmibs -lnetsnmpagent -lm -lkvm -ldevstat -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -llibltfs_dat -linternal_error_dat -ltape_common_dat -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread  -O2 -fstack-protector-strong -O2 -fstack-protector-strong -fstack-protector-strong -g -O2 -O0 -ggdb -Wl,--no-undefined -Wl,--as-needed -pthread -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE   -pthread -Wl,-soname -Wl,libtape-cam.so -o .libs/libtape-cam.so
libtool: install: /usr/bin/install -c .libs/libtape-cam.soT /usr/local/lib/libtape-cam.so
libtool: install: /usr/bin/install -c .libs/libtape-cam.lai /usr/local/lib/libtape-cam.la
make  install-exec-hook
mkdir -p /usr/local/lib/ltfs
for f in libtape-cam.la; do rm -f /usr/local/lib/$f; done
for f in libtape-cam; do mv /usr/local/lib/$f* /usr/local/lib/ltfs; done
Making install in iosched
 ../../build-aux/install-sh -c -d '/usr/local/lib'
 /bin/sh ../../libtool --tag=disable-static  --mode=install /usr/bin/install -c   libiosched-fcfs.la libiosched-unified.la '/usr/local/lib'
libtool: warning: relinking 'libiosched-fcfs.la'
libtool: install: (cd /root/ltfs/src/iosched; /bin/sh "/root/ltfs/libtool"  --tag CC --tag disable-static --mode=relink cc -Wall -Wsign-compare -fsigned-char -I/usr/local/include/fuse -D_FILE_OFFSET_BITS=64 -I/usr/local/include/uuid -I/usr/local/include -I/usr/local/include/libxml2 -DU_DISABLE_RENAMING=1 -I/usr/local/include -D ENABLE_SNMP -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -Ufreebsd12 -Dfreebsd12=freebsd12 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/usr/local/lib/perl5/5.32/mach/CORE -I/usr/include -I. -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=0 -O0 -ggdb -avoid-version -module -Wl,--no-undefined,--as-needed -L/usr/local/lib -lfuse -pthread -L/usr/local/lib -luuid -L/usr/local/lib -lxml2 -L/usr/local/lib -licui18n -licuuc -licudata -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L../../messages/ -liosched_fcfs_dat -o libiosched-fcfs.la -rpath /usr/local/lib libiosched_fcfs_la-fcfs.lo ../libltfs/libltfs.la -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread )
libtool: relink: cc -shared  -fPIC -DPIC  .libs/libiosched_fcfs_la-fcfs.o   -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/lib -L/lib -L../../messages/ -liosched_fcfs_dat -lltfs -L../../messages -lfuse -luuid -lxml2 -licui18n -licuuc -licudata -lnetsnmpmibs -lnetsnmpagent -lm -lkvm -ldevstat -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -llibltfs_dat -linternal_error_dat -ltape_common_dat -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread  -O2 -fstack-protector-strong -O2 -fstack-protector-strong -fstack-protector-strong -g -O2 -O0 -ggdb -Wl,--no-undefined -Wl,--as-needed -pthread -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE   -pthread -Wl,-soname -Wl,libiosched-fcfs.so -o .libs/libiosched-fcfs.so
libtool: install: /usr/bin/install -c .libs/libiosched-fcfs.soT /usr/local/lib/libiosched-fcfs.so
libtool: install: /usr/bin/install -c .libs/libiosched-fcfs.lai /usr/local/lib/libiosched-fcfs.la
libtool: warning: relinking 'libiosched-unified.la'
libtool: install: (cd /root/ltfs/src/iosched; /bin/sh "/root/ltfs/libtool"  --tag CC --tag disable-static --mode=relink cc -Wall -Wsign-compare -fsigned-char -I/usr/local/include/fuse -D_FILE_OFFSET_BITS=64 -I/usr/local/include/uuid -I/usr/local/include -I/usr/local/include/libxml2 -DU_DISABLE_RENAMING=1 -I/usr/local/include -D ENABLE_SNMP -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -Ufreebsd12 -Dfreebsd12=freebsd12 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/usr/local/lib/perl5/5.32/mach/CORE -I/usr/include -I. -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=0 -O0 -ggdb -avoid-version -module -Wl,--no-undefined,--as-needed -L/usr/local/lib -lfuse -pthread -L/usr/local/lib -luuid -L/usr/local/lib -lxml2 -L/usr/local/lib -licui18n -licuuc -licudata -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L../../messages/ -liosched_unified_dat -o libiosched-unified.la -rpath /usr/local/lib libiosched_unified_la-unified.lo libiosched_unified_la-cache_manager.lo ../libltfs/libltfs.la -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread )
libtool: relink: cc -shared  -fPIC -DPIC  .libs/libiosched_unified_la-unified.o .libs/libiosched_unified_la-cache_manager.o   -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/lib -L/lib -L../../messages/ -liosched_unified_dat -lltfs -L../../messages -lfuse -luuid -lxml2 -licui18n -licuuc -licudata -lnetsnmpmibs -lnetsnmpagent -lm -lkvm -ldevstat -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -llibltfs_dat -linternal_error_dat -ltape_common_dat -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread  -O2 -fstack-protector-strong -O2 -fstack-protector-strong -fstack-protector-strong -g -O2 -O0 -ggdb -Wl,--no-undefined -Wl,--as-needed -pthread -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE   -pthread -Wl,-soname -Wl,libiosched-unified.so -o .libs/libiosched-unified.so
libtool: install: /usr/bin/install -c .libs/libiosched-unified.soT /usr/local/lib/libiosched-unified.so
libtool: install: /usr/bin/install -c .libs/libiosched-unified.lai /usr/local/lib/libiosched-unified.la
make  install-exec-hook
mkdir -p /usr/local/lib/ltfs
for f in libiosched-fcfs.la libiosched-unified.la; do rm -f /usr/local/lib/$f; done
for f in libiosched-fcfs libiosched-unified; do mv /usr/local/lib/$f* /usr/local/lib/ltfs; done
Making install in libltfs
 ../../build-aux/install-sh -c -d '/usr/local/lib'
 /bin/sh ../../libtool   --mode=install /usr/bin/install -c   libltfs.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libltfs.so.0.0.0 /usr/local/lib/libltfs.so.0.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libltfs.so.0.0.0 libltfs.so.0 || { rm -f libltfs.so.0 && ln -s libltfs.so.0.0.0 libltfs.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libltfs.so.0.0.0 libltfs.so || { rm -f libltfs.so && ln -s libltfs.so.0.0.0 libltfs.so; }; })
libtool: install: /usr/bin/install -c .libs/libltfs.lai /usr/local/lib/libltfs.la
libtool: install: /usr/bin/install -c .libs/libltfs.a /usr/local/lib/libltfs.a
libtool: install: chmod 644 /usr/local/lib/libltfs.a
libtool: install: ranlib /usr/local/lib/libltfs.a
if [ ! -d "/usr/local/share/snmp" ]; then  mkdir -p "/usr/local/share/snmp";  cp LtfsSnmpTrapDef.txt LTFS-MIB.txt "/usr/local/share/snmp/";  elif [ ! -f "/usr/local/share/snmp/LtfsSnmpTrapDef.txt" ]; then  cp LtfsSnmpTrapDef.txt "/usr/local/share/snmp/LtfsSnmpTrapDef.txt";  elif [ ! -f "/usr/local/share/snmp/LTFS-MIB.txt" ]; then  cp LTFS-MIB.txt "/usr/local/share/snmp/LTFS-MIB.txt";  fi
Making install in utils
 ../../build-aux/install-sh -c -d '/usr/local/bin'
  /bin/sh ../../libtool   --mode=install /usr/bin/install -c mkltfs ltfsck '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/mkltfs /usr/local/bin/mkltfs
libtool: install: /usr/bin/install -c .libs/ltfsck /usr/local/bin/ltfsck
 ../../build-aux/install-sh -c -d '/usr/local/bin'
 /usr/bin/install -c ltfs_ordered_copy '/usr/local/bin'
Making install in kmi
 ../../build-aux/install-sh -c -d '/usr/local/lib'
 /bin/sh ../../libtool --tag=disable-static  --mode=install /usr/bin/install -c   libkmi-simple.la libkmi-flatfile.la '/usr/local/lib'
libtool: warning: relinking 'libkmi-simple.la'
libtool: install: (cd /root/ltfs/src/kmi; /bin/sh "/root/ltfs/libtool"  --tag CC --tag disable-static --mode=relink cc -Wall -Wsign-compare -fsigned-char -I/usr/local/include/fuse -D_FILE_OFFSET_BITS=64 -I/usr/local/include/uuid -I/usr/local/include -I/usr/local/include/libxml2 -DU_DISABLE_RENAMING=1 -I/usr/local/include -D ENABLE_SNMP -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -Ufreebsd12 -Dfreebsd12=freebsd12 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/usr/local/lib/perl5/5.32/mach/CORE -I/usr/include -I. -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=0 -O0 -ggdb -avoid-version -module -Wl,--no-undefined,--as-needed -L/usr/local/lib -lfuse -pthread -L/usr/local/lib -luuid -L/usr/local/lib -lxml2 -L/usr/local/lib -licui18n -licuuc -licudata -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L../../messages -lkmi_simple_dat -o libkmi-simple.la -rpath /usr/local/lib libkmi_simple_la-simple.lo libkmi_simple_la-key_format_ltfs.lo ../libltfs/libltfs.la -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread )
libtool: relink: cc -shared  -fPIC -DPIC  .libs/libkmi_simple_la-simple.o .libs/libkmi_simple_la-key_format_ltfs.o   -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/lib -L/lib -L../../messages -lkmi_simple_dat -lltfs -lfuse -luuid -lxml2 -licui18n -licuuc -licudata -lnetsnmpmibs -lnetsnmpagent -lm -lkvm -ldevstat -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -llibltfs_dat -linternal_error_dat -ltape_common_dat -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread  -O2 -fstack-protector-strong -O2 -fstack-protector-strong -fstack-protector-strong -g -O2 -O0 -ggdb -Wl,--no-undefined -Wl,--as-needed -pthread -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE   -pthread -Wl,-soname -Wl,libkmi-simple.so -o .libs/libkmi-simple.so
libtool: install: /usr/bin/install -c .libs/libkmi-simple.soT /usr/local/lib/libkmi-simple.so
libtool: install: /usr/bin/install -c .libs/libkmi-simple.lai /usr/local/lib/libkmi-simple.la
libtool: warning: relinking 'libkmi-flatfile.la'
libtool: install: (cd /root/ltfs/src/kmi; /bin/sh "/root/ltfs/libtool"  --tag CC --tag disable-static --mode=relink cc -Wall -Wsign-compare -fsigned-char -I/usr/local/include/fuse -D_FILE_OFFSET_BITS=64 -I/usr/local/include/uuid -I/usr/local/include -I/usr/local/include/libxml2 -DU_DISABLE_RENAMING=1 -I/usr/local/include -D ENABLE_SNMP -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -Ufreebsd12 -Dfreebsd12=freebsd12 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/usr/local/lib/perl5/5.32/mach/CORE -I/usr/include -I. -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=0 -O0 -ggdb -avoid-version -module -Wl,--no-undefined,--as-needed -L/usr/local/lib -lfuse -pthread -L/usr/local/lib -luuid -L/usr/local/lib -lxml2 -L/usr/local/lib -licui18n -licuuc -licudata -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L../../messages -lkmi_flatfile_dat -o libkmi-flatfile.la -rpath /usr/local/lib libkmi_flatfile_la-flatfile.lo libkmi_flatfile_la-key_format_ltfs.lo ../libltfs/libltfs.la -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread )
libtool: relink: cc -shared  -fPIC -DPIC  .libs/libkmi_flatfile_la-flatfile.o .libs/libkmi_flatfile_la-key_format_ltfs.o   -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/lib -L/lib -L../../messages -lkmi_flatfile_dat -lltfs -lfuse -luuid -lxml2 -licui18n -licuuc -licudata -lnetsnmpmibs -lnetsnmpagent -lm -lkvm -ldevstat -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -llibltfs_dat -linternal_error_dat -ltape_common_dat -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread  -O2 -fstack-protector-strong -O2 -fstack-protector-strong -fstack-protector-strong -g -O2 -O0 -ggdb -Wl,--no-undefined -Wl,--as-needed -pthread -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE   -pthread -Wl,-soname -Wl,libkmi-flatfile.so -o .libs/libkmi-flatfile.so
libtool: install: /usr/bin/install -c .libs/libkmi-flatfile.soT /usr/local/lib/libkmi-flatfile.so
libtool: install: /usr/bin/install -c .libs/libkmi-flatfile.lai /usr/local/lib/libkmi-flatfile.la
make  install-exec-hook
mkdir -p /usr/local/lib/ltfs
for f in libkmi-simple.la libkmi-flatfile.la; do rm -f /usr/local/lib/$f; done
for f in libkmi-simple libkmi-flatfile; do mv /usr/local/lib/$f* /usr/local/lib/ltfs; done
Making install in iosched
 ../../build-aux/install-sh -c -d '/usr/local/lib'
 /bin/sh ../../libtool --tag=disable-static  --mode=install /usr/bin/install -c   libiosched-fcfs.la libiosched-unified.la '/usr/local/lib'
libtool: warning: relinking 'libiosched-fcfs.la'
libtool: install: (cd /root/ltfs/src/iosched; /bin/sh "/root/ltfs/libtool"  --tag CC --tag disable-static --mode=relink cc -Wall -Wsign-compare -fsigned-char -I/usr/local/include/fuse -D_FILE_OFFSET_BITS=64 -I/usr/local/include/uuid -I/usr/local/include -I/usr/local/include/libxml2 -DU_DISABLE_RENAMING=1 -I/usr/local/include -D ENABLE_SNMP -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -Ufreebsd12 -Dfreebsd12=freebsd12 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/usr/local/lib/perl5/5.32/mach/CORE -I/usr/include -I. -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=0 -O0 -ggdb -avoid-version -module -Wl,--no-undefined,--as-needed -L/usr/local/lib -lfuse -pthread -L/usr/local/lib -luuid -L/usr/local/lib -lxml2 -L/usr/local/lib -licui18n -licuuc -licudata -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L../../messages/ -liosched_fcfs_dat -o libiosched-fcfs.la -rpath /usr/local/lib libiosched_fcfs_la-fcfs.lo ../libltfs/libltfs.la -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread )
libtool: relink: cc -shared  -fPIC -DPIC  .libs/libiosched_fcfs_la-fcfs.o   -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/lib -L/lib -L../../messages/ -liosched_fcfs_dat -lltfs -L../../messages -lfuse -luuid -lxml2 -licui18n -licuuc -licudata -lnetsnmpmibs -lnetsnmpagent -lm -lkvm -ldevstat -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -llibltfs_dat -linternal_error_dat -ltape_common_dat -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread  -O2 -fstack-protector-strong -O2 -fstack-protector-strong -fstack-protector-strong -g -O2 -O0 -ggdb -Wl,--no-undefined -Wl,--as-needed -pthread -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE   -pthread -Wl,-soname -Wl,libiosched-fcfs.so -o .libs/libiosched-fcfs.so
libtool: install: /usr/bin/install -c .libs/libiosched-fcfs.soT /usr/local/lib/libiosched-fcfs.so
libtool: install: /usr/bin/install -c .libs/libiosched-fcfs.lai /usr/local/lib/libiosched-fcfs.la
libtool: warning: relinking 'libiosched-unified.la'
libtool: install: (cd /root/ltfs/src/iosched; /bin/sh "/root/ltfs/libtool"  --tag CC --tag disable-static --mode=relink cc -Wall -Wsign-compare -fsigned-char -I/usr/local/include/fuse -D_FILE_OFFSET_BITS=64 -I/usr/local/include/uuid -I/usr/local/include -I/usr/local/include/libxml2 -DU_DISABLE_RENAMING=1 -I/usr/local/include -D ENABLE_SNMP -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -pipe -I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing -std=c99 -Ufreebsd12 -Dfreebsd12=freebsd12 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/usr/local/lib/perl5/5.32/mach/CORE -I/usr/include -I. -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=0 -O0 -ggdb -avoid-version -module -Wl,--no-undefined,--as-needed -L/usr/local/lib -lfuse -pthread -L/usr/local/lib -luuid -L/usr/local/lib -lxml2 -L/usr/local/lib -licui18n -licuuc -licudata -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L/usr/lib -lm -lkvm -ldevstat -L/lib -L/usr/local/lib -L/usr/local/lib -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -L../../messages/ -liosched_unified_dat -o libiosched-unified.la -rpath /usr/local/lib libiosched_unified_la-unified.lo libiosched_unified_la-cache_manager.lo ../libltfs/libltfs.la -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread )
libtool: relink: cc -shared  -fPIC -DPIC  .libs/libiosched_unified_la-unified.o .libs/libiosched_unified_la-cache_manager.o   -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/lib -L/lib -L../../messages/ -liosched_unified_dat -lltfs -L../../messages -lfuse -luuid -lxml2 -licui18n -licuuc -licudata -lnetsnmpmibs -lnetsnmpagent -lm -lkvm -ldevstat -lnetsnmp -lcrypto -lelf -lpkg -lssp_nonshared -lregex -llibltfs_dat -linternal_error_dat -ltape_common_dat -lexecinfo -lmt -lbsdxml -lcam -lrt -lpthread  -O2 -fstack-protector-strong -O2 -fstack-protector-strong -fstack-protector-strong -g -O2 -O0 -ggdb -Wl,--no-undefined -Wl,--as-needed -pthread -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE   -pthread -Wl,-soname -Wl,libiosched-unified.so -o .libs/libiosched-unified.so
libtool: install: /usr/bin/install -c .libs/libiosched-unified.soT /usr/local/lib/libiosched-unified.so
libtool: install: /usr/bin/install -c .libs/libiosched-unified.lai /usr/local/lib/libiosched-unified.la
make  install-exec-hook
mkdir -p /usr/local/lib/ltfs
for f in libiosched-fcfs.la libiosched-unified.la; do rm -f /usr/local/lib/$f; done
for f in libiosched-fcfs libiosched-unified; do mv /usr/local/lib/$f* /usr/local/lib/ltfs; done
Making install in utils
 ../../build-aux/install-sh -c -d '/usr/local/bin'
  /bin/sh ../../libtool   --mode=install /usr/bin/install -c mkltfs ltfsck '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/mkltfs /usr/local/bin/mkltfs
libtool: install: /usr/bin/install -c .libs/ltfsck /usr/local/bin/ltfsck
 ../../build-aux/install-sh -c -d '/usr/local/bin'
 /usr/bin/install -c ltfs_ordered_copy '/usr/local/bin'
 ../build-aux/install-sh -c -d '/usr/local/bin'
  /bin/sh ../libtool   --mode=install /usr/bin/install -c ltfs '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/ltfs /usr/local/bin/ltfs
 ../build-aux/install-sh -c -d '/usr/local/include/ltfs'
 ../build-aux/install-sh -c -d '/usr/local/include/ltfs/tape_drivers'
 /usr/bin/install -c -m 644  tape_drivers/ibm_tape.h tape_drivers/spc_op_codes.h tape_drivers/ssc_op_codes.h tape_drivers/tape_drivers.h '/usr/local/include/ltfs/tape_drivers'
 ../build-aux/install-sh -c -d '/usr/local/include/ltfs/libltfs/arch'
 /usr/bin/install -c -m 644  libltfs/arch/signal_internal.h libltfs/arch/arch_info.h libltfs/arch/time_internal.h '/usr/local/include/ltfs/libltfs/arch'
 ../build-aux/install-sh -c -d '/usr/local/include/ltfs/libltfs'
 /usr/bin/install -c -m 644  libltfs/dcache_ops.h libltfs/iosched_ops.h libltfs/kmi_ops.h libltfs/ltfs_fsops.h libltfs/tape_ops.h libltfs/ltfs_error.h libltfs/ltfs.h libltfs/ltfslogging.h libltfs/ltfstrace.h libltfs/ltfs_types.h libltfs/ltfs_thread.h libltfs/ltfs_locking.h libltfs/ltfs_locking_old.h libltfs/ltfs_locking_new.h libltfs/queue.h libltfs/uthash.h libltfs/uthash_ext.h libltfs/plugin.h libltfs/tape.h '/usr/local/include/ltfs/libltfs'
Making install in conf
 ../build-aux/install-sh -c -d '/usr/local/etc'
 /usr/bin/install -c -m 644 ltfs.conf '/usr/local/etc'
mkdir -p "/usr/local/etc"
if [ ! -f "/usr/local/etc/ltfs.conf.local" ]; then  cp ltfs.conf.local "/usr/local/etc/ltfs.conf.local";  fi
Making install in init.d
if [ ! -d "/usr/local/share/ltfs" ]; then  mkdir -p "/usr/local/share/ltfs";  fi ; if [ ! -f "/usr/local/share/ltfs/ltfs" ]; then  install -m 755 ltfs "/usr/local/share/ltfs/ltfs";  fi
Making install in man
 ../build-aux/install-sh -c -d '/usr/local/man/man1'
 /usr/bin/install -c -m 644 ltfs_ordered_copy.1 '/usr/local/man/man1'
 ../build-aux/install-sh -c -d '/usr/local/man/man8'
 /usr/bin/install -c -m 644 mkltfs.8 ltfsck.8 ltfs-sde.8 '/usr/local/man/man8'
if [ ! -d /usr/local/lib/pkgconfig ]; then  mkdir -p /usr/local/lib/pkgconfig;  fi
cp ./ltfs.pc /usr/local/lib/pkgconfig/
 build-aux/install-sh -c -d '/usr/local/include/ltfs'
 /usr/bin/install -c -m 644  config.h '/usr/local/include/ltfs/.'

#

xosevp commented 3 years ago

Did you apply this (UNTESTED) patch: https://paste.debian.net/plain/1198106

It is NOT included in the ltfs repository.

do: $ patch -p1 < 1198106 recompile it and run:# ltfs -o device_list

ia2115 commented 3 years ago

nope doesnt work on freebsd 12.2 wiped it all, git cloned https://github.com/LinearTapeFileSystem/ltfs.git and applied patch

ltfs -o device_list

LTFS9015W Setting the locale to 'en_US.UTF-8'. If this is wrong, please set the LANG environment variable before starting ltfs.
190de LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
190de LTFS14058I LTFS Format Specification version 2.4.0.
190de LTFS14104I Launched by "ltfs -o device_list".
190de LTFS14105I This binary is built for FreeBSD.
190de LTFS14106I GCC version is FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2).
190de LTFS17087I Kernel version: FreeBSD 12.2-STABLE r369131 GENERIC
.
190de LTFS17085I Plugin: Loading "cam" tape backend.
Tape Device list:.

no device found

from var/log/messages

May 21 10:55:33 pzfjails kernel: sa0 at mps0 bus 0 scbus0 target 83 lun 0
May 21 10:55:33 pzfjails kernel: sa0: <TANDBERG LTO-6 HH 3579> Removable Sequential Access SPC-4 SCSI device
May 21 10:55:33 pzfjails kernel: sa0: Serial Number HUJ527449P
May 21 10:55:33 pzfjails kernel: sa0: 600.000MB/s transfers
May 21 10:55:33 pzfjails kernel: sa0: Command Queueing enabled
xosevp commented 3 years ago

Do other LTO tape drive models work?

Also, you can try the stable branch: git clone -b v2.4-stable https://github.com/LinearTapeFileSystem/ltfs.git or git checkout v2.4-stable# on a downloaded repo

And recompile it again with the TANDBERG patch.

piste-jp commented 3 years ago

I think the drive list logic of the cam tape backend has a problem.

But you already know the device file of the drive. I think you can try ltfs -o devname=/dev/sa0, the open logic looks it just try to open the device file.

ia2115 commented 3 years ago

it does try to do something, but not quiet the right thing: this is done with a lto6 tape, who i read/write on debian test earlyer, will now see if lto5 tape does same kind of error in Tandberg tapedrive on FreeBSD 12.2

# ltfs -o devname=/dev/sa0 /mnt/lto6
LTFS9015W Setting the locale to 'en_US.UTF-8'. If this is wrong, please set the LANG environment variable before starting ltfs.
190e0 LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
190e0 LTFS14058I LTFS Format Specification version 2.4.0.
190e0 LTFS14104I Launched by "ltfs -o devname=/dev/sa0 /mnt/lto6".
190e0 LTFS14105I This binary is built for FreeBSD.
190e0 LTFS14106I GCC version is FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2).
190e0 LTFS17087I Kernel version: FreeBSD 12.2-STABLE r369131 GENERIC
.
190e0 LTFS14063I Sync type is "time", Sync time is 300 sec.
190e0 LTFS17085I Plugin: Loading "cam" tape backend.
190e0 LTFS17085I Plugin: Loading "unified" iosched backend.
190e0 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
190e0 LTFS31223I Opening a device through CAM driver (/dev/sa0)
190e0 LTFS31228I Product ID is 'LTO-6 HH'
190e0 LTFS31229I Vendor ID is TANDBERG
190e0 LTFS31232I Firmware revision is 3579
190e0 LTFS31233I Drive serial is HUJ527449P
190e0 LTFS17160I Maximum device block size is 131072.
190e0 LTFS11330I Loading cartridge.
190e0 LTFS11332I Load successful.
190e0 LTFS31213I Error on modeselect: (pass18:mps0:0:83:0): MODE SELECT(10). CDB: 55 00 00 00 00 00 00 00 30 00
(pass18:mps0:0:83:0): CAM status: SCSI Status Error
(pass18:mps0:0:83:0): SCSI status: Check Condition
(pass18:mps0:0:83:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass18:mps0:0:83:0): Command byte 1 bit 4 is invalid
 (-20501) HUJ527449P
190e0 LTFS17103E Cannot set PEWS: Mode Select for Device Configuration Extension failed (-20501).
190e0 LTFS17157I Changing the drive setting to write-anywhere mode.
190e0 LTFS11005I Mounting the volume.
190e0 LTFS31213I Error on modeselect: (pass18:mps0:0:83:0): MODE SELECT(10). CDB: 55 00 00 00 00 00 00 00 20 00
(pass18:mps0:0:83:0): CAM status: SCSI Status Error
(pass18:mps0:0:83:0): SCSI status: Check Condition
(pass18:mps0:0:83:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass18:mps0:0:83:0): Command byte 1 bit 4 is invalid
 (-20501) HUJ527449P
190e0 LTFS12031E Cannot set compression: backend call failed (-20501).
190e0 LTFS11010E Cannot read volume: failed to set medium compression.
190e0 LTFS14013E Cannot mount the volume.
190e0 LTFS31213I Error on modeselect: (pass18:mps0:0:83:0): MODE SELECT(10). CDB: 55 00 00 00 00 00 00 00 30 00
(pass18:mps0:0:83:0): CAM status: SCSI Status Error
(pass18:mps0:0:83:0): SCSI status: Check Condition
(pass18:mps0:0:83:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass18:mps0:0:83:0): Command byte 1 bit 4 is invalid
 (-20501) HUJ527449P
190e0 LTFS17155E Cannot set WRITE MODE: Mode Select for Device Configuration Extension failed (-20501).
190e0 LTFS31213I Error on modesense: (pass18:mps0:0:83:0): MODE SENSE(10). CDB: 5a 00 24 00 00 00 00 00 28 00
(pass18:mps0:0:83:0): CAM status: SCSI Status Error
(pass18:mps0:0:83:0): SCSI status: Check Condition
(pass18:mps0:0:83:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass18:mps0:0:83:0): Command byte 2 bit 5 is invalid
 (-20501) HUJ527449P
ia2115 commented 3 years ago

trying to format lto5 tape in Tandberg lto6 drive gives this output:

# mkltfs -d /dev/sa0
LTFS9015W Setting the locale to 'en_US.UTF-8'. If this is wrong, please set the LANG environment variable before starting mkltfs.
LTFS15000I Starting mkltfs, LTFS version 2.5.0.0 (Prelim), log level 2.
LTFS15041I Launched by "mkltfs -d /dev/sa0".
LTFS15042I This binary is built for FreeBSD.
LTFS15043I GCC version is FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2).
LTFS17087I Kernel version: FreeBSD 12.2-STABLE r369131 GENERIC
.
LTFS15003I Formatting device '/dev/sa0'.
LTFS15004I LTFS volume blocksize: 524288.
LTFS15005I Index partition placement policy: None.

LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x801ff6000).
LTFS17085I Plugin: Loading "cam" tape backend.
LTFS31223I Opening a device through CAM driver (/dev/sa0)
LTFS31228I Product ID is 'LTO-6 HH'
LTFS31229I Vendor ID is TANDBERG
LTFS31232I Firmware revision is 3579
LTFS31233I Drive serial is HUJ527449P
LTFS17160I Maximum device block size is 131072.
LTFS11330I Loading cartridge.
LTFS11332I Load successful.
LTFS31213I Error on modeselect: (pass18:mps0:0:83:0): MODE SELECT(10). CDB: 55 00 00 00 00 00 00 00 30 00
(pass18:mps0:0:83:0): CAM status: SCSI Status Error
(pass18:mps0:0:83:0): SCSI status: Check Condition
(pass18:mps0:0:83:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass18:mps0:0:83:0): Command byte 1 bit 4 is invalid
 (-20501) HUJ527449P
LTFS17103E Cannot set PEWS: Mode Select for Device Configuration Extension failed (-20501).
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS15049I Checking the medium (mount).
LTFS31213I Error on modeselect: (pass18:mps0:0:83:0): MODE SELECT(10). CDB: 55 00 00 00 00 00 00 00 20 00
(pass18:mps0:0:83:0): CAM status: SCSI Status Error
(pass18:mps0:0:83:0): SCSI status: Check Condition
(pass18:mps0:0:83:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass18:mps0:0:83:0): Command byte 1 bit 4 is invalid
 (-20501) HUJ527449P
LTFS12031E Cannot set compression: backend call failed (-20501).
LTFS11010E Cannot read volume: failed to set medium compression.
LTFS31213I Error on modeselect: (pass18:mps0:0:83:0): MODE SELECT(10). CDB: 55 00 00 00 00 00 00 00 30 00
(pass18:mps0:0:83:0): CAM status: SCSI Status Error
(pass18:mps0:0:83:0): SCSI status: Check Condition
(pass18:mps0:0:83:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass18:mps0:0:83:0): Command byte 1 bit 4 is invalid
 (-20501) HUJ527449P
LTFS17155E Cannot set WRITE MODE: Mode Select for Device Configuration Extension failed (-20501).
LTFS31213I Error on modesense: (pass18:mps0:0:83:0): MODE SENSE(10). CDB: 5a 00 24 00 00 00 00 00 28 00
(pass18:mps0:0:83:0): CAM status: SCSI Status Error
(pass18:mps0:0:83:0): SCSI status: Check Condition
(pass18:mps0:0:83:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(pass18:mps0:0:83:0): Command byte 2 bit 5 is invalid
 (-20501) HUJ527449P
LTFS15023I Formatting failed.
ia2115 commented 3 years ago

will try switch to the stable branch, and patch the tandberg data into that and see what will happend

ia2115 commented 3 years ago

Freebsd 12.2 on 2.4.0 stable it seems to not work both IBM drive and my Tandberg

# ltfs -o device_list
LTFS9015W Setting the locale to 'en_US.UTF-8'. If this is wrong, please set the LANG environment variable before starting ltfs.
18d91 LTFS14000I LTFS starting, LTFS version 2.4.3.2 (Prelim), log level 2.
18d91 LTFS14058I LTFS Format Specification version 2.4.0.
18d91 LTFS14104I Launched by "ltfs -o device_list".
18d91 LTFS14105I This binary is built for FreeBSD.
18d91 LTFS14106I GCC version is FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2).
18d91 LTFS17087I Kernel version: FreeBSD 12.2-STABLE r369131 GENERIC
.
18d91 LTFS17085I Plugin: Loading "cam" tape backend.
Tape Device list:.
Device Name = sa0, Vendor ID = IBM, Product ID = ULTRIUM-HH5, Serial Number = 9068020986, Product Name =[ULTRIUM-HH5].
root@pzfjails:~ # ltfs -o devname=/dev/sa0 /mnt/lto5
LTFS9015W Setting the locale to 'en_US.UTF-8'. If this is wrong, please set the LANG environment variable before starting ltfs.
18ea2 LTFS14000I LTFS starting, LTFS version 2.4.3.2 (Prelim), log level 2.
18ea2 LTFS14058I LTFS Format Specification version 2.4.0.
18ea2 LTFS14104I Launched by "ltfs -o devname=/dev/sa0 /mnt/lto5".
18ea2 LTFS14105I This binary is built for FreeBSD.
18ea2 LTFS14106I GCC version is FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2).
18ea2 LTFS17087I Kernel version: FreeBSD 12.2-STABLE r369131 GENERIC
.
18ea2 LTFS14063I Sync type is "time", Sync time is 300 sec.
18ea2 LTFS17085I Plugin: Loading "cam" tape backend.
18ea2 LTFS17085I Plugin: Loading "unified" iosched backend.
18ea2 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
18ea2 LTFS31223I Opening a device through CAM driver (/dev/sa0)
18ea2 LTFS31228I Product ID is 'ULTRIUM-HH5'
18ea2 LTFS31229I Vendor ID is IBM
18ea2 LTFS31232I Firmware revision is C7R3
18ea2 LTFS31233I Drive serial is 9068020986
18ea2 LTFS17160I Maximum device block size is 131072.
18ea2 LTFS11330I Loading cartridge.
18ea2 LTFS31272I Logical block protection is disabled
18ea2 LTFS11332I Load successful.
18ea2 LTFS17157I Changing the drive setting to write-anywhere mode.
18ea2 LTFS11005I Mounting the volume.
18ea2 LTFS31272I Logical block protection is disabled
18ea2 LTFS11011E Cannot read volume: block size is 524288, but the device only supports a block size of 131072.
18ea2 LTFS14013E Cannot mount the volume.
18ea2 LTFS31272I Logical block protection is disabled
root@pzfjails:~ # mkltfs -d /dev/sa0
LTFS9015W Setting the locale to 'en_US.UTF-8'. If this is wrong, please set the LANG environment variable before starting mkltfs.
LTFS15000I Starting mkltfs, LTFS version 2.4.3.2 (Prelim), log level 2.
LTFS15041I Launched by "mkltfs -d /dev/sa0".
LTFS15042I This binary is built for FreeBSD.
LTFS15043I GCC version is FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2).
LTFS17087I Kernel version: FreeBSD 12.2-STABLE r369131 GENERIC
.
LTFS15003I Formatting device '/dev/sa0'.
LTFS15004I LTFS volume blocksize: 524288.
LTFS15005I Index partition placement policy: None.

LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x801ff6000).
LTFS17085I Plugin: Loading "cam" tape backend.
LTFS31223I Opening a device through CAM driver (/dev/sa0)
LTFS31228I Product ID is 'ULTRIUM-HH5'
LTFS31229I Vendor ID is IBM
LTFS31232I Firmware revision is C7R3
LTFS31233I Drive serial is 9068020986
LTFS17160I Maximum device block size is 131072.
LTFS11330I Loading cartridge.
LTFS31272I Logical block protection is disabled
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS15049I Checking the medium (mount).
LTFS31272I Logical block protection is disabled
LTFS11011E Cannot read volume: block size is 524288, but the device only supports a block size of 131072.
LTFS31272I Logical block protection is disabled
LTFS15023I Formatting failed.
ia2115 commented 3 years ago
mt -f /dev/sa0.ctl status -v
Drive: sa0: <IBM ULTRIUM-HH5 C7R3> Serial Number: 9068020986
---------------------------------
Mode      Density              Blocksize      bpi      Compression
Current:  0x58:LTO-5           variable       384607   enabled (0x1)
---------------------------------
Current Driver State: at rest.
---------------------------------
Partition:   0      Calc File Number:   0     Calc Record Number: 0
Residual:    0  Reported File Number:   0 Reported Record Number: 0
Flags: BOP
---------------------------------
Tape I/O parameters:
  Maximum I/O size allowed by driver and controller (maxio): 131072 bytes
  Maximum I/O size reported by controller (cpi_maxio): 4722688 bytes
  Maximum block size supported by tape drive and media (max_blk): 8388608 bytes
  Minimum block size supported by tape drive and media (min_blk): 1 bytes
  Block granularity supported by tape drive and media (blk_gran): 0 bytes
  Maximum possible I/O size (max_effective_iosize): 131072 bytes

Seems i have at least one problem on my freebsd atm, the maximum io size beeing to low. trying to investigate on how i can provice the amount needed for operation.

ia2115 commented 3 years ago

trying to mount tape on tandberg, with no tape in drive:

# ltfs /mnt/lto5
LTFS9015W Setting the locale to 'en_US.UTF-8'. If this is wrong, please set the LANG environment variable before starting ltfs.
18974 LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
18974 LTFS14058I LTFS Format Specification version 2.4.0.
18974 LTFS14104I Launched by "ltfs /mnt/lto5".
18974 LTFS14105I This binary is built for FreeBSD.
18974 LTFS14106I GCC version is FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2).
18974 LTFS17087I Kernel version: FreeBSD 12.2-STABLE r369131 GENERIC
.
18974 LTFS14063I Sync type is "time", Sync time is 300 sec.
18974 LTFS17085I Plugin: Loading "cam" tape backend.
18974 LTFS17085I Plugin: Loading "unified" iosched backend.
18974 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
18974 LTFS31223I Opening a device through CAM driver (/dev/sa0)
18974 LTFS31228I Product ID is 'LTO-6 HH'
18974 LTFS31229I Vendor ID is TANDBERG
Segmentation fault (core dumped)
ia2115 commented 3 years ago
# mt -f /dev/sa0.ctl status -v
Drive: sa0: <TANDBERG LTO-6 HH 3579> Serial Number: HUJ527449P
---------------------------------
Mode      Density              Blocksize      bpi      Compression
Current:  0x5a:LTO-6           variable       384607   enabled (0x1)
---------------------------------
Current Driver State: at rest.
---------------------------------
Partition:  -1      Calc File Number:  -1     Calc Record Number: -1
Residual:    0  Reported File Number:  -1 Reported Record Number: -1
Flags: None
---------------------------------
Tape I/O parameters:
  Maximum I/O size allowed by driver and controller (maxio): 131072 bytes
  Maximum I/O size reported by controller (cpi_maxio): 4722688 bytes
  Maximum block size supported by tape drive and media (max_blk): 0 bytes
  Minimum block size supported by tape drive and media (min_blk): 0 bytes
  Block granularity supported by tape drive and media (blk_gran): 0 bytes
  Maximum possible I/O size (max_effective_iosize): 0 bytes
ia2115 commented 3 years ago

with newest branch 2.5.0.0 and lto5 tape in tandberg.

# ltfs -o devname=/dev/sa0 /mnt/lto5
LTFS9015W Setting the locale to 'en_US.UTF-8'. If this is wrong, please set the LANG environment variable before starting ltfs.
190de LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
190de LTFS14058I LTFS Format Specification version 2.4.0.
190de LTFS14104I Launched by "ltfs -o devname=/dev/sa0 /mnt/lto5".
190de LTFS14105I This binary is built for FreeBSD.
190de LTFS14106I GCC version is FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2).
190de LTFS17087I Kernel version: FreeBSD 12.2-STABLE r369131 GENERIC
.
190de LTFS14063I Sync type is "time", Sync time is 300 sec.
190de LTFS17085I Plugin: Loading "cam" tape backend.
190de LTFS17085I Plugin: Loading "unified" iosched backend.
190de LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
190de LTFS31223I Opening a device through CAM driver (/dev/sa0)
190de LTFS31228I Product ID is 'LTO-6 HH'
190de LTFS31229I Vendor ID is TANDBERG
Segmentation fault (core dumped)
linnemannr commented 3 years ago

@ia2115 can you attach a core file? There's likely some quirk in the tandberg drive's response to a CDB that I or @kendmerry haven't seen IBM drives.

piste-jp commented 2 years ago

Close this because we don't have any activity 1 year.

Please feel free to open if you have new findings.