util-linux/libfdisk
Ian Wienand 240ddd3a5f libfdisk: Detect out-of-space when adding new primary partition
I got a bit confused with the interaction below:

  Command (m for help): p
  Disk /dev/sda: 41 GiB, 43965677568 bytes, 85870464 sectors
    ...
  Device     Boot   Start      End  Sectors  Size Id Type
  /dev/sda1  *       2048  1026047  1024000  500M 83 Linux
  /dev/sda2       1026048 85868543 84842496 40.5G 8e Linux LVM

  Command (m for help): n
  To create more partitions, first replace a primary with an extended partition.

I knew I should have had two primary partitions available, but I did
not notice that the disk was seen as full (I was trying to grow it)

This change detects available primary partitions, and if so indicates
we are out of space, rather than out of partitions.

Signed-off-by: Ian Wienand <iwienand@redhat.com>
2015-10-09 13:07:41 +02:00
..
docs libfdisk: add JSON dump output 2015-06-15 13:18:09 +02:00
src libfdisk: Detect out-of-space when adding new primary partition 2015-10-09 13:07:41 +02:00
COPYING COPYING: fix grammar of referring phrase, and indicate location better 2013-10-08 15:38:39 +02:00
Makemodule.am libfdisk: add API docs 2014-11-26 19:13:57 +01:00
fdisk.pc.in build-sys: add fdisk.pc 2014-11-26 13:20:16 +01:00