From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christophe Varoqui Subject: Re: ioctl HDIO_GETGEO to device mapper devpath Date: Wed, 01 Dec 2010 09:58:46 +0100 Message-ID: <1291193926.13116.0.camel@zezette> References: <4CF4A8D7.1020802@suse.de> Reply-To: christophe.varoqui@opensvc.com, device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4CF4A8D7.1020802@suse.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids 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.