Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2007 16:52:50 -0500 (EST)
From:      Michael W Lucas <mwlucas@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/109863: specifying memory device with mdmfs fails
Message-ID:  <200703042152.l24Lqocg084066@bewilderbeast.blackhelicopters.org>
Resent-Message-ID: <200703042220.l24MK4dl080632@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         109863
>Category:       misc
>Synopsis:       specifying memory device with mdmfs fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 04 22:20:03 GMT 2007
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703042152.l24Lqocg084066>