[PATCH] st: clear ILI if Medium Error

2016-04-17 Thread Kai Makisara
Some drives set the ILI flag together with MEDIUM ERROR sense code. Clear the ILI flag in this case so that the medium error will be handled. The problem was reported by Maurizio Lombardi. Signed-off-by: Kai Mäkisara --- drivers/scsi/st.c |9 ++--- 1 file changed, 6 insertions(+), 3 dele

[PATCH] st: Fix MTMKPART to work with newer drives

2016-02-09 Thread Kai Makisara
;ofer, Michael Leodolter, Eyal Lebedinsky, Michael Schaefer, J"org Weule, and Eric Youngdale. - Copyright 1992 - 2010 Kai Makisara + Copyright 1992 - 2016 Kai Makisara email kai.makis...@kolumbus.fi Some small formal changes - aeb, 950809 @@ -17,7 +17,7 @@ Last modified: 1

RE: What partition should the MTMKPART argument specify? Was: Re: st driver doesn't seem to grok LTO partitioning

2016-02-03 Thread Kai Makisara
get your LTO drive test without my changes in to >make sure you see the same issue and then if you do test with the >changes I added above. That's just to double check that there's nothing >wrong with my setup and the code changes are required. Thanks, Kai --

RE: What partition should the MTMKPART argument specify? Was: Re: st driver doesn't seem to grok LTO partitioning

2016-01-29 Thread Kai Makisara
---8<-- --- ref/drivers/scsi/st.c 2015-12-21 18:54:05.068882001 +0200 +++ new/drivers/scsi/st.c 2016-01-29 19:12:06.139738037 +0200 @@ -9,7 +9,7 @@ Steve Hirsch, Andreas Koppenh"ofer, Michael Leodolter, Eyal Lebedinsk

RE: What partition should the MTMKPART argument specify? Was: Re: st driver doesn't seem to grok LTO partitioning

2016-01-24 Thread Kai Makisara
egative numbers. A minimal patch is needed. Thanks, Kai ---8< --- ref/drivers/scsi/st.c 2015-12-21 18:54:05.068882001 +0200 +++ new/drivers/scsi/st.c 2016-01-24 22:36:13.250928500 +0200 @@ -9,7 +9,7 @@ Steve H

Re: st driver doesn't seem to grok LTO partitioning

2016-01-04 Thread Kai Makisara
sch, Andreas Koppenh"ofer, Michael Leodolter, Eyal Lebedinsky, Michael Schaefer, J"org Weule, and Eric Youngdale. - Copyright 1992 - 2010 Kai Makisara + Copyright 1992 - 2016 Kai Makisara email kai.makis...@kolumbus.fi Some small formal changes - aeb, 950809 @@ -17,7 +17,7 @@

Re: st driver doesn't seem to grok LTO partitioning

2015-12-30 Thread Kai Makisara
ter, Eyal Lebedinsky, Michael Schaefer, J"org Weule, and Eric Youngdale. - Copyright 1992 - 2010 Kai Makisara + Copyright 1992 - 2016 Kai Makisara email kai.makis...@kolumbus.fi Some small formal changes - aeb, 950809 @@ -17,7 +17,7 @@ Last modified: 18-JAN-1998 Rich

Re: st driver doesn't seem to grok LTO partitioning

2015-12-25 Thread Kai Makisara
On Monday 2015-12-21 20:57, "Kai Mäkisara (Kolumbus)" wrote: ... >I can look at the manuals during Christmas holidays and try to think about a >suggestion. >All other suggestions are, of course, welcome. My view may be somewhat >theoretical >because I don’t have access to current hardware. > I h

Re: Open/INQUIRY fails on RESERVE'd tape device

2014-01-24 Thread kai . makisara
Matthias Eble [psychotr...@gmail.com] kirjoitti: Hi list, When a tape device is reserved with old reserve/release commands, we see inquiry only works on the scsi generic device. For scsi tape devices open() fails already: # lsscsi -g | grep st15 [2:0:6:0]tapeHP Ultrium 5-SCSI I5

Re: PATCH: st.c: Fix blk_get_queue usage

2013-11-14 Thread Kai Makisara
uld result in > put_disk() dropping a not taken reference. > > Thus, disk->queue should be set only after a successful > blk_queue_get(). > Revised patch due to a hint from Kai Makisara. > > Signed-off-by: Bodo Stroesser Acked-by: Kai Mäkisara > > --- > > --- a

Re: [PATCH v2] st: Take additional queue ref in st_probe

2013-03-05 Thread Kai Makisara
On Tue, 5 Mar 2013, Joe Lawrence wrote: > Changes from v1: > Corrected error paths as noted by Ewan Milne and Jan Vesely. > > These changes were applied to scsi.git, branch "misc". This patch > fixes a reference count bug in the SCSI tape driver which can be > reproduced with the following: >

Re: [PATCHv2] st: remove st_mutex

2012-09-23 Thread Kai Makisara
On Mon, 10 Sep 2012, Lee Duncan wrote: > From: Hannes Reinecke > > The st_mutex was created when the BKL was removed, and > prevents simultaneous st_open calls. It is better to > protect just the necessary data. > > Signed-off-by: Hannes Reinecke > Reviewed-by: Lee Duncan Acked-by: Kai Mäkis

Re: [patch 0/5] st: Clean up and raise max device limit (v4)

2012-08-20 Thread Kai Makisara
On Sat, 18 Aug 2012, Jeff Mahoney wrote: > This patchset cleans up the SCSI tape device handling code and leverages it > to lift the limitation of the number of tape drives from the previous > arbitrary limit of 128 to the maximum supported by a device node that > creates 8 character devices per p

Re: request size limit in scsi tape driver

2012-08-20 Thread Kai Makisara
On Mon, 20 Aug 2012, Olaf Hering wrote: > > Currently the st driver does not to break up write requests into smaller > chunks to satisfy the ->max_hw_sectors limit of the underlying host driver. > > # modprobe -v scsi_debug ptype=1 opts=1 dev_size_mb=123 > # dd if=/dev/zero of=/dev/st0 bs=$((1

Re: [PATCH] st: unblock concurrent access in st_open()

2012-08-15 Thread Kai Makisara
On Wed, 15 Aug 2012, Hannes Reinecke wrote: > st_open() is taking a global mutex 'st_mutex' to protect > against concurrent calls to st_open(). However, as > st_open() might take quite some time before returning, > _any_ open to _any_ st device will be blocked during > that time. > > Seeing that

[PATCH 2/2] SCSI tape: show options currently set in sysfs

2008-02-24 Thread Kai Makisara
MTIOCTOP ioctl (defined in include/linux/mtio.h). For example: > cat /sys/class/scsi_tape/nst0/options 0x0d07 Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> --- The patch is against Feb 24 git version of 2.6.25-rc2. Candidate for inclusion into 2.6.26. Documentation/scsi/st.t

[PATCH 1/2] SCSI tape: add option to use SILI in variable block reads

2008-02-24 Thread Kai Makisara
for every block speeds up some real applications considerably. Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> --- The patch is against Feb 24 git version of 2.5.25-rc2. Candidate for inclusion into 2.6.26. Documentation/scsi/st.txt |7 ++- drivers/scsi/st.c

[PATCH] SCSI st: compile fix when DEBUG set to one

2008-02-22 Thread Kai Makisara
Remove the now useless counting of adjacent pages from the debugging code in to make it compile when DEBUG is set non-zero. Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> --- The patch does not touch any code compiled when DEBUG is zero and is suitable for 2.5.25. drivers/scsi/st.c

Re: (fwd) Bug#11922: I/O error on blank tapes

2008-02-20 Thread Kai Makisara
On Wed, 20 Feb 2008, John LLOYD wrote: > > > > On Mon, 4 Feb 2008, James Bottomley wrote: > > > > > > > > On Mon, 2008-02-04 at 22:28 +0100, Borislav Petkov wrote: ... > > > > > This does still occur with 2.6.22; with a blank tape in my HP > DDS-4 drive: > > > > > > > > > > $ tar tzvf /dev/ns

Re: (fwd) Bug#11922: I/O error on blank tapes

2008-02-10 Thread Kai Makisara
On Tue, 5 Feb 2008, Kai Makisara wrote: > On Mon, 4 Feb 2008, James Bottomley wrote: > > > > > On Mon, 2008-02-04 at 22:28 +0100, Borislav Petkov wrote: > > > On Mon, Feb 04, 2008 at 03:22:06PM +0100, maximilian attems wrote: > > > > > > (Ad

Re: (fwd) Bug#11922: I/O error on blank tapes

2008-02-05 Thread Kai Makisara
On Mon, 4 Feb 2008, James Bottomley wrote: > > On Mon, 2008-02-04 at 22:28 +0100, Borislav Petkov wrote: > > On Mon, Feb 04, 2008 at 03:22:06PM +0100, maximilian attems wrote: > > > > (Added Bart to CC) > > > > > hello borislav, > > > > > > may i forward you that *old* Debian kernel bug, > > >

[PATCH] SCSI st : convert to unlocked_ioctl

2008-01-17 Thread Kai Makisara
Convert st to unlocked_ioctl. The necessary locking was already in place. Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> --- The patch is against 2.6.24-rc8. drivers/scsi/st.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) --- linux-2.6/drivers/scsi/st.c 2007-12-20

Re: 2.6.24-rc5: tape drive not responding

2007-12-18 Thread Kai Makisara
h=acdd0b1c371b2fbb4b6110a51ba69cb0af9e6f45 > I have done some tests. Firstly, I did not see the BUG with 2.6.24-rc5. Looking at include/linux/scatterlist.h suggested that CONFIG_DEBUG_SG has something to do with this. When enabled SG debugging, I also saw the BUG. Adding this patch solved the

Re: LTO-3 read performance issues

2007-11-07 Thread Kai Makisara
On Wed, 7 Nov 2007, James Pearson wrote: > I have two LTO-3 (QUANTUM ULTRIUM 3) drives attached to a dual Adaptec U160 > controller (one per SCSI host) on a Dell PE2850 running a RHEL4 based kernel > (2.6.9 based). > > I'm trying to read (with tar) LTO-3 tapes written on another system (possibly

Re: [PATCH 3/5] Use mutex instead of semaphore in the SCSI Tape driver

2007-07-30 Thread Kai Makisara
On Sun, 29 Jul 2007, Matthias Kaehlcke wrote: > The SCSI Tape driver uses a semaphore as mutex. Use the mutex API > instead of the (binary) semaphore. > > Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> > Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> Thanks

Re: aic7xxx: tape always rewinds since linux-2.6.15

2007-07-17 Thread Kai Makisara
On Tue, 17 Jul 2007, Frank Hempel wrote: > Hello, > > I have expierenced a problem with the aic7xxx driver or the scsi tape support > in the linux kernel. > > [Problem Description] > Under linux kernels since 2.6.15 every "action" I issue to the tape drive (I > mainly do this via from the cpio

Re: [PATCH 00/33] SG table chaining support

2007-07-16 Thread Kai Makisara
On Mon, 16 Jul 2007, Martin K. Petersen wrote: > > "John" == John Stoffel <[EMAIL PROTECTED]> writes: > > John> Will this help out tape drive performance at all? I looked > John> through the patches quickly, esp the AIC7xxx stuff since that's > John> what I use, but nothing jumped out at me.

Re: Linux tape drivers

2007-04-04 Thread Kai Makisara
On Wed, 4 Apr 2007, Kern Sibbald wrote: > On Wednesday 04 April 2007 20:46, Kai Makisara wrote: ... > > > > c. There is a real lack of information about any error condition > > > > (read/write). One can probably get it via direct SCSI commands, > but &g

Re: Linux tape drivers

2007-04-04 Thread Kai Makisara
On Tue, 3 Apr 2007, Andrew Morton wrote: > > (cc's added, with permission) > > On Tue, 3 Apr 2007 15:08:37 +0200 > Kern Sibbald <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > I am the project manager for Bacula, an Open Source network backup program > > that runs on all popular OSes. After

Re: Fwd: kernel oops SCSI tape drive access kernel 2.6.18

2007-02-12 Thread Kai Makisara
On Mon, 12 Feb 2007, Oliver Paulus wrote: > Hello, > > I get a kernel oops if I want to read from my SCSI HP tape (C5683A) drive - > using tar command. > > Here my system information: > 1. Kernel: 2.6.18-3-vserver-amd64 > 2. OS: Debian Etch > ... > I get a kernel oops if I want to access the /d

Re: [Bugme-new] [Bug 7919] New: Tape dies if wrong block size used

2007-02-03 Thread Kai Makisara
On Sat, 3 Feb 2007, James Bottomley wrote: > On Sat, 2007-02-03 at 13:21 +0200, Kai Makisara wrote: > > This patch may also fix the bug 7900. > > > > The patch compiles and is lightly tested. > > We can give it a spin in scsi-misc ... do you want me to hold off from

Re: [Bugme-new] [Bug 7900] New: Kernel OOPS when using tape drive (compiler bug?)

2007-02-03 Thread Kai Makisara
On Mon, 29 Jan 2007, Andrew Morton wrote: > On Mon, 29 Jan 2007 17:39:25 -0800 > [EMAIL PROTECTED] wrote: > > > http://bugzilla.kernel.org/show_bug.cgi?id=7900 > > > >Summary: Kernel OOPS when using tape drive (compiler bug?) > > Kernel Version: 2.6.20-rc5 > > Status:

Re: [Bugme-new] [Bug 7919] New: Tape dies if wrong block size used

2007-02-03 Thread Kai Makisara
surfaced only after 2.6.17 although the st problem is old. There may be another bug in the block subsystem and this patch works around it. However, the patch fixes a problem in st and in this way it is a valid fix. This patch may also fix the bug 7900. The patch compiles and is lightly test

Re: [Bugme-new] [Bug 7864] New: A MTIOCTOP/MTWEOF within the early warning will cause the file number to be incorrect

2007-01-25 Thread Kai Makisara
y correct and explains the bug. According to the SCSI standards, the sense code is NO SENSE or RECOVERED ERROR in case writing filemark(s) succeeds. If it fails (partly or completely) the sense code is VOLUME OVERFLOW. The patch below is tested to fix the case when one filemark is successfully

Re: [Bugme-new] [Bug 7717] New: Tapes unreadable after unload

2006-12-20 Thread Kai Makisara
On Wed, 20 Dec 2006, Andrew Morton wrote: > > (please respond via emailed reply-to-all) > > On Wed, 20 Dec 2006 02:31:18 -0800 > [EMAIL PROTECTED] wrote: > > > http://bugzilla.kernel.org/show_bug.cgi?id=7717 > > > >Summary: Tapes unreadable after unload > > Kernel Version: test

Re: Fw: [Bugme-new] [Bug 7610] New: sense key error when sending even number of bytes to /dev/st0

2006-12-02 Thread Kai Makisara
On Fri, 1 Dec 2006, Andrew Morton wrote: > > > Begin forwarded message: > > Date: Fri, 1 Dec 2006 08:40:16 -0800 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: [Bugme-new] [Bug 7610] New: sense key error when sending even number > of bytes to /dev/st0 > > > http://bugzilla.kern

Re: Possible bug in scsi_lib.c:scsi_req_map_sg()

2006-11-27 Thread Kai Makisara
On Mon, 27 Nov 2006, Mike Christie wrote: > Mike Christie wrote: > > Boaz Harrosh wrote: > >> Playing with some tests which I admit are not 100% orthodox I have > >> stumbled upon a bug that raises a serious question: > >> > >> In the call to scsi_execute_async() in the use_sg case, must the > >>

Re: [PATCH RESEND 2/2] SCSI: add scsi_device->retries

2006-11-19 Thread Kai Makisara
On Sun, 19 Nov 2006, Tejun Heo wrote: > Add scsi_device->retries to provide generic control over command > retries, which is very similar to sdev->timeout. The initial value is > -1 and high level driver is free to override on attach if negative. > Note that -1 has the same effect as 0 (no retry)

Re: [PATCH RESEND 1/2] SCSI: use scsi_device->timeout consistently

2006-11-19 Thread Kai Makisara
On Sun, 19 Nov 2006, Tejun Heo wrote: > Each high level driver uses scsi_device->timeout diffrently. > ... > Index: scsi-misc-2.6/drivers/scsi/st.c > === > --- scsi-misc-2.6.orig/drivers/scsi/st.c > +++ scsi-misc-2.6/drivers/scsi/st.

[PATCH] SCSI tape signed/unsigned fix

2005-08-31 Thread Kai Makisara
. The new code is adapted from linux/fs/bio.c. Doug's fix is correct and simple, no question about it. I just have learned to hate these signed/unsigned comparisons where they can be avoided (having originally created this bug is one more reason ;-) Signed-off-by: Kai Makisara <[EMAIL P

Re: Fw: [Bugme-new] [Bug 5117] New: Panic when accessing scsi-tapedrives with 4G-remap

2005-08-28 Thread Kai Makisara
On Fri, 26 Aug 2005, Kai Makisara wrote: > On Thu, 25 Aug 2005, Andrew Morton wrote: > > > > > > > Begin forwarded message: > > > > Date: Tue, 23 Aug 2005 12:53:38 -0700 > > From: [EMAIL PROTECTED] > > To: [EMAIL PROTECTED] > > Subject:

Re: Process in D state with st driver

2005-08-26 Thread Kai Makisara
On Wed, 24 Aug 2005, Hans-Joachim Baader wrote: > Hi, > > > This kind of a problem of a process using a tape hanging in D state has > > occurred sometimes for numerous years. When the user has waited long > > enough (the default timeouts are lng), the process has continued. When > > st has

Re: Fw: [Bugme-new] [Bug 5117] New: Panic when accessing scsi-tapedrives with 4G-remap

2005-08-26 Thread Kai Makisara
On Thu, 25 Aug 2005, Andrew Morton wrote: > > > Begin forwarded message: > > Date: Tue, 23 Aug 2005 12:53:38 -0700 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: [Bugme-new] [Bug 5117] New: Panic when accessing scsi-tapedrives > with 4G-remap > > > http://bugzilla.kernel.org/s

Re: Process in D state with st driver

2005-08-24 Thread Kai Makisara
I am sorry that this is not a proper reply email. For some reason I did not get this email although I subscribe to linux-scsi and found this accidentally from an archive. On Wed, 24 Aug 2005 [EMAIL PROTECTED] wrote: > Hans-Joachim Baader <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > >

RE: [PATCH] drivers/scsi/st.c: add reference count and related fixes

2005-08-02 Thread Kai Makisara
async IO is issued (in case st_sleep_done is bypassed) - fix a bogus use of last_SRpnt in st_chk_result Nate Dailey Stratus Technologies Signed-off-by: Nate Dailey <[EMAIL PROTECTED]> Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> --- linux-2.6.13-rc5-k1/drivers/scsi/st.c 2005-0

[PATCH] Fix SCSI tape oops at module removal

2005-08-02 Thread Kai Makisara
class_simple_device_remove() did nothing when the class did not exist.) The patch also fixes a "class leak" in init_st() error path. I would like to get this into 2.6.13 but it may be too late? Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> --- linux-2.6.13-rc5/drivers/scsi/st.c 2005-06-30 21:27:51

Re: [PATCH] drivers/scsi/st.c: add command and sense history

2005-07-27 Thread Kai Makisara
The following comments are based on looking at the patch, not testing it. The tape devices do not provide much information about problems via the normal API: mostly it just tells that something went wrong. The driver prints the sense data to the kernel log but this information may not be accessibl

RE: [PATCH] drivers/scsi/st.c: add reference count and related fixes

2005-07-12 Thread Kai Makisara
On Tue, 12 Jul 2005, Dailey, Nate wrote: > I'll try porting my changes to a recent kernel, verify that the bugs I > found are still bugs, and get back to you with a new patch. > > In the meantime, responses to your comments: > > - using a new kref in the scsi_tape structure: I've given this some

Re: [PATCH] drivers/scsi/st.c: add reference count and related fixes

2005-07-07 Thread Kai Makisara
On Thu, 7 Jul 2005, Brian King wrote: > Kai Makisara wrote: > >>The primary change is adding a kref to the Scsi_Tape structure, to avoid > >>an oops when the tape drive is removed while open. This includes > >>scsi_tape_get/put routines and scsi_tape_release,

Re: [PATCH] drivers/scsi/st.c: add reference count and related fixes

2005-07-07 Thread Kai Makisara
This is an area where st can be improved. I am happy to see that people (probably) having resources to test the changes are working on this. On Tue, 5 Jul 2005, Dailey, Nate wrote: > These patches (against a 2.6.9 kernel, Redhat AS 4) for st add a > reference count, and fix a few bugs I hit duri

Re: [PATCH] drivers/scsi/st.c: decrement in_use under the lock in st_open

2005-04-21 Thread Kai Makisara
On Thu, 21 Apr 2005, Nate Dailey wrote: > Hi, this patch changes the err_out case in st_open to decrement STp->in_use > under the st_dev_arr_lock. > > I'm just basing this on looking at the code (I didn't run into an actual > problem here), but it seems like the right thing to do; st_open and

Re: [PATCH scsi-misc-2.6 08/08] scsi: fix hot unplug sequence

2005-03-25 Thread Kai Makisara
On Fri, 25 Mar 2005, James Bottomley wrote: > On Fri, 2005-03-25 at 14:38 +0900, Tejun Heo wrote: > > We have users of scsi_do_req() other than scsi_wait_req() and they > > use different done() functions to do different things. I've checked > > other done functions and none uses contents inside

Re: [PATCH 1/2] SCSI tape fixes (new version): sense descriptor init, bsf->weof, blkno, debugging

2005-03-15 Thread Kai Makisara
On Tue, 15 Mar 2005, James Bottomley wrote: > On Sat, 2005-03-12 at 19:04 +0200, Kai Makisara wrote: > > This is an updated version of the patch I sent March 7. The sense descriptor > > initialization has been made lighter. > > > > The patch at the end of this message

[RFC 2][PATCH] Statistics for SCSI tapes

2005-03-13 Thread Kai Makisara
does not count the partitions separately. Sebastien Godard, the systat maintainer, has expressed his interest into adding support for the tape statistics to systat. Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> --- linux-2.6.11-bk7-k4/drivers/scsi/st.c 2005-03-13 19:24:29.000

[PATCH 3/2] SCSI tape security: require CAP_ADMIN for SG_IO etc.

2005-03-13 Thread Kai Makisara
access and that have security problems with the current command filtering. This patch solves the problem for tapes and no more elaborate patches are needed. Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> --- linux-2.6.11-bk7-k3/drivers/scsi/st.c 2005-03-12 18:11:11.0

[PATCH 2/2] SCSI tape fixes: remove f_pos handling

2005-03-12 Thread Kai Makisara
This patch applies over the previous patch in this thread. The patch removes updating filp->f_pos. It has been dead code since 2.6.8 and nobody has missed it. Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> --- linux-2.6.11-bk7-k2/drivers/scsi/st.c 2005-03-12 13:52:30.000

[PATCH 1/2] SCSI tape fixes (new version): sense descriptor init, bsf->weof, blkno, debugging

2005-03-12 Thread Kai Makisara
printout of spacing counts fixed to work also with 64-bit systems Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> --- linux-2.6.11-bk7-k1/drivers/scsi/st.c 2005-03-12 13:38:32.0 +0200 +++ linux-2.6.11-bk7-k2/drivers/scsi/st.c 2005-03-12 13:52:30.0 +0200 @@ -17,7

[PATCH] SCSI tape fixes: sense descriptor init, bsf->weof, blkno, debugging

2005-03-07 Thread Kai Makisara
writing of filemark if the previous operation was write (tar expects this) - the block number is set to unknown (-1) if spacing forward ends at BLANK CHECK - debugging printout of spacing counts fixed to work also with 64-bit systems Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> ---

Re: [patch 02/11] scsi/st: replace schedule_timeout() with msleep_interruptible()

2005-03-07 Thread Kai Makisara
On Sun, 6 Mar 2005 [EMAIL PROTECTED] wrote: > > > Use msleep_interruptible() instead of > schedule_timeout() to guarantee the task delays as expected. > This patch is already in the scsi-misc-2.6 tree merged into one of the st patches. Thanks for the reminder and the patch. -- Kai - To unsu

Re: 2.6.10-rc4 tape slow after switch Fusion MPT to Megaraid

2005-02-27 Thread Kai Makisara
On Fri, 25 Feb 2005, Gerhard Schneider wrote: > On Thu, 2005-02-24 at 23:00 +0200, Kai Makisara wrote: > > > > > > Sounds strange but the following things come into my mind: > > - Check from the dmesg output and/or system logs what SCSI transfer > > settings th

Re: Problem with tape drive: illegal seek

2005-02-26 Thread Kai Makisara
On Sat, 26 Feb 2005, Christian Iversen wrote: > > Whenever I use --verify for tar, I get problems. Specifically, I get > "Illegal seek" when tar gets to the verify phase. > I looked at tar 1.13.25 sources and this looks like a tar bug: verify from tape does not work for the first file (and I

Re: 2.6.10-rc4 tape slow after switch Fusion MPT to Megaraid

2005-02-24 Thread Kai Makisara
On Wed, 23 Feb 2005, Gerhard Schneider wrote: > > Kernel: 2.6.10-rc4 w/ 3 tape patches from Kai Makisara > > SCSI: 53C1030 controller, tape drive is on one channel of the > controller. > > Tape: Overland Changer w/ Seagate LTO-1 drive > Typical transfer speed: 12

[RFC,PATCH] Statistics for SCSI tapes

2005-02-22 Thread Kai Makisara
driver compiles, did not crash the system and produced reasonable looking numbers. Signed-off-by: Kai Makisara <[EMAIL PROTECTED]> --- linux-2.6.11-rc4-k2/drivers/scsi/st.c 2005-02-20 22:22:51.0 +0200 +++ linux-2.6.11-rc4-k3/drivers/scsi/st.c 2005-02-21 22:07:32.0

[PATCH] SCSI tape: write filemark before rewind etc. when writing

2005-02-22 Thread Kai Makisara
change makes sure that the last file on the tape is properly terminated with a filemark and reading the file does not fail at the end. The patch is against 2.6.11-rc4 + the descriptor based sense data patch I sent to linux-scsi on Feb 13. Signed-off-by: Kai Makisara <[EMAIL PROTEC

[PATCH] SCSI tape descriptor based sense data support

2005-02-13 Thread Kai Makisara
behavior. The patch is against 2.6.11-rc4 and has been tested to some extent. The patch also includes the msleep_interruptible change from from kernel janitors. Thanks to Doug Gilbert for doing a first version of this sense data conversion. Signed-off-by: Kai Makisara <[EMAIL PROTEC

Re: Fwd: Multi tape problems with cpio

2005-01-20 Thread Kai Makisara
On Wed, 19 Jan 2005, Tape Help wrote: > On Wed, 19 Jan 2005 20:50:32 +0200 (EET), Kai Makisara ... > > I will forward this analysis (with a preface) to the cpio maintainers. > > > > -- > > Kai > > > > Are the cpio maintainers on a list? > I would like

Re: Fwd: Multi tape problems with cpio

2005-01-19 Thread Kai Makisara
On Tue, 18 Jan 2005, Tape Help wrote: > Ok, I have the debug info, with comments where needed. > Thanks alot! > ... > # find home -depth|cpio -o --format=newc --block-size=128 -F /dev/st0 > 14:24:48 kernel: st0: Block limits 1 - 16777215 bytes. > 14:24:48 kernel: st0: Mode sense. Length 11, mediu

Re: Fwd: Multi tape problems with cpio

2005-01-16 Thread Kai Makisara
On Sat, 15 Jan 2005, Tape Help wrote: > No one on linux-tape has responded. I think that list is dead. > Can anyone help? > linux-tape may not be dead but you have to give us some time ;-) > Thanks. > > -- Forwarded message -- > From: Tape Help <[EMAIL PROTECTED]> > Date: Fri,

RE: Module unloading problems with hybrid scsi/block driver

2001-07-20 Thread Kai Makisara
On Thu, 19 Jul 2001, Cameron, Steve wrote: ... > Or, is this just normal behavior for linux for now? That is, one > cannot expect to be able to safely rmmod a low-level scsi driver > in 100% of the attempts? > I don't think what you see is normal. The high level SCSI drivers increment the module

Re: Problem with SCSI-Tapes under 2.4.4

2001-05-16 Thread Kai Makisara
On Tue, 15 May 2001, John Lange wrote: > Just joined the list so I apologize if this has already been addressed. > > Ever since I upgraded my kernel to 2.4.4 from 2.4.2, it will no longer > recognize my Onstream ADR50 tape drive. > > When I downgrade my kernel back to 2.4.2, it again works perfec

Re: Zero Copy IO

2001-04-09 Thread Kai Makisara
This answer is longish and I send this only to linux-scsi to save linux-kernel bandwidth. On Sun, 8 Apr 2001, Alex Q Chen wrote: > I am trying to find a way to pin down user space memory from kernel, so > that these user space buffer can be used for direct IO transfer or > otherwise known as "ze

Re: SG 2.1.39 locks up

2001-01-28 Thread Kai Makisara
On Sat, 27 Jan 2001, Ken Bass wrote: > I am really stuck. I'm using the /dev/sg driver in cooperation with the > /dev/st driver. > I am using fwrite to the /dev/st device to write data to a tape. Every 10 > seconds, the same task, uses /dev/sg to request a LOG SENSE. I'm trying to > monitor the d