From mwlucas@bewilderbeast.blackhelicopters.org  Sun Mar  4 22:18:02 2007
Return-Path: <mwlucas@bewilderbeast.blackhelicopters.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id A0DAE16A4D0
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  4 Mar 2007 22:18:02 +0000 (UTC)
	(envelope-from mwlucas@bewilderbeast.blackhelicopters.org)
Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.8])
	by mx1.freebsd.org (Postfix) with ESMTP id 5F8B813C47E
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  4 Mar 2007 22:18:02 +0000 (UTC)
	(envelope-from mwlucas@bewilderbeast.blackhelicopters.org)
Received: from bewilderbeast.blackhelicopters.org (localhost [127.0.0.1])
	by bewilderbeast.blackhelicopters.org (8.13.8/8.13.8) with ESMTP id l24LqqSw084067
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 4 Mar 2007 16:52:52 -0500 (EST)
	(envelope-from mwlucas@bewilderbeast.blackhelicopters.org)
Received: (from root@localhost)
	by bewilderbeast.blackhelicopters.org (8.13.8/8.13.8/Submit) id l24Lqocg084066;
	Sun, 4 Mar 2007 16:52:50 -0500 (EST)
	(envelope-from mwlucas)
Message-Id: <200703042152.l24Lqocg084066@bewilderbeast.blackhelicopters.org>
Date: Sun, 4 Mar 2007 16:52:50 -0500 (EST)
From: Michael W Lucas <mwlucas@freebsd.org>
Reply-To: Michael W Lucas <mwlucas@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: specifying memory device with mdmfs fails
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         109863
>Category:       kern
>Synopsis:       [mdmfs] specifying memory device with mdmfs fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 04 22:20:03 GMT 2007
>Closed-Date:    Wed Mar 07 11:48:30 GMT 2007
>Last-Modified:  Sun Mar 11 18:30:21 GMT 2007
>Originator:     Michael W Lucas
>Release:        FreeBSD 7.0-CURRENT amd64
>Organization:
none
>Environment:

FreeBSD humvee32.blackhelicopters.org 7.0-CURRENT FreeBSD 7.0-CURRENT #5: Sun Feb 25 12:25:47 EST 2007     mwlucas@humvee32.blackhelicopters.org:/usr/obj/usr/src/sys/GENERIC  i386

>Description:

mdmfs states that mdmfs can use a specific md device on the command
line.  It creates the device, but the mount fails.

>How-To-Repeat:

This is a very petty bug, but I thought I'd at least get it on the
record.

humvee32~;mdmfs -X -s 8m md5 test/
DEBUG: running: /sbin/mdconfig -d -u md5
mdmfs: mdconfig (detach) exited with error code 1 (ignored)
DEBUG: running: /sbin/mdconfig -a -t swap -s 8m -u md5
DEBUG: running: /sbin/newfs -U /dev/md5
DEBUG: running: /sbin/mount /dev/md5(null) test/
mdmfs: mount exited with error code 1

mdmfs works fine without specifying the device number.

humvee32~;mdmfs -X -s 8m md test/
DEBUG: running: /sbin/mdconfig -a -t swap -s 8m
DEBUG: running: /sbin/newfs -U /dev/md0
DEBUG: running: /sbin/mount /dev/md0 test/

>Fix:

I would guess that mount is choking on the (null) on the end of
/dev/md5.

The easy fix is for me to rip this line out of the command page.  I
don't think that's what we really want done here.  :-)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: yar 
State-Changed-When: Wed Mar 7 07:48:45 UTC 2007 
State-Changed-Why:  
Fixed in CURRENT, MFC is due.  Thanks! 


Responsible-Changed-From-To: freebsd-bugs->yar 
Responsible-Changed-By: yar 
Responsible-Changed-When: Wed Mar 7 07:48:45 UTC 2007 
Responsible-Changed-Why:  
Taking this one. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/109863: commit references a PR
Date: Wed,  7 Mar 2007 07:45:46 +0000 (UTC)

 yar         2007-03-07 07:45:38 UTC
 
   FreeBSD src repository
 
   Modified files:
     sbin/mdmfs           mdmfs.c 
   Log:
   Don't leave a NULL value in mdsuffix when a particular md
   unit w/o suffix is specified.  It had better be an empty
   string as it will be passed to a printf-like function that
   builds the command line to run.
   
   PR:             kern/109863
   MFC after:      1 week
   
   Revision  Changes    Path
   1.31      +1 -2      src/sbin/mdmfs/mdmfs.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: yar 
State-Changed-When: Wed Mar 7 11:45:33 UTC 2007 
State-Changed-Why:  
The code doesn't appear in RELENG_6 yet.  The responsible developer 
of bin/103501 has been notified of the bug.  PR bin/103501 tracks the 
status of the new code inroduced in mdmfs. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/109863: commit references a PR
Date: Sun, 11 Mar 2007 18:24:31 +0000 (UTC)

 matteo      2007-03-11 18:24:23 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     sbin/mdmfs           mdmfs.8 mdmfs.c 
   Log:
   mdmfs.c: MFC revs 1.29-1.31
   mdmfs.8: MFC revs 1.27-1.29
   
   PR:             bin/66763 103501 kern/109863
   
   Revision  Changes    Path
   1.20.8.2  +48 -13    src/sbin/mdmfs/mdmfs.8
   1.23.2.3  +32 -16    src/sbin/mdmfs/mdmfs.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:
