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

From: Jens Axboe
Date: Mon Jan 15 2024 - 09:25:36 EST


On 1/15/24 5:57 AM, Karel Zak wrote:
> 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").

Can someone send a patch for this?

--
Jens Axboe