Re: freebsd7 and mdconfig -l -u oddity

From: KT Sin <ktsin_at_acm.org>
Date: Wed, 21 Nov 2007 19:02:26 +0800
apparently fixed in 8-current, e.g. src/sbin/mdconfig/mdconfig.c,v 1.55.

recompiled mdconfig.c v1.55 on 7 and so far, it's working great.

can somebody please backport the code to 7?

thanks
kt :)

On Wed, Nov 21, 2007 at 06:51:22PM +0800, KT Sin wrote:
> ah...there appears to be a PR (conf/118035) reporting breakage caused
> by changes in mdconfig -l -u.
> 
> kt :(
> 
> On Wed, Nov 21, 2007 at 06:32:11PM +0800, KT Sin wrote:
> > i've upgraded my server from 6 to 7 and mdconfig -l -u is behaving
> > in a weird (and incorrect) manner.
> > 
> > on freebsd 7, mdconfig -l -u returns exit code of 0 even for
> > non-existence md devices.
> > 
> > has anyone got the same problem or is it just me? this weirdness is
> > breaking the code to detect next available md device number in
> > ports/freebsd-snapshot.
> > 
> > e.g.
> > 
> > on freebsd6:
> > 
> > si1:~[512]# mdconfig -l -u 0 ; echo $?
> > md0     swap      2.0G
> > 0
> > si1:~[513]# mdconfig -l -u 1 ; echo $?
> > mdconfig: ioctl(/dev/mdctl): No such file or directory
> > 1
> > 
> > on freebsd7 beta3:
> > 
> > melati# uname -a
> > FreeBSD melati.hsins.com 7.0-BETA3 FreeBSD 7.0-BETA3 #0: Mon Nov 19 06:25:50 MYT 2007     ktsin_at_melati.hsins.com:/tmp/obj/usr/src/sys/MELATI  i386
> > melati# mdconfig -l -u 0 ; echo $?
> > md0     swap      2.0G
> > 0
> > melati# mdconfig -l -u 1 ; echo $?
> > 0
> > 
> > kt
Received on Wed Nov 21 2007 - 10:02:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:22 UTC