Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 2000 07:20:33 -0700 (PDT)
From:      huntting@glarp.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/18003: amanda2.4's SCSI changer script (chg-chio) has broken -info mode
Message-ID:  <200004141420.HAA27657@freefall.freebsd.org>

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

>Number:         18003
>Category:       ports
>Synopsis:       amanda2.4's SCSI changer script (chg-chio) has broken -info mode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 14 07:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Brad Huntting
>Release:        4.0-RELEASE
>Organization:
>Environment:
FreeBSD misc.glarp.com 4.0-RELEASE FreeBSD 4.0-RELEASE #1: Fri Mar 31 10:06:16 MST 2000     root@hunkular.glarp.com:/usr/src/sys/compile/MISC  i386

>Description:
To support SCSI tape changers, amanda2.4 programs call a script which is
typically called "chg-chio" to manipulate the tape change via chio(1).
This script has one erronious line which sends data to STDERR when there
has been no error therby confusing amtape(8) and other programs into thinking
there's something wrong with the tape changer when there isnt.
>How-To-Repeat:
Get a SCSI tape changer, configure /usr/local/etc/amanda/foo/amanda.conf with:

	changerdev      "/dev/ch0"
	tapedev         "/dev/nrsa0"
	tpchanger       "chg-chio"

Then run "amtape foo current" where "foo" is the name of your config.

The command should fail with a nonsensical numeric error message "n m"
where n is the number of slots in your tape library.
>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:
#
#       misc/amanda24/patches/patch-ag
#
echo x - misc/amanda24/patches/patch-ag
sed 's/^X//' >misc/amanda24/patches/patch-ag << 'END-of-misc/amanda24/patches/patch-ag'
X--- changer-src/chg-chio.pl.in Sat Nov  7 02:18:46 1998
X+++ changer-src/chg-chio.pl.in Fri Apr 14 07:58:19 2000
X@@ -347,7 +347,6 @@
X 		$currentTape = 1;
X 	}
X 
X-	print STDERR "$currentTape $max_slot 1\n";
X	print "$currentTape $max_slot 1\n";
X	exit 0;
X }
END-of-misc/amanda24/patches/patch-ag
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?200004141420.HAA27657>