Re: [dm-devel] [PATCH 3/4] kpartx: handle alternate bsd disklabel location

2020-07-02 Thread Benjamin Marzinski
On Thu, Jul 02, 2020 at 03:12:58PM +, Martin Wilck wrote: > On Wed, 2020-07-01 at 17:39 -0500, Benjamin Marzinski wrote: > > bsd disk labels can either be at the start of the second sector, or > > 64 > > bytes into the first sector, but kpartx only handled the first case. > > However the

Re: [dm-devel] [PATCH 3/4] kpartx: handle alternate bsd disklabel location

2020-07-02 Thread Martin Wilck
On Wed, 2020-07-01 at 17:39 -0500, Benjamin Marzinski wrote: > bsd disk labels can either be at the start of the second sector, or > 64 > bytes into the first sector, but kpartx only handled the first case. > However the second case is what parted creates, and what the linux > kernel partition

[dm-devel] [PATCH 3/4] kpartx: handle alternate bsd disklabel location

2020-07-01 Thread Benjamin Marzinski
bsd disk labels can either be at the start of the second sector, or 64 bytes into the first sector, but kpartx only handled the first case. However the second case is what parted creates, and what the linux kernel partition code expects. kpartx should handle both cases. Signed-off-by: Benjamin