NetBSD Problem Report #33293

From www@netbsd.org  Wed Apr 19 23:52:47 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 87F8A63B884; Wed, 19 Apr 2006 23:52:47 +0000 (UTC)
Message-Id: <20060419235247.87F8A63B884@narn.netbsd.org>
Date: Wed, 19 Apr 2006 23:52:47 +0000 (UTC)
From: dgriffi@cs.csubak.edu
Reply-To: dgriffi@cs.csubak.edu
To: gnats-bugs@netbsd.org
Subject: sysutils/cdbkup has problems with DVDs
X-Send-Pr-Version: www-1.0

>Number:         33293
>Category:       pkg
>Synopsis:       sysutils/cdbkup has problems with DVDs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 19 23:55:00 +0000 2006
>Last-Modified:  Sun Nov 07 22:15:03 +0000 2010
>Originator:     David Griffith
>Release:        2.1 i386
>Organization:
>Environment:
NetBSD zaphod 2.1 NetBSD 2.1 (GENERIC) #0: Mon Oct 24 22:35:45 UTC 2005  jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-1-RELEASE/i386/200510241747Z-obj/home/builds/ab/netbsd-2-1-RELEASE/src/sys/arch/i386/compile/GENERIC i386

>Description:
Backing up to DVD:

Immediately, gtar(1) complains the deprecated use of the "l" option and suggests using "--one-file-system" instead.  Then things seem to go fine until it comes time to write out the newly-created tarball to the burner with cdrecord(8).  cdrecord(8) aborts, thus causing cdbkup(1) to also abort.  Here are the two lines of interest.

/usr/pkg/bin/cdrecord: Track 1 has unknown length.
/usr/pkg/bin/cdrecord: Use tsize= option in SAO mode to specify track size.


>How-To-Repeat:
cdbkup 0 -s 4 -l home -S 4200000000 -c none -w /usr/tmp/cdworkdir /dev/rcd0d /usr/home/joe

The home directory in question contains about 20 gigs of stuff.
>Fix:
The following patches seem to fix things completely:

$NetBSD$
--- src/cdappend.in.orig        2006-04-18 23:40:54.000000000 -0700
+++ src/cdappend.in     2006-04-18 23:41:12.000000000 -0700
@@ -101,7 +101,7 @@
 die "Options -b and -r conflict.\n" if( $blank && $recycle);

 $mkiso = "@MKISOFS@ -quiet -R -J";
-$cdrec = "@CDRECORD@ -v -data dev=$cddevice speed=$cdspeed";
+$cdrec = "@CDRECORD@ -v -data dev=$cddevice speed=$cdspeed tsize=$cdsize_all";

 $tmpimg = "$workdir/$filename";

$NetBSD$
--- src/cdsplit.in.orig 2002-03-06 11:01:23.000000000 -0800
+++ src/cdsplit.in      2006-04-19 00:11:17.000000000 -0700
@@ -125,7 +125,7 @@
 $workdir = "." if ($test && $workdir eq "/tmp/cdworkdir");

 $mkiso = "@MKISOFS@ -quiet -R -J";
-$cdrec = "@CDRECORD@ -v -data dev=$cddevice speed=$cdspeed";
+$cdrec = "@CDRECORD@ -v -data dev=$cddevice speed=$cdspeed tsize=$cdsize_all";

 $tmpimg = "$workdir/$filename";

$NetBSD$
--- src/cdbkup.in.orig  2002-03-06 11:01:23.000000000 -0800
+++ src/cdbkup.in       2006-04-18 23:48:05.000000000 -0700
@@ -298,12 +298,13 @@
 }

 $tarcmd = "cd ".esc_shell($dumpdir)." && $rgnutar -f - -cS";
-$tarcmd .= "l" unless ($crossmp);
 unless( $ziphere) {
        $tarcmd .= "z" if( $compress eq 'gz');
        $tarcmd .= "j" if( $compress eq 'bz2');
 }

+$tarcmd .= " --one-file-system" unless ($crossmp);
+
 $tarcmd .= " --listed-incremental=$listed".
        " --label=".esc_shell($datedlabel);
 foreach $exclude (@excludes) {


>Audit-Trail:
From: David Griffith <dgriffi@cs.csubak.edu>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33293
Date: Wed, 19 Apr 2006 22:23:13 -0700 (PDT)

 The fixes I proposed have introduced or uncovered a subtle but significant
 bug involving disk-at-once versus track-at-once modes of operation in
 which the last disk turns out corrupted.  More to come.  Please don't
 apply these patches to a live system.

 -- 
 David Griffith
 dgriffi@cs.csubak.edu

From: Sergey Svishchev <svs@ropnet.ru>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33293
Date: Thu, 4 Nov 2010 23:42:15 +0300

 Note: "As of 2004-07-27 17:16, this project is no longer under active development."

 (quote from its homepage)

 -- 
 Sergey Svishchev

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: svs@ropnet.ru
Subject: Re: pkg/33293: sysutils/cdbkup has problems with DVDs
Date: Sun, 7 Nov 2010 21:13:45 +0000

 On Thu, Nov 04, 2010 at 08:50:04PM +0000, Sergey Svishchev wrote:
  >  Note: "As of 2004-07-27 17:16, this project is no longer under active development."
  >  
  >  (quote from its homepage)

 Does that mean it should be considered dead and removed from pkgsrc?

 -- 
 David A. Holland
 dholland@netbsd.org

From: Sergey Svishchev <svs@ropnet.ru>
To: David Holland <dholland-pbugs@netbsd.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/33293: sysutils/cdbkup has problems with DVDs
Date: Mon, 8 Nov 2010 00:58:16 +0300

 On Sun, Nov 07, 2010 at 09:13:45PM +0000, David Holland wrote:
 >On Thu, Nov 04, 2010 at 08:50:04PM +0000, Sergey Svishchev wrote:
 > >  Note: "As of 2004-07-27 17:16, this project is no longer under active development."
 > >  
 > >  (quote from its homepage)
 >
 >Does that mean it should be considered dead and removed from pkgsrc?

 No, just that upstream probably won't release another version with our fixes.

 (We have plenty of abandonware in pkgsrc; I personally use one -- pload.)

 -- 
 Sergey Svishchev

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.