Thread (27 messages) 27 messages, 6 authors, 2009-08-11

Re: 2.6.31-rc1 with ide-tape / STT2000A

From: Borislav Petkov <hidden>
Date: 2009-08-09 07:28:28
Subsystem: the rest · Maintainer: Linus Torvalds

Hi,

On Sat, Aug 08, 2009 at 04:30:35PM -0400, Jim Duda wrote:
I'm having trouble using my STT2000A ATAPE TAPE drive after
upgrading to at least kernel 2.6.30.  I use the tape drive solely
for tape backup using simple tar commands.

In previous kernels, I was able to access the tape drive using the
ide-scsi adaptation layer with /dev/st0

I realize that in transitioning through 2.6.30 the kernel has
abandoned the use of ide-scsi.  As I understand it, ide-tape
interacts directly with the tape drive and I am supposed to now use
/dev/ht0.
Bartlomiej and I were working on cleaning up IDE but were interrupted
prematurely and IDE is now in deep maintenance mode. Concerning
ide-tape, the driver wasn't being used for ages and was even about to be
removed at a certain point but we decided to wait. Anyways, the driver
lost a lot of fat in the process. I even bought an STT8000A tape off
ebay just to test it here and fix it up so that it can be usable.

If you'd like to test patches you can get Dave's linux-next git repo at
http://git.kernel.org/?p=linux/kernel/git/davem/ide-next-2.6.git;a=summary

apply the patch below and catch all boot output from your machine and
send it to me.

Thanks.

--
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index 7b2032b..81181cd 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -48,7 +48,7 @@
 #include <linux/mtio.h>
 
 /* define to see debug info */
-#undef IDETAPE_DEBUG_LOG
+#define IDETAPE_DEBUG_LOG
 
 #ifdef IDETAPE_DEBUG_LOG
 #define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, ## args)
@@ -1727,6 +1727,8 @@ static void idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor)
 	int buffer_size;
 	u16 *ctl = (u16 *)&tape->caps[12];
 
+	drive->debug_mask = 0xffffffff;
+
 	ide_debug_log(IDE_DBG_FUNC, "minor: %d", minor);
 
 	drive->pc_callback = ide_tape_callback;

-- 
Regards/Gruss,
    Boris.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help