misc/109863: specifying memory device with mdmfs fails
Michael W Lucas
mwlucas at FreeBSD.org
Sun Mar 4 22:20:04 UTC 2007
>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 at 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:
More information about the freebsd-bugs
mailing list