Red Hat Bugzilla – Bug 1275135
RHEL6: "sfdisk -s" can't list the disk size
Last modified: 2017-03-21 07:26:59 EDT
Description of problem:
when the disk size is 1073741823 blocks(about 1T), the sfdisk -s can't list the disk size
Version-Release number of selected component (if applicable):
sfdisk (util-linux-ng 2.17.2)
Steps to Reproduce:
1.create a system with the disk size 1099511626752 bytes(1073741823 blocks)
2.run "sfdisk -s"
total: 20475904 blocks
# sfdisk -s
total: 1094217727 blocks
From the sfdisk.c source code, we can see when the disk size is 1073741823, it will return immediately. But "sfdisk -s /dev/sda" can works well.
/* a CDROM drive without mounted CD yields MAXINT */
2819 if (silent && size == ((1<<30)-1))
Created attachment 1086374 [details]
the actual result
It really seems like crazy heuristic. Thanks for your report.
Is there any update for this issue? Thanks.
wangleziji, bugzilla is not the right place where you can ask
for official RHEL support. Please, use support.redhat.com. I cannot promise any schedule for this bug. Thanks.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.