IBM lin_tape source code

hmmm

Newcomer
Joined
Sep 3, 2007
Messages
1
Reaction score
0
Points
0
Hello all,

After some reading i came across with the information that there are two possible drivers available for managing IBM tape libraries under Linux. One is the IBMTape driver, which according to the docs is the most mature driver and is closed source, and then there is a new(er) one, called lin_tape which is supposed to be open-source.

Having to try an install on a non-supported distribution, i got very excited with these news, but unfortunatly i can't seem to find the source code for the lin_tape driver anywhere, so that i can compile against a non RH/SLES "factory" kernel.

Can anyone please point me out where i can find the source code for lin_tape?

Just for the record, the follwing text is from the IBM_Tape_Driver_IUG.pdf, available at ftp://ftp.software.ibm.com/storage/devdrvr/Doc.

"The lin_tape device driver is the new device driver for the Linux 2.6 kernels to replace the closed-source driver IBMtape."

It even has its own index entry in that document.

"Open Source Device Driver - lin_tape . . . . .118"

Kind regards,

Hugo Monteiro.
 
Last edited:
From the lin_tape readme
To build the lin_tape device driver from sources, first install the
source rpm package. Then, from the /usr/src/packages/SPEC or
/usr/src/redhat/SPEC directory, issue the following command:
rpmbuild -bb lin_tape.spec
The binary rpm will be in the RPMS directory of the parent directory.
When building the binary driver package, the closed-source daemon
for the current platform will be included in the binary rpm package.

Modified versions of the driver are not supported by IBM. The source
rpm package can be down loaded from this web site:
https://www14.software.ibm.com/webapp/iwm/web/pick.do?source=lstdd

I built my lin_tape from source and works well. There is a known issue where you will see dsmserv page allocation messages in /var/log/messages however as per IBM this is not an error.
 
build lin_tape driver from source ended with errors

build lin_tape on SLES10 :

rpmbuild -bb lin_tape.spec :


make KERNEL=2.6.16.46-0.12-default compileclean lin_tape.ko
make[1]: Entering directory `/usr/src/packages/BUILD/lin_tape-1.15.0'
rm -f *.o
export PWD
make -C /lib/modules/2.6.16.46-0.12-default/build SUBDIRS=/usr/src/packages/BUILD/lin_tape-1.15.0 PWD=/usr/src/packages/BUILD/lin_tape-1.15.0 modules
make: *** /lib/modules/2.6.16.46-0.12-default/build: No such file or directory. Stop.
make: Entering an unknown directorymake: Leaving an unknown directorymake[1]: *** [lin_tape.ko] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/lin_tape-1.15.0'
make: *** [bldtmp/lin_tape-2.6.16.46-0.12-default.ko] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.9119 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.9119 (%build)


in /lib/modules/2.6.16.46-0.12-default there is only 1 subdir kernel


Must the subdir build be created manually before ?
 
created the build subdir before the rpmbuild : ==> next error

make -C /lib/modules/2.6.16.46-0.12-default/build SUBDIRS=/usr/src/packages/BUILD/lin_tape-1.15.0 PWD=/usr/src/packages/BUILD/lin_tape-1.15.0 modules
make[2]: Entering directory `/lib/modules/2.6.16.46-0.12-default/build'
make[2]: *** No rule to make target `modules'. Stop.
make[2]: Leaving directory `/lib/modules/2.6.16.46-0.12-default/build'
make[1]: *** [lin_tape.ko] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/lin_tape-1.15.0'
make: *** [bldtmp/lin_tape-2.6.16.46-0.12-default.ko] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.67463 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.67463 (%build)
 
Hi,

According to the documentation, type rpmbuild --rebuild <rpm package (latest 1.27)>

I have RHEL5 64 bit.. worked fine

Jane
 
Back
Top