From: Borislav Petkov <petkovbb@googlemail.com>
To: Jim Duda <jim@duda.tzo.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: 2.6.31-rc1 with ide-tape / STT2000A
Date: Sun, 9 Aug 2009 09:28:23 +0200 [thread overview]
Message-ID: <20090809072823.GA2130@liondog.tnic> (raw)
In-Reply-To: <h5kn9c$51r$1@ger.gmane.org>
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.
next prev parent reply other threads:[~2009-08-09 7:28 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-08 20:30 2.6.31-rc1 with ide-tape / STT2000A Jim Duda
2009-08-08 20:59 ` Robert Hancock
2009-08-08 21:44 ` Jim Duda
2009-08-09 16:58 ` Alan Cox
2009-08-09 19:47 ` Jim Duda
2009-08-09 20:21 ` Alan Cox
2009-08-09 20:25 ` Jim Duda
2009-08-09 20:58 ` Alan Cox
2009-08-09 22:27 ` Bartlomiej Zolnierkiewicz
2009-08-10 17:21 ` Alan Cox
2009-08-10 19:48 ` Bartlomiej Zolnierkiewicz
2009-08-10 21:20 ` Alan Cox
2009-08-10 21:42 ` Bartlomiej Zolnierkiewicz
2009-08-11 0:40 ` Jim Duda
2009-08-09 7:28 ` Borislav Petkov [this message]
2009-08-09 22:51 ` Jim Duda
2009-08-09 23:32 ` Jim Duda
2009-08-10 0:01 ` Jim Duda
2009-08-10 2:28 ` Jim Duda
2009-08-10 22:10 ` Jim Duda
2009-08-10 22:36 ` Alan Cox
2009-08-10 23:07 ` Jim Duda
2009-08-10 23:21 ` Jim Paris
2009-08-10 23:34 ` Jim Duda
2009-08-11 9:37 ` Alan Cox
2009-08-11 4:33 ` Borislav Petkov
2009-08-11 11:25 ` Jim Duda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090809072823.GA2130@liondog.tnic \
--to=petkovbb@googlemail.com \
--cc=jim@duda.tzo.com \
--cc=linux-ide@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.