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

Bug#66602: marked as done (ftape-util: Cannot format tapes with current driver in kernel)

Your message dated Sun, 31 Jul 2005 23:34:00 +0100
with message-id <20050731223400.GA30896@deprecation.cyrius.com>
and subject line Removed from Debian - unmaintained
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 2 Jul 2000 04:32:31 +0000
>From camm@m.enhanced.com Sat Jul 01 23:32:31 2000
Return-path: <camm@m.enhanced.com>
Received: from enhanced.ppp.eticomm.net (wisdom.m.enhanced.com) [] 
	by master.debian.org with esmtp (Exim 3.12 2 (Debian))
	id 138bQj-0002D9-00; Sat, 01 Jul 2000 23:32:30 -0500
Received: from camm by wisdom.m.enhanced.com with local (Exim 3.12 #1 (Debian))
	id 138bQc-0007H2-00; Sun, 02 Jul 2000 00:32:22 -0400
From: Camm Maguire <camm@m.enhanced.com>
Subject: ftape-util: Cannot format tapes with current driver in kernel
To: submit@bugs.debian.org
X-Mailer: bug 3.2.10
Message-Id: <E138bQc-0007H2-00@wisdom.m.enhanced.com>
Date: Sun, 02 Jul 2000 00:32:22 -0400
Delivered-To: submit@bugs.debian.org

Package: ftape-util
Version: 1:1.07.1999.03.17-2
Severity: normal

ftformat dies after running the format and trying to begin the verify.
It tries to reopen the device "to clear the mmap status of the dma
buffers", but cannot do so, as it receives a "device busy" error on
reopen due to the dma buffers it still has mmapped.  The dma buffers
are not used after the format procedure is done, and can safely be
munmapped before the call to the reopen.  

Also, ftformat will die if the "format-filler-byte" parameter is
specified without the mode being set to force, even if the value
specified is the one ftformat itself would choose had the parameter
been unspecified.

Here is a patch:

diff -ur ./ftfmt-tapelib.c /root/ftape-tools-1.07.1999.03.17/src/ftformat/ftfmt-tapelib.c
--- ./ftfmt-tapelib.c	Wed Mar 17 06:25:42 1999
+++ /root/ftape-tools-1.07.1999.03.17/src/ftformat/ftfmt-tapelib.c	Sat Jul  1 20:07:43 2000
@@ -249,7 +249,7 @@
 	} else {
 	    fmt_opts->ft_ffb  = 0x6b; /* somewhat arbitrary */
-    } else if (make->rffb != 0x00 && opts->mode != FORCE) {
+    } else if (make->rffb != 0x00 && fmt_opts->ft_ffb != make->rffb && opts->mode != FORCE) {
 	/* recommendation given, but user tries to override */
 		_("Vendor suggest format-filler-byte=0x%02x, "
diff -ur ./ftformat.c /root/ftape-tools-1.07.1999.03.17/src/ftformat/ftformat.c
--- ./ftformat.c	Wed Mar 17 06:25:42 1999
+++ /root/ftape-tools-1.07.1999.03.17/src/ftformat/ftformat.c	Sat Jul  1 20:11:32 2000
@@ -174,6 +174,10 @@
 	    tape_close(tape_fd, dma_buffer, opts.dma_size);
 	    exit (1);
+	if (munmap(dma_buffer, opts.dma_size) == -1) {
+	    perror(_("Error unmapping dma buffer"));
+	}
+	dma_buffer=NULL;
     /* Need to open it a second time to clear the mmaped status of the
      * dma buffers. The driver can't handle this yet properly via

-- System Information
Debian Release: 2.2
Kernel Version: Linux wisdom 2.2.16 #1 Tue Jun 20 17:14:33 EDT 2000 i586 unknown

Versions of the packages ftape-util depends on:
ii  libc6          2.1.3-10       GNU C Library: Shared libraries and Timezone
ii  modutils       2.3.11-8       Linux module utilities.

--- Begin /etc/modutils/ftape-util (modified conffile)
alias char-major-27       zftape
options ftape ft_fdc_rate_limit=2000 ft_fdc_base=0x360 ft_fdc_irq=9 ft_fdc_dma=1
pre-install ftape-internal /sbin/swapout 15

--- End /etc/modutils/ftape-util

Received: (at 66602-done) by bugs.debian.org; 31 Jul 2005 22:34:11 +0000
>From tbm@cyrius.com Sun Jul 31 15:34:11 2005
Return-path: <tbm@cyrius.com>
Received: from sorrow.cyrius.com [] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1DzMNn-0008Pa-00; Sun, 31 Jul 2005 15:34:11 -0700
Received: by sorrow.cyrius.com (Postfix, from userid 10)
	id 7A3BF64D54; Sun, 31 Jul 2005 22:34:08 +0000 (UTC)
Received: by deprecation.cyrius.com (Postfix, from userid 1000)
	id C937784B0; Sun, 31 Jul 2005 23:34:00 +0100 (BST)
Date: Sun, 31 Jul 2005 23:34:00 +0100
From: Martin Michlmayr <tbm@cyrius.com>
To: 114319-done@bugs.debian.org, 114321-done@bugs.debian.org,
	120187-done@bugs.debian.org, 120185-done@bugs.debian.org,
	201554-done@bugs.debian.org, 314113-done@bugs.debian.org,
	318533-done@bugs.debian.org, 40978-done@bugs.debian.org,
	66602-done@bugs.debian.org, 120186-done@bugs.debian.org,
Subject: Removed from Debian - unmaintained
Message-ID: <20050731223400.GA30896@deprecation.cyrius.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
Delivered-To: 66602-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
X-CrossAssassin-Score: 127

This package has now been removed from Debian because nobody was
interested in maintaining it; see
for more information.

Martin Michlmayr

Reply to: