ACK/Cmnt: [SRU][M,J][PATCH 0/1] partproke is broken on empty loopback device

Andrei Gherzan andrei.gherzan at canonical.com
Wed Jan 31 15:39:30 UTC 2024


On 24/01/31 01:43PM, Roxana Nicolescu wrote:
> BugLink: https://bugs.launchpad.net/bugs/2049689
> 
> SRU Justification:
> 
> [Impact]
> 
> * BLKPG_DEL_PARTITION on an empty loopback device used to return ENXIO
> but now returns EINVAL, breaking partprobe due to commit
> "block: don't add or resize partition on the disk with GENHD_FL_NO_PART"
> introduced in mantic 6.5.0-17 and jammy 5.15.0-94.
> 
> [Fix]
> 
> * backport commit
> "block: Move checking GENHD_FL_NO_PART to bdev_add_partition()"
> 
> [Test Plan]
> 
> * dd if=/dev/zero of=/tmp/foo bs=1M count=50
> * partprobe $(losetup --find --show /tmp/foo)
> Before the fix this fails.
> After the fix it should work.

It would have been useful to have here partprobe logs with and without
the fix.

> 
> [Where problems could occur]
> 
> * We may see issues on disk partitions operations.
> 
> Li Lingfeng (1):
>   block: Move checking GENHD_FL_NO_PART to bdev_add_partition()
> 
>  block/ioctl.c           | 2 --
>  block/partitions/core.c | 5 +++++
>  2 files changed, 5 insertions(+), 2 deletions(-)
>

Acked-by: Andrei Gherzan <andrei.gherzan at canonical.com>

-- 
Andrei Gherzan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20240131/ed5369a8/attachment.sig>


More information about the kernel-team mailing list