Re: [PATCH 2/4 v2] brd: Add getgeo to block ops

2014-08-07 Thread Davidlohr Bueso
On Fri, 2014-08-08 at 09:52 +0300, Boaz Harrosh wrote: > On Thu, Aug 7, 2014 at 9:20 PM, One Thousand Gnomes > wrote: > > On Thu, 07 Aug 2014 17:03:08 +0300 > > Boaz Harrosh wrote: > > > >> From: Boaz Harrosh > >> > >> Some programs like fdisk, require HDIO_GETGEO to work, which requires we > >>

Re: [PATCH 2/4 v2] brd: Add getgeo to block ops

2014-08-07 Thread Boaz Harrosh
On Thu, Aug 7, 2014 at 9:20 PM, One Thousand Gnomes wrote: > On Thu, 07 Aug 2014 17:03:08 +0300 > Boaz Harrosh wrote: > >> From: Boaz Harrosh >> >> Some programs like fdisk, require HDIO_GETGEO to work, which requires we >> implement getgeo. >> >> We set all hd_geometry members to 1, because thi

Re: [PATCH 2/4 v2] brd: Add getgeo to block ops

2014-08-07 Thread One Thousand Gnomes
On Thu, 07 Aug 2014 17:03:08 +0300 Boaz Harrosh wrote: > From: Boaz Harrosh > > Some programs like fdisk, require HDIO_GETGEO to work, which requires we > implement getgeo. > > We set all hd_geometry members to 1, because this way fdisk > math will not try its crazy geometry math and get stuff

[PATCH 2/4 v2] brd: Add getgeo to block ops

2014-08-07 Thread Boaz Harrosh
From: Boaz Harrosh Some programs like fdisk, require HDIO_GETGEO to work, which requires we implement getgeo. We set all hd_geometry members to 1, because this way fdisk math will not try its crazy geometry math and get stuff totally wrong. I was trying to get some values that will make fdisk W