Reference implementation of the LTFS format Spec for stand alone tape drive
Switch branches/tags
Clone or download
piste-jp-ibm Handle an error at readpos after locate correctly (#85)
* Fix error handling of readpos after locate
Latest commit b0aa449 Oct 14, 2018

Linear Tape File System (LTFS)

Linear Tape File System (LTFS) is a filesystem to mount a LTFS formatted tape in a tape drive. Once LTFS mounts a LTFS formatted tape as filesystem, user can access to the tape via filesystem API.

Objective of this project is being the reference implementation of the LTFS format Specifications in SNIA (

At this time, the LTFS format specifications 2.4 is the target. The LTFS format specification 2.4 is now under public review (

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.


  • Linux

    • automake 1.13.4 or later
    • autoconf 2.69 or later
    • libtool 2.4.2 or later
    • fuse 2.6.0 or later
    • uuid 1.36 or later (Linux)
    • libxml-2.0 2.6.16 or later
    • net-snmp 5.3 or later
    • icu4c 4.8 or later
  • OSX (macOS)

    Following packages on homebrew

    • automake
    • autoconf
    • libtool
    • osxfuse (brew cask install osxfuse)
    • ossp-uuid
    • libxml2
    • icu4c
    • gnu-sed
  • FreeBSD:

    • FreeBSD 10.2 or 11.0 or later (for sa(4) driver changes)
    • automake
    • autoconf
    • libtool
    • fusefs-libs
    • net-snmp
    • e2fsprogs-libuuid
    • libxml2
    • icu

Supported Tape Drives

Vendor Drive Type Minimum F/W Level
IBM TS1140 3694
IBM TS1150 None
IBM TS1155 None


Build and install on Linux

make install

./configure --help shows various options for build and install.

IBM lin_tape driver support

You need to add --enable-lintappe as an argument of ./configure script if you want to build the backend for lin_tape. You also need to add DEFAULT_TAPE=lin_tape if you set the lin_tape backend as default backend.

Buildable distributions

Dist Arch Status
RHEL 7 x86_64 OK
RHEL 7 ppc64le OK
CentOS 7 x86_64 OK
CentOS 7 ppc64le Probably OK
Fedora 28 x86_64 OK
Ubuntu 16.04 LTS x86_64 OK
Debian 9.5 x86_64 NG
ArchLinux 2018.08.01 x86_64 OK

In Debian9 (stretch), ICU 57.1 is used but the command genrb in this version causes crach while creating a resource bundle of LTFS. It is clearly a bug of ICU package and this problem was fixed into ICU 60 at least. May be we need to wait Debian10 (buster) because ICU 60 is used in Debian10 at this time (in the test phase of Debian10).

Build and install on OSX (macOS)

Before build on OSX (macOS), some include path adjustment is required.

brew link --force icu4c
brew link --force libxml2

On OSX (macOS), snmp cannot be supported, you need to disable it on configure script. And may be, you need to specify LDFLAGS while running configure script to link some required frameworks, CoreFundation and IOKit.

LDFLAGS="-framework CoreFoundation -framework IOKit" ./configure --disable-snmp
make install

./configure --help shows various options for build and install.

Buildable systems

OS Xcode Package system Status
macOS 10.13 9.4.1 Homebrew OK

Build and install on FreeBSD

Note that on FreeBSD, the usual 3rd party man directory is /usr/local/man. configure defaults to using /usr/local/share/man. So, override it on the command line to avoid having man pages put in the wrong place.

./configure --prefix=/usr/local --mandir=/usr/local/man
make install

Buildable versions

Version Arch Status
11 x86_64 OK

Next Step

Goto Wiki and enjoy the LTFS.


Please read for details on our code of conduct, and the process for submitting pull requests to us.


This project is licensed under the BSD License - see the LICENSE file for details