Re: PROBLEM: BLKPG_DEL_PARTITION with GENHD_FL_NO_PART used to return ENXIO, now returns EINVAL

From: Karel Zak
Date: Mon Jan 15 2024 - 07:57:48 EST


On Mon, Jan 15, 2024 at 01:13:49PM +0100, Allison Karlitskaya wrote:
> hi,
>
> [1.] One line summary of the problem:
> BLKPG_DEL_PARTITION on an empty loopback device used to return ENXIO
> but now returns EINVAL, breaking partprobe

Note that partx from util-linux also assumes ENXIO, and this errno is
interpreted as non-error ("ignore this partition").

Karel

--
Karel Zak <kzak@xxxxxxxxxx>
http://karelzak.blogspot.com