From owner-freebsd-current@FreeBSD.ORG Mon Jan 26 06:13:06 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0338BC0E; Mon, 26 Jan 2015 06:13:06 +0000 (UTC) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D48EBF94; Mon, 26 Jan 2015 06:13:05 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id t0Q6CuiI071632 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 25 Jan 2015 22:12:56 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.14.2/Submit) with UUCP id t0Q6CuGo071631; Sun, 25 Jan 2015 22:12:56 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: from fbsd81 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA04819; Sun, 25 Jan 15 21:57:51 PST Date: Sun, 25 Jan 2015 21:57:49 -0800 From: perryh@pluto.rain.com (Perry Hutchison) To: andrnils@gmail.com Subject: How to read a disklabel (Re: What replaces DIOCGDINFO?) Message-Id: <54c5d75d.vYjlikWm5nAMV9br%perryh@pluto.rain.com> References: <54c4a9f2.T1F+E5l9r+DbUlmr%perryh@pluto.rain.com> In-Reply-To: User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, imp@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2015 06:13:06 -0000 Andreas Nilsson wrote: > On Sun, Jan 25, 2015 at 9:31 AM, Perry Hutchison > wrote: > > -r276737 removed 4 ioctls, including DIOCGDINFO, from . > > The commit log entry says only "Remove old ioctl use and support, once > > and for all." > > > > What are users of that mechanism supposed to use instead? > > http://lists.freebsd.org/pipermail/freebsd-current/2015-January/053960.html > might have the answer for you. Same symptom, but DIOCGMEDIASIZE is not the solution in this case because the port reads the disklabel to identify the partition that contains a particular sector of the device. To do that, AFAIK it needs to actually retrieve and examine the label. The other ioctls in don't look all that promising, either.