Skip to contentSkip to conversation

osst upgrade to 0.99.3

PATCH In review Willem Riede 2 participants 3 messages Jan 2, 2005 – Jan 12, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 osst upgrade to 0.99.3

In a series of three mails, I'll present changes I'd like to see made to the osst driver in the linux-2.6.11 pre-series.

Patch 1 (below) will make style changes that are the equivalent of recent changes to st, such as using 'struct osst_tape' where we used to have 'OS_Scsi_Tape' as a typedef. Osst behavior is not affected by this first patch.

Patch 2 (sent separately) contains important error handling improvements that I've made as the result of problem reports.

Patch 3 (again separate) adds sysfs support to osst. This enables hotplug and udev to manage the osst /dev nodes, which is a real necessity on installations that use a dynamic /dev, such as Fedora Core 3.

Thanks, Willem Riede, osst maintainer.

osst.h renamed from drivers/scsi/osst.h +6 -6
@@ -1,5 +1,5 @@
 /*
- *	$Header: /cvsroot/osst/Driver/osst.h,v 1.14 2003/12/14 14:34:38 wriede Exp $
+ *	$Header: /cvsroot/osst/Driver/osst.h,v 1.16 2005/01/01 21:13:35 wriede Exp $
  */
 
 #include <asm/byteorder.h>
@@ -508,7 +508,7 @@
 //#define OSST_MAX_SG      2
 
 /* The OnStream tape buffer descriptor. */
-typedef struct {
+struct osst_buffer {
   unsigned char in_use;
   unsigned char dma;	/* DMA-able buffer */
   int buffer_size;
@@ -525,16 +525,16 @@
   unsigned short sg_segs;      /* number of segments in s/g list                  */
   unsigned short orig_sg_segs; /* number of segments allocated at first try       */
   struct scatterlist sg[1];    /* MUST BE last item                               */
-} OSST_buffer;
+} ;
 
 /* The OnStream tape drive descriptor */
-typedef struct {
+struct osst_tape {
   struct scsi_driver *driver;
   unsigned capacity;
   Scsi_Device* device;
   struct semaphore lock;       /* for serialization */
   struct completion wait;      /* for SCSI commands */
-  OSST_buffer * buffer;
+  struct osst_buffer * buffer;
 
   /* Drive characteristics */
   unsigned char omit_blklims;
@@ -623,7 +623,7 @@
   unsigned char last_sense[16];
 #endif
   struct gendisk *drive;
-} OS_Scsi_Tape;
+} ;
 
 /* Values of write_type */
 #define OS_WRITE_DATA      0
osst.c renamed from drivers/scsi/osst.c +247 -246

1,002 lines not on this page · raw message

#1 lore raw
Quoted 3 lines · Willem Riede

In a series of three mails, I'll present changes I'd like to see
made to the osst driver in the linux-2.6.11 pre-series.

All three patches were hopelessly mangled by your email client:

70 out of 70 hunks FAILED -- saving rejects to file drivers/scsi/osst.c.rej osst-style-changes does not apply

Please sort out your email client and send the patches to yourself to test that they still apply.

When resending please ensure that the patch headers are in `-p1' form:

--- osst-patches/osst.h 2005-01-01 19:15:32.700230984 -0500
+++ /home/wriede/SfOsstCVS/Driver26/osst.h 2005-01-01 16:13:35.000000000 -0500

Things like the above will not apply to anyone's tree without jumping through hoops.

Also, please don't send multiple patches under the same Subject:.

See http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt, thanks.

#2 lore raw
Quoted 9 lines · Andrew Morton
Quoted 3 lines · Willem Riede

In a series of three mails, I'll present changes I'd like to see
made to the osst driver in the linux-2.6.11 pre-series.

All three patches were hopelessly mangled by your email client:

70 out of 70 hunks FAILED -- saving rejects to file drivers/scsi/osst.c.rej osst-style-changes does not apply

I'm confused - James Bottomley pulled those patches into scsi-bk from my mails, and they are present in 2.6.10-mm1...

Quoted 2 lines

When resending please ensure that the patch headers are in `-p1' form:
Also, please don't send multiple patches under the same Subject:.

James Bottomley chastised me for that too, so I solemny swear never to make that mistake again :-)

Regards, Willem Riede.