8c055fd8ded26ba758eba5bff36577ece7f8d417
[debian/mtx] / CHANGES
1 CHANGES, mtx 1.2.16:
2 - Fix a very special case that ADIC loaders presented to element status
3   parser
4 - Fix a buffer overflow w/some weird hardware, courtesy of Lars
5   Fredricksen
6 - Make version number include a "rel" so that the rpm will overrride  
7   a "pre" version's rpm, i.e., --version will  say "mtx 1.2.16rel". 
8 - Added TapeChanger Perl package for use with Amanda to the contrib
9   directory (see http://www.killfile.org/~tskirvin/software/tapechanger.html )
10   courtesy of Tim Skirvin. 
11 - Fixed spec file that was broken by 1.2.15 :-(, courtesy of Kenneth
12   Porter
13
14 CHANGES, mtx 1.2.15:
15 - Some Solaris fixes, courtesy of Matt Ward
16 - Fix URL in .spec file
17
18 CHANGES, mtx 1.2.14:
19 - Fix so it'll work if 0 is result of SCSI open (e.g., in cron jobs on Linux)
20 - Move changelog to end of .spec file for easier reading
21 - Added a bit of text to beginning of COMPATIBILITY file
22
23 CHANGES, mtx 1.2.13:
24 - Fixed some autoloader bugs w/autoloaders that don't report an arm. 
25 - Fixed barcode backoff.
26 - Added "nobarcode" option
27 - Increased timeout for 'mtx inventory' to 30 minutes
28   (note: may increase this even more if needed, please let me know!)
29 - Shortened timeout for 'mtx inquiry' to 30 seconds
30 - tapeinfo now prints SCSI ID/LUN info if available (only on Linux at the
31   moment, sigh). 
32 - update documentation w/new email addresses, updated compile directions,
33   various fixes. 
34
35 CHANGES, mtx 1.2.12:
36 - Fix FreeBSD compile bugs
37 - Fix SGI compile bugs
38 - Add HP/UX port (I hope!), courtesy of William Smith. 
39 - Re-wrote ReadElementStatus to make work for %!@# brain dead firmware that
40   reports non-existent drives (I hope!). Also has side-effect of now working
41   with multiple-arm libraries (though it only sees first arm!).
42 - Cleaned up all -Wall messages.
43 - Cleaned up Linux Sparc, installs loaderinfo.1, courtesy of Matt Dainty.
44 - tapeinfo now reports status of CheckUnitReady.  
45 - tapeinfo no longer puts out Block Position if CheckUnitReady says 'no'.
46 - tapeinfo now puts out Density Code and Medium Type/Not Loaded (modification
47     of patches sent in by Bob Rahe)
48
49 CHANGES, mtx 1.2.11:
50 - Added a GNU autoconf Makefile.in (still provide a Makefile for your use)
51   *WARNING* autoconf is not yet working on all supported OS's! You may need
52   to do the old-fashioned 'edit Makefile' bit!
53 - Changed mtx.h and mtxl.c to include and define various things based upon
54   what features autoconf detected (e.g., if 'camlib.h', use FreeBSD-style
55   'cam', if 'scsi/sg.h' use Linux-style 'sg', etc.). If I ever port to a
56   Unix that has same SCSI interface as one of the existing ports, autoconf
57   will handle it without me having to add another set of #if's or #ifdefs. 
58 - Went ahead and tossed mtxctl into contrib.
59 - In 'tapeinfo', skip \0 characters in serial numbers (some use \0 
60   terminator, some do not, skip it if this one does). 
61 - in 'tapeinfo', dump out the block position and (if at BOP) the "BOP: Yes"
62   flag. Also dump out other info such as block limits. 
63 - Put file 'sparc-patch1' contributed by Chaskiel M Grundman, and applied
64   it (sigh)
65 - Added tapeinfo.py to 'contrib' directory
66 - Updated mtx.py in 'contrib' directory
67 - Created 'loaderinfo' program to report some misc. info about loaders.
68 - Created 'scsitape' program so that I don't have to keep messing with
69   #@$%@! tape ioctls on the various Unixes that I'm porting tape software
70   to.  (But see the warnings!).
71 - Applied the Solaris patch to the read_element_status command (sigh). 
72 - Added timeout adjustment to the SCSI subsystem. 
73 - WARNING: DIGITAL UNIX AND VMS ARE PROBABLY IRREPERABLY BROKEN, due to the
74   timeout changes to the SCSI subsystem. If anybody wishes to fix them,
75   feel free to send me patches. 
76 - added contrib program "mtx-changer" (an Amanda tape changer script for
77   ?Solaris? that uses mtx rather than stc)
78 - Jiggered Linux SCSI module for smarter error conditions handling (there are
79   some error conditions that are normal for READ of tape drives).
80 - Added contrib program "config_sgen_solaris.sh" which should ease 
81   setting up the 'sgen' driver on Solaris 8 (still no easy Solaris 7 or
82   below config). 
83
84 CHANGES, mtx 1.2.10:
85 - Added FAQ and COMPATIBILITY (feel free to send me patches to these files!)
86 - Added LICENSE
87 - Added serial number to 'tapeinfo' output. 
88 - Fixed stupid syntax error in mtx.c (compiled with gcc, not with others!)
89 - Fixed spec file for building rpms (maybe).
90 - Added an 'erase' command (undocumented) for use on Linux for doing
91   short erases on tapes (the Linux device driver defaults to a long erase). 
92 - Made mtx inventory return an error code if the inventory
93   fails, so that we can wait for inventory to be completed at system
94   startup for libraries that auto-inventory (sigh). 
95
96 CHANGES, mtx 1.2.9:
97 - Added an 'eject' command that, if directed to a tape drive, will eject the
98   tape, and for some autoloaders, if directed to LUN 1, will eject the entire
99   magazine.
100 - Fixed the 'transfer' command to be 1 based rather than 0 based (sigh)
101 - Now properly reports bar code for the tape that's in the tape drive.
102 - Added some miscellaneous Python and Perl scripts to 'contrib'. Thanks
103   to Frank Samuelson for the Perl scripts. 
104
105 CHANGES, mtx 1.2.8:
106 - Spec file has been changed to use the "portable" patch supplied by Red
107   Hat so it should work on Linux Alpha and Linux SPARC too... maybe...
108 - Now will accept 4-byte element status for most element types, despite fact
109   that these don't comply with SCSI standards :-(. This should make many
110   older changers work, including HP optical changers. 
111 - Fixed PeripheralDeviceType table, courtesy of Rob Turk.
112 - Now looks for CHANGER environment variable if a device is not specified
113   on the command line. If can't find CHANGER, then tries TAPE environment
114   variable.
115 - Properly sets TransportElementAddress in the CDB for the MOVE MEDIUM command
116   with what was discovered via the READ_ELEMENT_STATUS command, rather
117   than setting them to zero (SCSI spec says that zero should be the default
118   arm, but at least one changer out there didn't like it). 
119 - Added a '--version' command (sigh). 
120 - Added an 'inventory' command for Breece Hill libraries that don't 
121   automatically do an inventory at powerup. 
122
123 CHANGES, mtx 1.2.7:
124 - Fixed problem w/single drive Exabyte 220 reporting element status data for
125   both drives (sigh).
126 - some general cleanup in the barcode fallback code (what a cruft!). Discovered
127   that ADIC DAT AUTOCHANGER does not work w/mtx because it produces
128   gibberish (will apparently only produce one element status page per request).
129 - Fixed the RPM .spec file to have updated file locations, doc locations.
130 - Fixed MoveMedium to say 'Output' for direction, to make it work with
131   Solaris 8     
132 - Some changes to the Solaris low-level module to report more errors (though
133    it still doesn't work as well as the Linux low-level module). Should now
134    work properly with Solaris 2.6/7/8. (Solaris changes courtesy of Richard
135    Fish of Enhanced Software Technologies). 
136
137 CHANGES, mtx 1.2.6:
138 - Fixed 'eepos' stuff to use | rather than || (whoops!)
139 - Accept a 4-byte element descriptor for the robot arm for certain older
140   autochangers. 
141
142 CHANGES, mtx 1.2.5: 
143 - Added 'noattach' command. If on command line prior to other commands, forces
144   them to use the regular SCSI changer API rather than the _ATTACHED API,
145   no matter what the _ATTACHED bit in the Inquiry page said. 
146 - Created 'tapeinfo' program.
147
148 CHANGES, mtx 1.2.4:
149 - Major overhaul of element guts to dynamically allocate the arrays
150   using the result of a MODE_SENSE on the Element Address Assignment
151   Page. If mtx 1.2.3 works for you and mtx 1.2.4 does NOT work for you, 
152   please un-comment the '#define DEBUG_MODE_SENSE' in file 'mtxl.c' and 
153   EMAIL me the results.
154
155 CHANGES, mtx 1.2.3:
156 - Fixed the source storage element number stuff (again, sigh)
157 - Because of above fix, 'next' etc. ought to work right again.
158
159 CHANGES, mtx 1.2.2:
160 - Fixed that it was saying everything was an Import/Export element (oops!)
161 - Properly update the Import/Export element count.
162
163 CHANGES, mtx 1.2.1:
164 - Now explicitly output that a Storage element is in fact an Import/Export
165   element.
166 - Added 'transfer' command to transfer between two Storage elements (so that
167   you can get a tape to an Import/Export element.
168 - Added 'eepos' command for controlling tray retraction on the Breecehill
169   import/export trays. (Works with "load" and "unload" commands too, though
170   that is not documented on "mtx -h"). 
171
172 CHANGES, mtx 1.2.0:
173 - Re-numbered now that Leonard has asked me to take over maintenance of the
174   'mtx' program.
175 - Temporarily treat Import/Export elements the same as Storage elements. Need
176   to fix this eventually so that the GUI knows what kind of element we're
177   talking about. 
178 - Removed quotes from the source element # to make it easier to parse
179   from Perl or Python (just do a split on spaces). 
180 - Added sample program, 'mam2debug', showing how to use mtxl library for
181   your own programs (this happens to dump the Exabyte Mammoth 2's internal 
182   debug buffer to a file, using the Mammoth2-specific SCSI commands to do so).
183
184 CHANGES, mtxl 1.4.8:
185 - Whoops, report logical rather than physical when I have to scan for
186   open slots :-).
187
188 CHANGES, mtxl 1.4.7:
189 - Update comment to reflect mtxl 1.4.6 stuff :-).
190 - Fix the part of the code that scans for open slots as sources for media.
191
192 CHANGES, mtxl 1.4.6:
193 - Don't use _ATTACHED interface if it reports itself as a Medium Changer!
194
195 CHANGES, mtxl 1.4.5:
196 - Changed "whoops" compile error on Linux (teach me to release w/o testing on
197   the most popular platform!)
198 - Changed declarations to remove compile-time warnings.
199
200 CHANGES, mtxl 1.4.4:
201 - Added support for FreeBSD. (uses pass device, NOT native FreeBSD ch device).
202 - Change all 'int' DeviceFD to DEVICE_TYPE DeviceFD. Note that SGI and FreeBSD
203   use a struct * to access the CAM SCSI layer, rather than a file fd. 
204 - Fixed goof where I'd hard-wired max # of elements to 127 for testing
205   purposes (it should be sum of MAX_STORAGE_ELEMENTS + MAX_TRANSFER_ELEMENTS 
206   + MAX_TRANSPORT_ELEMENTS from mtx.h -- change those if you need more
207   elements, bearing in mind that the code for ReadElementStatus in
208   mtxl.c maxes out at 255 elements unless you fix that too).
209 - Cleaned some cruft out of the MOVE_MEDIUM code.
210 - Must have GNU Make to process Makefile. In reality, I don't know of
211   any machine where we voluntarily use the native 'make' command, because
212   a) there's a half dozen native 'make' all with their own perverted
213   syntaxes, and b) most of them are brain dead beyond belief. 
214
215 CHANGES, mtxl 1.4.3:
216 - Do an INQUIRY prior to doing a MOVE_MEDIUM or READ_ELEMENT_STATUS so that I
217   can detect the MChanger bit and use MOVE_MEDIUM_ATTACHED or
218   READ_ELEMENT_STATUS_ATTACHED commands instead. 
219 - Successfully tested with dual drives!
220 - first, next, last now working 
221 - Created a man page
222 - Created a 'make install', edit Makefile to alter destinations. 
223
224 CHANGES, mtxl 1.4.2:
225 - Found the problem with the DAT changer! It was burping on the 
226   'bar code' bit... so I intercept that sense key, re-issue w/out the
227   'bar code' bit, and success!
228 - Added a 'TODO' file...
229
230 CHANGES, mtxl 1.4.1:
231 - Added 'invert' qualifier to 'load' and 'unload' commands to invert
232   the media (for HP optical jukeboxes). Type './mtx' by itself to 
233   see the syntax.
234 - Figured out why my code wasn't properly detecting errors --
235   turns out the 'sg' device can return ok
236   status even when there is sense data to be reported!
237 - Still to fix: *still* isn't working right with my Seagate 
238   6-tape DDS-4 DAT changer... also need to put the
239   second drive into the Exabyte 220 to make sure the dual-drive stuff 
240   works properly (!). 
241
242 CHANGES, mtxl 1.4:
243 - Have now tested the barcode (volume tag) stuff. It works! (Well, there was
244 an index-by-one problem that I had to squash, but after that...)
245 - Changed to use SCSI Generic device API on Linux rather than 
246 SCSI_IOCTL_SEND_COMMAND API, which cut things off at 4095 bytes on i386
247 Linux. 
248 - Added a bunch of debugging output that needs to be ripped out :-(. 
249 Make sure you remove the -DDEBUG from the Makefile, and probably
250    -DLONG_PRINT_REQUEST_SENSE too (unless you LIKE sense results that make
251 sense!) 
252 - Still have annoying bug on Linux of only reading 1st 16 bytes of sense
253 data. Alas, this appears to be a problem in the Linux 2.2 kernel, not in
254 anything that we're doing :-(. Hmm... cdrecord has the same problem, Mr.
255 Schilling says he's been saying it's a problem since 1997. Sigh. 
256 - Still need to test the dual-drive stuff!
257
258 CHANGES, mtxl 1.3:
259 - Hacked in the barcode (volume tag) stuff. NEED SOMEONE TO TEST
260 WHETHER IT WORKS!
261 - started issuing redundant initial READ_ELEMENT_STATUS with Allocation Length
262 of 8 in order to get a BYTE_COUNT_OF_REPORT_AVAILABLE in order to calculate a
263 better Allocation Length for the "real" READ_ELEMENT_STATUS. Trying to send a
264 query to a small 6-tape changer with an Allocation Length suited for a 
265 200-element tape library was resulting in some errors and lockups on the
266 part of the tape changer device.
267 - first, last, next, previous are STILL broken. Sorry :-(. 
268
269 CHANGES, mtxl 1.2:
270
271 - Changed many output messages to make them more easily parsed by
272 scripts written in awk/perl/python
273 - Extracted out a library of SCSI tape library routines usable by "C"
274 programs (must be GPL'ed). Extensive re-arranging of code.
275 - Added support for multiple drives.
276 - Started adding support for tape changers that use the "MCHangr" 
277 bit rather than a separate ID or LUN.
278 - Increased limits so we could deal with LARGE tape libraries.
279 - Started adding support for barcode readers in said tape libraries
280 - broke first, last, next, previous. Sorry :-(. 
281 - Added ability to chain commands on command line. Thus could say 'mtx -f
282 /dev/sg4 unload 4 0 load 7 0' to unload a tape from drive 0 and load the
283 tape in slot 7 into drive 0. 
284
285