[dm-devel] ioctl HDIO_GETGEO to device mapper devpath
Christophe Varoqui
christophe.varoqui at gmail.com
Wed Dec 1 08:58:46 UTC 2010
On mar., 2010-11-30 at 08:33 +0100, Hannes Reinecke wrote:
> On 10/14/2010 11:40 AM, Santosh Sarangi wrote:
> > Hi,
> > I have a linux mapper device on the host, I would like to get the start
> > offset.
> > I get this by the following ioctl . Although the call succeeds but it sets
> > the hd_geometry_rec to "0"
> >
> > I checked through gdb , the ioctl call suceeds ,but sets all the field of
> > hd_geometry to "0"
> >
> Yep. Device-mapper device are able to report the geometry, but you
> have to set it first :-)
>
> The attached patch should fix this.
>
Applied.
Thanks.
More information about the dm-devel
mailing list