Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2015 21:57:49 -0800
From:      perryh@pluto.rain.com (Perry Hutchison)
To:        andrnils@gmail.com
Cc:        freebsd-current@freebsd.org, imp@freebsd.org
Subject:   How to read a disklabel (Re: What replaces DIOCGDINFO?)
Message-ID:  <54c5d75d.vYjlikWm5nAMV9br%perryh@pluto.rain.com>
In-Reply-To: <CAPS9%2BSthFOkpknHbAqYC8LdbUentOCzMsNkbtmo=MWb3UygjnQ@mail.gmail.com>
References:  <54c4a9f2.T1F%2BE5l9r%2BDbUlmr%perryh@pluto.rain.com> <CAPS9%2BSthFOkpknHbAqYC8LdbUentOCzMsNkbtmo=MWb3UygjnQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Andreas Nilsson <andrnils@gmail.com> wrote:
> On Sun, Jan 25, 2015 at 9:31 AM, Perry Hutchison <perryh@pluto.rain.com>
> wrote:
> > -r276737 removed 4 ioctls, including DIOCGDINFO, from <sys/disklabel.h>.
> > 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 <sys/disk.h> don't look all that promising, either.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54c5d75d.vYjlikWm5nAMV9br%perryh>