Bug 1202443 - blockdev: /dev/sda: failed to read partition start from sysfs: No such file or directory
Summary: blockdev: /dev/sda: failed to read partition start from sysfs: No such file o...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 22
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-16 15:45 UTC by Jan Stodola
Modified: 2015-05-06 09:09 UTC (History)
2 users (show)

Fixed In Version: util-linux-2.26.2
Clone Of:
Environment:
Last Closed: 2015-05-06 09:09:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
strace blockdev --report /dev/sda (4.58 KB, text/plain)
2015-03-16 15:47 UTC, Jan Stodola
no flags Details

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!


Note You need to log in before you can comment on or make changes to this bug.