From nobody@FreeBSD.org  Mon Mar 13 15:12:21 2006
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 8435816A482
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Mar 2006 15:12:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 468A243D45
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Mar 2006 15:12:19 +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 k2DFCJFg016371
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Mar 2006 15:12:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k2DFCJUq016369;
	Mon, 13 Mar 2006 15:12:19 GMT
	(envelope-from nobody)
Message-Id: <200603131512.k2DFCJUq016369@www.freebsd.org>
Date: Mon, 13 Mar 2006 15:12:19 GMT
From: Markus Oestreicher <m.oe@x-trader.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sysinstall: add geom.debugflags-note to disklabel error
X-Send-Pr-Version: www-2.3

>Number:         94409
>Category:       bin
>Synopsis:       [sysinstall] [patch] add geom.debugflags-note to disklabel error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ceri
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 13 15:20:30 GMT 2006
>Closed-Date:    Sun Dec 31 18:08:55 GMT 2006
>Last-Modified:  Sun Dec 31 18:10:29 GMT 2006
>Originator:     Markus Oestreicher
>Release:        FreeBSD 6.1
>Organization:
>Environment:
FreeBSD oeo.local 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Sun Mar 12 00:05:14 CET 2006     root@oeo.local:/usr/obj/usr/src/sys/OEO  i386

>Description:
When using sysinstall to edit the disk configuration of a running system 
you get the error message "Unable to write data" because GEOM blocks the 
low-level access.

The attached patch changes the error message to give a possible solution.





>How-To-Repeat:
Use sysinstall on a running system
Try to change anything in the "Configure / Labels" section

>Fix:

--- disks.c.orig        Mon Mar 13 15:56:56 2006
+++ disks.c     Mon Mar 13 16:01:07 2006
@@ -879,7 +879,9 @@

        msgNotify("Writing partition information to drive %s", d->name);
        if (!Fake && Write_Disk(d)) {
-           msgConfirm("ERROR: Unable to write data to disk %s!", d->name);
+           msgConfirm("ERROR: Unable to write data to disk %s!\n\n"
+               "To edit the labels on a running system set\n"
+               "sysctl kern.geom.debugflags=16 and try again.", d->name);
            return DITEM_FAILURE;
        }
     }

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-qa 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Mar 13 19:37:17 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94409 
State-Changed-From-To: open->patched 
State-Changed-By: ceri 
State-Changed-When: Sun Oct 8 21:16:12 UTC 2006 
State-Changed-Why:  
Patched in -HEAD, thanks. 


Responsible-Changed-From-To: freebsd-qa->ceri 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Sun Oct 8 21:16:12 UTC 2006 
Responsible-Changed-Why:  
My MFC reminder. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/94409: commit references a PR
Date: Sun,  8 Oct 2006 21:16:20 +0000 (UTC)

 ceri        2006-10-08 21:16:01 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin/sysinstall  disks.c 
   Log:
   When using sysinstall on a running system and editing a disk label
   fails, suggest setting kern.geom.debugflags to 16.
   
   PR:             bin/94409
   Submitted by:   Markus Oestreicher <m punkt oe at x dash trader dot de>
   MFC after:      10 days
   
   Revision  Changes    Path
   1.158     +7 -1      src/usr.sbin/sysinstall/disks.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: ceri 
State-Changed-When: Sun Dec 31 18:08:38 UTC 2006 
State-Changed-Why:  
MFC'd to RELENG_6, thanks. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/94409: commit references a PR
Date: Sun, 31 Dec 2006 18:08:30 +0000 (UTC)

 ceri        2006-12-31 18:08:23 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     usr.sbin/sysinstall  disks.c 
   Log:
   MFC revision 1.158:
     When using sysinstall on a running system and editing a disk label
     fails, suggest setting kern.geom.debugflags to 16.
   
   PR:             bin/94409
   
   Revision   Changes    Path
   1.154.2.3  +7 -1      src/usr.sbin/sysinstall/disks.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
