Skip to contentSkip to conversation

fdisk -l regression between v2.24.2 and v2.25

DISCUSSION Andreas Henriksson 2 participants 2 messages Jul 27, 2014 – Jul 28, 2014 1 message not in the archive Util-Linux package

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hello Jos van Wolput!

Thanks for your bug report.

On Sun, Jul 27, 2014 at 03:29:38PM +0800, Jos van Wolput wrote:
[...]

Quoted 2 lines

After upgrading util-linux 2.20.1-5.8 (sid) to version 2.25-3 (experimental) fdisk -l ends with the following error: cannot open /dev/sr0: No medium found

[...]

Quoted 5 lines

fdisk: cannot open /dev/sr0: No medium found
---
and the other devices /dev/sdb* are not shown.

Indeed I don't use the cdrom (sr0) but using fdisk -l from util-linux 2.20.1-5.8 (sid) there is no such issue, all disks are shown:

[...]

This seems to be a regression between 2.24.2 and 2.25 and git bisect tells me the first bad commit is: a22c6eb206fb716fa4

Reverting a22c6eb206fb716fa4 and reviving wholedisk.h from 62acb047a625059e77 makes v2.25 fdisk -l work as expected for me.

I'm CCing the upstream developer mailing list to hopefully have some help on finding the proper fix.

Regards,
Andreas Henriksson

maintainer
#2 lore raw
Quoted 16 lines · Andreas Henriksson

Hello Jos van Wolput!

Thanks for your bug report.

On Sun, Jul 27, 2014 at 03:29:38PM +0800, Jos van Wolput wrote:
[...]

Quoted 2 lines

After upgrading util-linux 2.20.1-5.8 (sid) to version 2.25-3 (experimental) fdisk -l ends with the following error: cannot open /dev/sr0: No medium found

[...]

Quoted 5 lines

fdisk: cannot open /dev/sr0: No medium found
---
and the other devices /dev/sdb* are not shown.

Indeed I don't use the cdrom (sr0) but using fdisk -l from util-linux 2.20.1-5.8 (sid) there is no such issue, all disks are shown:

[...]

Quoted 8 lines

This seems to be a regression between 2.24.2 and 2.25 and git bisect tells me the first bad commit is: a22c6eb206fb716fa4

Reverting a22c6eb206fb716fa4 and reviving wholedisk.h from 62acb047a625059e77 makes v2.25 fdisk -l work as expected for me.

I'm CCing the upstream developer mailing list to hopefully have some help on finding the proper fix.

Already fixed in upstream tree. The patch will be in 2.25.1 (probably at the end of the next month).

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com