From owner-freebsd-current Fri Oct 19 8:26: 4 2001 Delivered-To: freebsd-current@freebsd.org Received: from femail1.sdc1.sfba.home.com (femail1.sdc1.sfba.home.com [24.0.95.81]) by hub.freebsd.org (Postfix) with ESMTP id EA2FE37B410 for ; Fri, 19 Oct 2001 08:25:03 -0700 (PDT) Received: from laptop.baldwin.cx ([24.2.39.156]) by femail1.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20011019152503.XBIP620.femail1.sdc1.sfba.home.com@laptop.baldwin.cx>; Fri, 19 Oct 2001 08:25:03 -0700 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20011019022229.A90892@colnta.internal> Date: Fri, 19 Oct 2001 08:24:57 -0700 (PDT) From: John Baldwin To: Chad David Subject: RE: disk_clone() bug Cc: freebsd-current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 19-Oct-01 Chad David wrote: > I posted a bug report and patch in kern/29104 and Dima Dorfman also mentioned > this in July/August, but it still has not been resolved. The method of > triggering it that I detailed in my bug report no longer seems to work, > but I've managed to create another one. > ># mdconfig -a -t swap -s 32m -u 10 ># disklabel -r -w md10 auto ># disklabel -e md10e (copy c to e and set type to 4.2BSD) ># ls -l /dev/md10* > crw-r----- 1 root operator 95, 0x00010052 Oct 19 01:50 /dev/md10 > crw-r----- 1 root operator 95, 82 Oct 19 02:00 /dev/md10c > crw-r----- 1 root operator 95, 84 Oct 19 01:55 /dev/md10ec > crw------- 1 root wheel 95, 0xffff00ff Oct 19 01:50 /dev/mdctl Well, you are supposed to be running disklabel -e on md10, not md10e. You edit the disklabel on a disk or slice, not the disklabel from inside of a partition defined by that disklabel. Make sense? :) Disklabel should probably fail to actually run in this case since md10e doesn't exist and certainly wouldn't have a valid disklabel to edit if it did exist. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message