summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>2004-10-03 09:19:16 +0000
committerbouyer <bouyer@pkgsrc.org>2004-10-03 09:19:16 +0000
commit480ad6ba3a1911c7445513b4f1cea5ebc7d15d94 (patch)
tree91042d9417f14e7fce1554dd4c93582396bdaa7a /sysutils
parentebeb8c3739f42e51f5a171b417018b1665d015d1 (diff)
downloadpkgsrc-480ad6ba3a1911c7445513b4f1cea5ebc7d15d94.tar.gz
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 (limited to 'sysutils')
-rw-r--r--sysutils/amanda-server/distinfo4
-rw-r--r--sysutils/amanda-server/patches/patch-ae63
2 files changed, 61 insertions, 6 deletions
diff --git a/sysutils/amanda-server/distinfo b/sysutils/amanda-server/distinfo
index 5d8135213d3..35fa0693f70 100644
--- a/sysutils/amanda-server/distinfo
+++ b/sysutils/amanda-server/distinfo
@@ -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-aa) = af41269882c8dfdb45bc177a45aa86122443d8df
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 --git a/sysutils/amanda-server/patches/patch-ae b/sysutils/amanda-server/patches/patch-ae
index 30d95b29be6..fe4713e4979 100644
--- a/sysutils/amanda-server/patches/patch-ae
+++ b/sysutils/amanda-server/patches/patch-ae
@@ -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 @@ $NetBSD: patch-ae,v 1.6 2004/05/12 18:45:26 bouyer Exp $
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)