Thanks for taking the time to report this bug.
I can confirm it on all supported Ubuntu releases (F/J/L/M). Here's the reproducer:
# fallocate -l 10G a.img # sgdisk --new=1:0:+7.5G --typecode=1:8300 ./a.img # fdisk -l ./a.img
I haven't tried the patch mentioned by Rod, but it does seem to address the issue.
I'll add this to our backlog.
Thanks for taking the time to report this bug.
I can confirm it on all supported Ubuntu releases (F/J/L/M). Here's the reproducer:
# fallocate -l 10G a.img
# sgdisk --new=1:0:+7.5G --typecode=1:8300 ./a.img
# fdisk -l ./a.img
I haven't tried the patch mentioned by Rod, but it does seem to address the issue.
I'll add this to our backlog.