Comment 19 for bug 2049689

Revision history for this message
Pierre Riteau (priteau) wrote :

Kernel 5.15.0-97.107 resolves the issue for the test case documented in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2052842

However, I still see a regression with the following test case:

$ fallocate -l 1G /tmp/blob
$ sudo losetup $LOOPDEV /tmp/blob
$ sudo /usr/sbin/parted -s -m -a optimal $LOOPDEV -- unit KiB mklabel gpt mkpart primary 0% 100%
Error: Partition(s) 1 on /dev/loop3 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.

Expected results: parted return code is 0, partition is available at ${LOOPDEV}p1

Actual results: parted return code is 1, partition is not available at ${LOOPDEV}p1