pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/amanda-server Add SDLT320 to the list of driv...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2901d41d861b
branches:  trunk
changeset: 481386:2901d41d861b
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Sun Oct 03 09:19:16 2004 +0000

description:
Add SDLT320 to the list of drives using DLT4000Eject()
Do not pass the element descriptor size to SCSI_ReadElementStatus();
SCSI_ReadElementStatus() will then issue a SC_COM_RES to know how much space
it needs to allocate, then issue a second one with the proper size.
Fix problems with newer changers, which returns a descriptor status larger
than sizeof(DataTransferElementDescriptor_T).
These changes makes the Overland neo2000/SDLT320 work with amanda.
Ride the libtool PKGREVISION bump.

diffstat:

 sysutils/amanda-server/distinfo         |   4 +-
 sysutils/amanda-server/patches/patch-ae |  63 ++++++++++++++++++++++++++++++--
 2 files changed, 61 insertions(+), 6 deletions(-)

diffs (93 lines):

diff -r 0f80a664c7f9 -r 2901d41d861b sysutils/amanda-server/distinfo
--- a/sysutils/amanda-server/distinfo   Sun Oct 03 04:24:20 2004 +0000
+++ b/sysutils/amanda-server/distinfo   Sun Oct 03 09:19:16 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2004/05/12 18:45:25 bouyer Exp $
+$NetBSD: distinfo,v 1.6 2004/10/03 09:19:16 bouyer Exp $
 
 SHA1 (amanda-2.4.4p2.tar.gz) = c14510260941a3915f4068e6b7e3f91698ab099e
 Size (amanda-2.4.4p2.tar.gz) = 1263075 bytes
@@ -6,7 +6,7 @@
 SHA1 (patch-ab) = 19121fbc6ccc05b6e07c87cdecf0c5e1423b05a5
 SHA1 (patch-ac) = 33283f04b90d8eb7943753a67c9fa62874bedca8
 SHA1 (patch-ad) = dfd33fa33eeb174d63d8f16d5203032c61a0c6d1
-SHA1 (patch-ae) = b8d744633076ed58c6e56afbecee00dd6e66c912
+SHA1 (patch-ae) = a646c7fd01f04c0a569564ba14e0cae3ea76792d
 SHA1 (patch-af) = 31ed247437c974e1c46d1ee45c9e931ec751df76
 SHA1 (patch-ag) = 3b7458cea6c11ff122f32d9205296bf3b82eecd3
 SHA1 (patch-ah) = 7b9d5c44a0f56d6592743c5a1442cfbd5da647a9
diff -r 0f80a664c7f9 -r 2901d41d861b sysutils/amanda-server/patches/patch-ae
--- a/sysutils/amanda-server/patches/patch-ae   Sun Oct 03 04:24:20 2004 +0000
+++ b/sysutils/amanda-server/patches/patch-ae   Sun Oct 03 09:19:16 2004 +0000
@@ -1,8 +1,27 @@
-$NetBSD: patch-ae,v 1.6 2004/05/12 18:45:26 bouyer Exp $
+$NetBSD: patch-ae,v 1.7 2004/10/03 09:19:16 bouyer Exp $
 
---- changer-src/scsi-changer-driver.c.orig     2003-01-26 11:20:56.000000000 -0800
-+++ changer-src/scsi-changer-driver.c  2004-02-23 08:44:56.000000000 -0800
-@@ -1358,13 +1358,14 @@
+--- changer-src/scsi-changer-driver.c.orig     Sun Jan 26 20:20:56 2003
++++ changer-src/scsi-changer-driver.c  Sat Oct  2 20:54:52 2004
+@@ -372,6 +372,18 @@
+    NoBarCode,
+    GenericSearch,
+    GenericSenseHandler},
++  {"SDLT320",
++   "DLT Tape [SDLT320]",
++   DoNothing,
++   DoNothing,
++   DoNothing,
++   DoNothing,
++   DLT4000Eject,
++   GenericClean,
++   GenericRewind,
++   GenericBarCode,
++   GenericSearch,
++   GenericSenseHandler},
+   {"DLT8000",
+    "DLT Tape [DLT8000]",
+    DoNothing,
+@@ -1358,13 +1370,14 @@
  {
    int ret = 0;
    extern OpenFiles_T *pDev;
@@ -18,3 +37,39 @@
    DebugPrint(DEBUG_INFO, SECTION_BARCODE,"##### STOP BarCode (%d)\n",ret);
    return(ret);
  }
+@@ -3770,7 +3783,7 @@
+                                      barcode,
+                                      V2(pEAAPage->MediumTransportElementAddress),
+                                      MTE+1,
+-                                   sizeof(MediumTransportElementDescriptor_T),
++                                   0, /* let the buffer auto-size */
+                                      (char **)&DataBuffer) != 0)
+             {
+               if (DataBuffer != 0)
+@@ -3855,7 +3868,7 @@
+                                      barcode,
+                                      V2(pEAAPage->FirstStorageElementAddress),
+                                      STE,
+-                                   sizeof(StorageElementDescriptor_T),
++                                   0, /* let the buffer auto-size */
+                                      (char **)&DataBuffer) != 0)
+             {
+               if (DataBuffer != 0)
+@@ -3942,7 +3955,7 @@
+                                      barcode,
+                                      V2(pEAAPage->FirstImportExportElementAddress),
+                                      IEE,
+-                                   sizeof(ImportExportElementDescriptor_T),
++                                   0, /* let the buffer auto-size */
+                                      (char **)&DataBuffer) != 0)
+             {
+               if (DataBuffer != 0)
+@@ -4027,7 +4040,7 @@
+                                      barcode,
+                                      V2(pEAAPage->FirstDataTransferElementAddress),
+                                      DTE,
+-                                   sizeof(DataTransferElementDescriptor_T),
++                                   0, /* let the buffer auto-size */
+                                      (char **)&DataBuffer) != 0)
+             {
+               if (DataBuffer != 0)



Home | Main Index | Thread Index | Old Index