1. Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING) Click the link to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This message will disappear after you have made at least 12 posts. Thank you for your cooperation.

IBM lin_tape source code

Discussion in 'Tape / Media Library' started by hmmm, Sep 3, 2007.

  1. hmmm

    hmmm New Member

    Joined:
    Sep 3, 2007
    Messages:
    1
    Likes Received:
    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: Sep 3, 2007
  2.  
  3. denisl

    denisl New Member

    Joined:
    Sep 12, 2002
    Messages:
    116
    Likes Received:
    0
    From the lin_tape readme
    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.
     
  4. tsmfreak

    tsmfreak New Member

    Joined:
    Jul 4, 2007
    Messages:
    59
    Likes Received:
    0
    Location:
    Basel
    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 ?
     
  5. tsmfreak

    tsmfreak New Member

    Joined:
    Jul 4, 2007
    Messages:
    59
    Likes Received:
    0
    Location:
    Basel
    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)
     
  6. janecb

    janecb New Member

    Joined:
    Oct 21, 2002
    Messages:
    46
    Likes Received:
    0
    Location:
    Northeast
    Hi,

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

    I have RHEL5 64 bit.. worked fine

    Jane
     
: lin_tape

Share This Page