From owner-freebsd-stable@FreeBSD.ORG Sun Jul 4 12:25:09 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D791106566C for ; Sun, 4 Jul 2010 12:25:09 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (unknown [IPv6:2001:44b8:7c07:5581:36b8:7bff:fee0:1a08]) by mx1.freebsd.org (Postfix) with ESMTP id 7B9218FC1D for ; Sun, 4 Jul 2010 12:25:08 +0000 (UTC) Received: from ur.dons.net.au (ppp121-45-156-127.lns6.adl6.internode.on.net [121.45.156.127]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id o64COrOE046102 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 4 Jul 2010 21:54:59 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Sun, 4 Jul 2010 21:54:52 +0930 To: FreeBSD Stable Message-Id: Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) X-Spam-Score: 0.163 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Subject: GEOM/bsdlabel regression in 8.x? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2010 12:25:09 -0000 I was helping a friend as he wanted to add a partition to a new install, = ie he did (effectively) this.. truncate -s 10m /tmp/test mdconfig -a -t vnode -f /tmp/test fdisk -BI /dev/md0 bsdlabel -w /dev/md0s1 bsdlabel -e /dev/md0s1 a: 2048 16 4.2BSD 0 0 0=20 newfs /dev/md0s1a mkdir /mnt/test mount /dev/md0s1a /mnt/test bsdlabel -e /dev/md0s1 Then you get.. "bsdlabel: Class not found" Note that just touching the file bsdlabel is using is enough to cause it = to generate that error. I tried the same steps on a 7.x system and it worked fine. ktrace shows ... 90200 bsdlabel CALL ioctl(0x4,DIOCGMEDIASIZE,0x7fffffffe430) 90200 bsdlabel RET ioctl 0 90200 bsdlabel CALL ioctl(0x4,DIOCGSECTORSIZE,0x7fffffffe434) 90200 bsdlabel RET ioctl 0 90200 bsdlabel CALL ioctl(0x4,DIOCGFWSECTORS,0x7fffffffe454) 90200 bsdlabel RET ioctl 0 90200 bsdlabel CALL ioctl(0x4,DIOCGFWHEADS,0x7fffffffe454) 90200 bsdlabel RET ioctl 0 90200 bsdlabel CALL close(0x4) 90200 = bsdlabel RET close 0 90200 bsdlabel CALL close(0x3) 90200 bsdlabel RET close 0 90200 bsdlabel CALL open(0x800c04040,O_RDWR,0x26ec) 90200 bsdlabel NAMI "/dev/md0s1" 90200 bsdlabel RET open -1 errno 1 Operation not permitted 90200 bsdlabel CALL open(0x800651b5f,O_RDONLY,0) 90200 bsdlabel NAMI "/dev/geom.ctl" 90200 bsdlabel RET open 3 90200 bsdlabel CALL ioctl(0x3,GEOM_CTL,0x800c06040) 90200 bsdlabel RET = ioctl 0 90200 bsdlabel CALL close(0x3) Note that my friend tried it on real hardware and said that after he = rebooted it appeared(!) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C