Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Dec 1999 13:18:18 +0100 (CET)
From:      ob@seicom.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/15329: amanda24 modification
Message-ID:  <199912071218.NAA34124@bs-tosh.breuninger.org>

next in thread | raw e-mail | index | archive | help

>Number:         15329
>Category:       ports
>Synopsis:       amanda24 modification
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec  7 04:20:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Breuninger
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
>Environment:
>Description:

It seems that the original distribution doesn't contain enough 
modifications to work on FreeBSD.

We have a ADIC 7 slot DLT changer, with this changes for chio
works all we tested correct.

For testing with 'amcheck' should all slots loaded with media and
the drive emtpty.

We think that this fix will work with all FreeBSD-'chio' driven 
changers.

>How-To-Repeat:
>Fix:
     
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	patches
#	patches/patch-chio1
#	patches/patch-chio2
#
echo c - patches
mkdir -p patches > /dev/null 2>&1
echo x - patches/patch-chio1
sed 's/^X//' >patches/patch-chio1 << 'END-of-patches/patch-chio1'
X--- changer-src/chg-chio.pl.in.orig	Sat Nov  7 10:18:46 1998
X+++ changer-src/chg-chio.pl.in	Tue Dec  7 00:18:41 1999
X@@ -235,4 +235,13 @@
X 
X 	#
X+	# Rewind tape and eject before we can return it into slot.
X+	#
X+
X+	if ( system ("@MT@ @MT_FILE_FLAG@ $tapeDevice rewoffl") ) {
X+		print "$progname: cannot '@MT@ -f $tapeDevice rewoffl'\n";
X+		exit(2);
X+	}
X+
X+	#
X 	# Unload the tape from drive 0 and put it into the slot specified by
X 	# $tape.
END-of-patches/patch-chio1
echo x - patches/patch-chio2
sed 's/^X//' >patches/patch-chio2 << 'END-of-patches/patch-chio2'
X--- server-src/changer.c.orig	Sat Jul  4 01:45:04 1998
X+++ server-src/changer.c	Tue Dec  7 02:07:49 1999
X@@ -59,5 +59,7 @@
X int changer_init()
X {
X+    
X     tapechanger = getconf_str(CNF_TPCHANGER);
X+    
X     return strcmp(tapechanger, "") != 0;
X }
X@@ -254,5 +256,9 @@
X 	cmd = vstralloc(tapechanger, " ", cmdstr, NULL);
X     }
X-    cmd_and_io = stralloc2(cmd, " 2>&1");
X+/*    cmd_and_io = stralloc2(cmd, " 2>&1"); */
X+/* 
X+    It seems to be that this is a problem in an FreeBSD environment.
X+*/
X+      cmd_and_io = stralloc2(cmd, " ");
X 
X /* fprintf(stderr, "changer: opening pipe from: %s\n", cmd); */
X@@ -301,4 +307,5 @@
X 
X /* fprintf(stderr, "changer: got exit: %d str: %s\n", exitcode, resultstr); */
X+ fprintf(stderr, "changer: got exit: %d str: %s\n", exitcode, changer_resultstr); 
X 
X     amfree(cmd);
END-of-patches/patch-chio2
exit


>Release-Note:
>Audit-Trail:
>Unformatted:
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912071218.NAA34124>