Re: [PATCH 5/5] brd: Add getgeo to block ops for fdisk

From: Karel Zak
Date: Mon Nov 10 2014 - 08:26:55 EST


On Mon, Nov 10, 2014 at 01:15:34PM +0200, Boaz Harrosh wrote:
> >> Command (m for help): n
> >> First sector (34-8158, default 40):
> >> Last sector, +sectors or +size{K,M,G,T,P} (40-8158, default 8158): 1717
> >> Command (m for help): n
> >> First sector (34-8158, default 1720):
> >> # NOTE 34-8158 again, only with gpt
> >
> > It seems like a fdisk bug, the gap between 34-40 is smaller than phy sector
> > size.. I'll fix it, thanks!
> >
>
> Please note that the final output needs to be 1718-8158 not
> 40-8158. I was not sure if you noticed from your explanation above.

Yes, I understand, fixed in util-linux master branch.

https://github.com/karelzak/util-linux/commit/4a4616b22e21f3c05030dc05d98016fcb15a2ee9

Karel


--
Karel Zak <kzak@xxxxxxxxxx>
http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/