From nobody@FreeBSD.org  Fri Feb  4 04:30:49 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4A45316A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Feb 2005 04:30:49 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2F71143D3F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Feb 2005 04:30:49 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j144Umrb071033
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 4 Feb 2005 04:30:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j144UmT4071021;
	Fri, 4 Feb 2005 04:30:48 GMT
	(envelope-from nobody)
Message-Id: <200502040430.j144UmT4071021@www.freebsd.org>
Date: Fri, 4 Feb 2005 04:30:48 GMT
From: yUnwEb <yunweb@yunweb.homeunix.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: The bootvinum script given in the handbook doesn't work for 5.X
X-Send-Pr-Version: www-2.3

>Number:         77087
>Category:       docs
>Synopsis:       [patch] the bootvinum script given in the vinum article doesn't work for 5.X
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 04 04:40:21 GMT 2005
>Closed-Date:    Fri Dec 01 13:49:35 GMT 2006
>Last-Modified:  Fri Dec 01 13:49:35 GMT 2006
>Originator:     yUnwEb
>Release:        FreeBSD 5.3-RELEASE
>Organization:
>Environment:
FreeBSD bender.zuazo.org 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 26 00:40:08 CET 2004     root@bender.zuazo.org:/usr/src/sys/i386/compile/BENDER53  i386
>Description:
      I have installed FreeBSD 5.3 and I have seen that the first
non-root filesystem partition is now called adXs1d instead of adXs1e.
So, the bootvinum perl script doesn't work properly.
      I have done a simple patch to solve this.
>How-To-Repeat:
      
>Fix:
# patch bootvinum < bootvinum.patch

--- bootvinum.old	Thu Dec 30 00:51:25 2004
+++ bootvinum	Thu Dec 30 00:54:55 2004
@@ -55,9 +55,9 @@
     $rsp = $dn if $mnt eq '/';
     next if $mnt =~ /^\/NOFUTURE/;
   }
-  # Move /rootback from partition e to a
+  # Move /rootback from partition d to a
   if ($mnt =~ /^\/rootback/) {
-    $dev =~ s/e$/a/;
+    $dev =~ s/d$/a/;
     $pass = 1;
     $rbsp = substr($dev, 5, length($dev)-6);
     print FSOUT "$dev\t\t$mnt\t$fstyp\t$opt\t\t$dump\t$pass\n";
@@ -149,7 +149,7 @@
     if ($part && $part eq 'a:' && $spndl[$i] eq $rsp) {
     $rootsiz = $siz;
     }
-    if ($part && $part eq 'e:' && $spndl[$i] eq $rbsp) {
+    if ($part && $part eq 'd:' && $spndl[$i] eq $rbsp) {
       if ($rootsiz != $siz) {
     die("Rootback size ($siz) != root size ($rootsiz)\n");
       }
@@ -171,8 +171,8 @@
       $swapspndl = 1;
       next;
     }
-    # Move rootback spindle e partitions to a
-    if ($part && $part eq 'e:' && $spndl[$i] eq $rbsp) {
+    # Move rootback spindle d partitions to a
+    if ($part && $part eq 'd:' && $spndl[$i] eq $rbsp) {
       printf DLOUT "%4s%9d%9d%10s%9d%6d%6d\n", 'a:', $siz, $off, $fstyp,
     $fsiz, $bsiz, $bps;
       next;

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: ceri 
State-Changed-When: Fri Nov 4 20:20:59 GMT 2005 
State-Changed-Why:  
Sorry, where did you find this script?  grep doesn't see it in our 
current sources for the handbook... 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77087 

From: yUnwEb <yunweb@yunweb.homeunix.org>
To: Ceri Davies <ceri@FreeBSD.org>
Cc: freebsd-doc@FreeBSD.org
Subject: Re: docs/77087: The bootvinum script given in the handbook doesn't
 work for 5.X
Date: Fri, 4 Nov 2005 21:56:05 +0100

 On Fri, 4 Nov 2005 20:21:44 GMT
 Ceri Davies <ceri@FreeBSD.org> wrote:
 
 > Synopsis: The bootvinum script given in the handbook doesn't work for
 > 5.X
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: ceri
 > State-Changed-When: Fri Nov 4 20:20:59 GMT 2005
 > State-Changed-Why: 
 > Sorry, where did you find this script?  grep doesn't see it in our
 > current sources for the handbook...
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=77087
 
 Oh, sorry. It is in an article, not in the handbook :S
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/articles/vinum/perl.html
 
 -- 
 yUnwEb
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Sun Dec 25 02:35:07 UTC 2005 
State-Changed-Why:  
Feedback was received. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77087 
State-Changed-From-To: open->closed 
State-Changed-By: ceri 
State-Changed-When: Fri Dec 1 13:48:08 UTC 2006 
State-Changed-Why:  
I think that this problem pretty much depends on how you lay out the 
initial filesystems, and the current script at least matches the rest of 
the article, so I'm loathe to touch it. 

As a matter of fact, the Vinum article should be updated or killed off. 

Thanks for your submission, I'm sorry that it took us so long to do 
nothing with. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77087 
>Unformatted:
