I’ve been given a patch to test. It changes the SCSI driver so that it will be slightly more like Linux and Solaris. I’m just documenting the patch process here so we can see what I’m doing, in case something goes wrong. This patch will allow us to open the tape drive, even if there is no tape, and keep querying until a tape arrives.
[root@dfc:/usr/src/sys/cam/scsi] # perl -pi -e "s:^M::g" ~dan/scsi_sa.c.diffs
[root@dfc:/usr/src/sys/cam/scsi] # patch < ~dan/scsi_sa.c.diffs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: scsi_sa.c |=================================================================== |RCS file: /home/ncvs/src/sys/cam/scsi/scsi_sa.c,v |retrieving revision 1.105 |diff -u -r1.105 scsi_sa.c |--- scsi_sa.c 1 Jul 2005 15:21:30 -0000 1.105 |+++ scsi_sa.c 4 Jan 2006 04:44:56 -0000 -------------------------- Patching file scsi_sa.c using Plan A... Hunk #1 succeeded at 44. Hunk #2 succeeded at 255 (offset -1 lines). Hunk #3 succeeded at 470 (offset -1 lines). Hunk #4 succeeded at 537 (offset -1 lines). Hunk #5 succeeded at 545 (offset -1 lines). Hunk #6 succeeded at 706 (offset -1 lines). Hunk #7 succeeded at 803 (offset -1 lines). Hunk #8 succeeded at 905 (offset -19 lines). Hunk #9 succeeded at 1020 (offset -1 lines). Hunk #10 succeeded at 1014 (offset -19 lines). Hunk #11 succeeded at 1129 (offset -1 lines). Hunk #12 succeeded at 1121 (offset -19 lines). Hunk #13 succeeded at 1154 (offset -1 lines). Hunk #14 succeeded at 1168 (offset -19 lines). Hunk #15 succeeded at 1230 (offset -1 lines). Hunk #16 succeeded at 1223 (offset -19 lines). Hunk #17 succeeded at 1265 (offset -1 lines). Hunk #18 succeeded at 3205 (offset -19 lines). Hunk #19 succeeded at 3442 (offset -1 lines). done [root@dfc:/usr/src/sys/cam/scsi] #
I’ve committed the code to the Bacula project’s test box and I’m waiting for their testing to commence.