From: Martin Wilck Subject: Re: [PATCH 3/4] kpartx: handle alternate bsd disklabel location Date: Thu, 2 Jul 2020 15:12:58 +0000 Message-ID: <42e56b533d5f87dd8ba4f14351d5aeb3a5b4a7f2.camel@suse.com> References: <1593643176-6206-1-git-send-email-bmarzins@redhat.com> <1593643176-6206-4-git-send-email-bmarzins@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1593643176-6206-4-git-send-email-bmarzins@redhat.com> Content-Language: en-US Content-ID: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: "bmarzins@redhat.com" , "christophe.varoqui@opensvc.com" Cc: "dm-devel@redhat.com" List-Id: dm-devel.ids 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 code expects. kpartx should handle both cases. >=20 > Signed-off-by: Benjamin Marzinski I can see that for parted, but not for the kernel (https://elixir.bootlin.com/linux/latest/source/block/partitions/msdos.c#L3= 68) Anyway: Reviewed-by: Martin Wilck --=20 Dr. Martin Wilck , Tel. +49 (0)911 74053 2107 SUSE Software Solutions Germany GmbH HRB 36809, AG N=FCrnberg GF: Felix Imend=F6rffer