Subject: getting 2-dimensional disk geometry (was: Re: bouyer-xenamd64
To: Christoph Egger <Christoph_Egger@gmx.de>
From: None <jakllsch@kollasch.net>
List: port-xen
Date: 11/29/2007 16:24:36
--y6PvmTFIYclVmRST
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> > > Linux defines in /usr/include/linux/fs.h the following ioctl() comman=
ds:
> > >
> > > BLKGETSIZE and BLKSSZGET (and some more).
> > >
> > > What are the NetBSD pendants to these Linux specific ones?
> >
> > What do they do ?
>=20
> BLKGETSIZE:  returns device capacity in 512-byte sectors
> BLKSSZGET:   returns sector size in bytes

I think this is either through the old disklabel
ioctl interface, or the new devctl(4) interface
(as is used in gpt(8)).

If only the devctl(4)/proplib(3) interface was as simple
to use as ioctl....

	Jonathan Kollasch

--y6PvmTFIYclVmRST
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHTzwjOjx1ye3hmokRAusVAJ41IoIDYbM+bwsj46Hati6McpAJNACeJL91
Ar6y1YPRYCAqeb5R3FnG8BI=
=uh1A
-----END PGP SIGNATURE-----

--y6PvmTFIYclVmRST--