Menu

#14 Make mtx.c arguments and functions non static

open
nobody
None
9
2018-07-20
2018-07-20
No

Hello,
As all finctions in mtx.c are static it is impossible to build the library to make function callable from applications. Use of mtx as a command line tool has very big disatvantages as the size of the tape library grows. It takes much longer time to start mtx (due to inquiry of the whole tape library) then mount and dismount tapes, which significantly hurts performance. I have changed static definitions of mtx.c functions and arguments and tried it with TS4500 media changer doing direct calls of mtx functions, and had a very good result. Our TS4500 library if a full configuration with 10000 tape slots and 36 tape drive slots. The media changer application is implemented in python with SWIG intergace to modified mtx. The only otre chage is "return" stament in place of "exit" in mtxl.c to not bump out the app in case of error. I made 2 new files which are copies of mtx.c and mtxl.c. I can submit them for your revew, just let me know.
Thanks,
Alexander

Discussion


Log in to post a comment.