Red Hat Bugzilla – Bug 1290460
extended partition incorrectly marked as free
Last modified: 2016-12-15 04:05:03 EST
Created attachment 1104381 [details]
screenshot of disk details.
Description of problem:
I have an extended partition /dev/vda4 containing 2 partitions vda5 and vda6.
Cockpit displays 5GB free and a format option. I freaked out and have not tried to re-format the occupied area.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create occupied extended partition
2. display disks details
Occupied area in /dev/vda4 is incorrectly counted as free. Format action is enabled.
Display correct free space in extended partition. Only "New partition" action should be enabled if there is free space.
[root@localhost git-docker]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 252:0 0 10G 0 disk
├─vda1 252:1 0 512M 0 part /boot
├─vda2 252:2 0 4G 0 part /
├─vda3 252:3 0 512M 0 part [SWAP]
├─vda4 252:4 0 1K 0 part
├─vda5 252:5 0 2G 0 part /var
└─vda6 252:6 0 3G 0 part /var/lib/docker
[root@localhost git-docker]# fdisk /dev/vda
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/vda: 10 GiB, 10737418240 bytes, 20971520 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
Disklabel type: dos
Disk identifier: 0x09427b48
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 1050623 1048576 512M 83 Linux
/dev/vda2 1050624 9439231 8388608 4G 83 Linux
/dev/vda3 9439232 10487807 1048576 512M 82 Linux swap / Solaris
/dev/vda4 10487808 20971519 10483712 5G 5 Extended
/dev/vda5 10489856 14684159 4194304 2G 83 Linux
/dev/vda6 14686208 20971519 6285312 3G 83 Linux
This looks serious.
I haven't had time yet to reproduce this. Could you help by attaching the output of these commands?
# storagedctl dump
# udevadm info /dev/vda4
# udevadm info /dev/vda5
# udevadm info /dev/vda6
This is actually easily reproducible with current versions of Cockpit and Storaged.
Cockpit was pretty broken re extended partitions. Sorry about that.
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 23 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The fix was released as part of Cockpit 0.117