From owner-freebsd-current Mon Oct 28 16:46:44 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C58DB37B401 for ; Mon, 28 Oct 2002 16:46:42 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 8A52643E75 for ; Mon, 28 Oct 2002 16:46:38 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 85199 invoked by uid 1000); 29 Oct 2002 00:46:39 -0000 Date: Mon, 28 Oct 2002 16:46:39 -0800 (PST) From: Nate Lawson To: current@freebsd.org Subject: DIOCGDINFO, DIOCGSLICEINFO fail Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 World and kernel from today. newfs_msdos, disklabel both fail on these ioctls. ------------------------------ moe# uname -a FreeBSD moe 5.0-CURRENT FreeBSD 5.0-CURRENT #9: Mon Oct 28 15:23:20 PST 2002 nate@moe:/usr/obj/usr/src/sys/MOEPRO i386 moe# ls -l /sbin/disklabel -r-xr-xr-x 1 root wheel 166184 Oct 28 07:47 /sbin/disklabel moe# fdisk da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=4471 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=4471 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 49994217 (24411 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 39/ head 254/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: moe# disklabel da0s1 disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device [Another drive, fdisk'd for an msdos fat32 partition] moe# newfs_msdos /dev/da0s4 newfs_msdos: ioctl (GSLICEINFO): Inappropriate ioctl for device newfs_msdos: /dev/da0s1: can't get slice info -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message