Bug 1202443

Summary: blockdev: /dev/sda: failed to read partition start from sysfs: No such file or directory
Product: [Fedora] Fedora Reporter: Jan Stodola <jstodola>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 22CC: jonathan, kzak
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: util-linux-2.26.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-06 09:09:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
strace blockdev --report /dev/sda none

Description Jan Stodola 2015-03-16 15:45:49 UTC
Description of problem:
blockdev fails to report information about disk devices:

[root@localhost ~]# blockdev --report /dev/sda
RO    RA   SSZ   BSZ   StartSec            Size   Device
blockdev: /dev/sda: failed to read partition start from sysfs: No such file or directory
[root@localhost ~]#


But it is possible to display information about partitions on that disk:

[root@localhost ~]# blockdev --report /dev/sda1 
RO    RA   SSZ   BSZ   StartSec            Size   Device
rw   256   512  1024       2048       524288000   /dev/sda1
[root@localhost ~]# blockdev --report /dev/sda2
RO    RA   SSZ   BSZ   StartSec            Size   Device
rw   256   512  4096    1026048      8064598016   /dev/sda2
[root@localhost ~]#


Older version of util-linux (2.26-0.2.fc22) works correctly:

[root@localhost ~]# blockdev --report /dev/sda
RO    RA   SSZ   BSZ   StartSec            Size   Device
rw   256   512  4096          0      8589934592   /dev/sda
[root@localhost ~]#

Version-Release number of selected component (if applicable):
util-linux-2.26-1.fc22.x86_64
kernel 4.0.0-0.rc3.git0.1.fc22.x86_64 and 3.18.9-200.fc21.x86_64

How reproducible:
always

Steps to Reproduce:
1. blockdev --report /dev/sda

Actual results:
blockdev: /dev/sda: failed to read partition start from sysfs: No such file or directory

Expected results:
disk information is printed

Additional information:
This regression has been introduced between util-linux-2.26-0.2.fc22 (works fine) and util-linux-2.26-0.3.fc22 (fails)

Comment 1 Jan Stodola 2015-03-16 15:47:52 UTC
Created attachment 1002381 [details]
strace blockdev --report /dev/sda

Comment 2 Karel Zak 2015-03-17 10:14:37 UTC
Fixed by upstream commit 95305cec15750f2b6e938c9939f58fe70d252395. Fedora package will be updated ASAP. Thanks!