[dm-devel] ioctl HDIO_GETGEO to device mapper devpath

Hannes Reinecke hare at suse.de
Tue Nov 30 07:33:43 UTC 2010


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.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare at suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multipath-tools-set-geometry.patch
Type: text/x-patch
Size: 4573 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20101130/d37e33e0/attachment.bin>


More information about the dm-devel mailing list