Date: Wed, 21 Nov 2007 19:02:26 +0800 From: KT Sin <ktsin@acm.org> To: freebsd-current@FreeBSD.ORG Subject: Re: freebsd7 and mdconfig -l -u oddity Message-ID: <20071121110226.GA3543@passion.hsins.com> In-Reply-To: <20071121105122.GA3421@passion.hsins.com> References: <20071121103211.GA3190@passion.hsins.com> <20071121105122.GA3421@passion.hsins.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071121110226.GA3543>
