control: reassign -1 fdisk 2.36-2
control: retitle -1 Regression in sfdisk 

I have traced the cause fo the nbdkit build failures (e.g. [1] to what
seems to be a regression in sfdisk that manifests itself in a "No space
left on device" error when creating some trivial partitioned disk
images.

,----
| $ truncate -s 1G diskfile
| $ /sbin/sfdisk diskfile <<"EOF"
| 2048 1023 L -
| 4096 4095 L -
| 8192 8191 L -
| EOF
| Checking that no-one is using this disk right now ... OK
| 
| Disk diskfile: 1 GiB, 1073741824 bytes, 2097152 sectors
| Units: sectors of 1 * 512 = 512 bytes
| Sector size (logical/physical): 512 bytes / 512 bytes
| I/O size (minimum/optimal): 512 bytes / 512 bytes
| 
| >>> Created a new DOS disklabel with disk identifier 0x2ac58cda.
| diskfile1: Created a new partition 1 of type 'Linux' and of size 511.5 KiB.
| diskfile2: Created a new partition 2 of type 'Linux' and of size 2 MiB.
| diskfile3: No free sectors available.
| Failed to add #3 partition: No space left on device
| Leaving.
`----

This worked just fine on Debian/buster (fdisk/2.33.1-0.1).

I'll be investigating further.

Cheers,
-Hilko

[1] 
https://buildd.debian.org/status/fetch.php?pkg=nbdkit&arch=amd64&ver=1.20.6-1&stamp=1597140669&raw=0

Reply via email to