Re: ioctl HDIO_GETGEO to device mapper devpath

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel


[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux