Bug 675333 - Bad calculation of free space
Summary: Bad calculation of free space
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-disk-utility
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Zeuthen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-04 22:56 UTC by David Timms
Modified: 2013-03-06 04:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 12:56:11 UTC
Type: ---


Attachments (Terms of Use)
create partition initial state (151.43 KB, image/png)
2011-02-04 22:56 UTC, David Timms
no flags Details
slider position moved to first step (149.46 KB, image/png)
2011-02-04 22:57 UTC, David Timms
no flags Details
gparted view of the same (101.77 KB, image/png)
2011-02-04 22:58 UTC, David Timms
no flags Details
fdisk log (7.19 KB, text/plain)
2011-02-04 23:03 UTC, David Timms
no flags Details
raw disk first 512 bytes. (512 bytes, application/octet-stream)
2011-02-04 23:08 UTC, David Timms
no flags Details
parted view of the same (2.65 KB, text/plain)
2011-02-04 23:15 UTC, David Timms
no flags Details

Description David Timms 2011-02-04 22:56:51 UTC
Created attachment 477130 [details]
create partition initial state

Description of problem:
A 750 GB disk has 2.4MiB of free sectors at the end (gparted). g-d-u is showing this incorrectly as 18 446 744 TB (-256,636,929,024 bytes).

Version-Release number of selected component (if applicable):
gnome-disk-utility-2.32.0-1.fc14.x86_64

How reproducible:
Yes, with this current disk.

Steps to Reproduce:
1. g-d-u
2. drive 750G sdc
3. volumes: click right-most partition (free space).

4. Create Partition.

5. move the slider down to smallest step

6. check date

Actual results:
3. Both the graphic and the detail below show this space incorrectly as:
18 446 744 TB (-256,636,929,024 bytes).

4. slider control - text value shows: 18446743817.073 GB

5. 1000000000.000 GB [1000000 TB] is the first step.

6. it isn't April 1st.

Expected results:

3, 4, 5: 2.4MB free
6: April 1st.

Additional info: Assuming the above are the same symptoms with the same cause.

Perhaps: there needs to be an assertion (disk size is positive) and (disk size is smaller than disk sizes possible in the expected life of g-d-u.

Since I am doing partitioning changes this week, if my test case is useful, please state so as soon as possible !

Comment 1 David Timms 2011-02-04 22:57:45 UTC
Created attachment 477132 [details]
slider position moved to first step

Comment 2 David Timms 2011-02-04 22:58:28 UTC
Created attachment 477133 [details]
gparted view of the same

Comment 3 David Timms 2011-02-04 23:03:31 UTC
Created attachment 477137 [details]
fdisk log

This shows fdisk's view of the same disk.

Comment 4 David Timms 2011-02-04 23:08:23 UTC
Created attachment 477139 [details]
raw disk first 512 bytes.

# dd if=/dev/sdc of=bug.gnome-disk-utility.part-table.raw bs=512 count=1

Comment 5 David Timms 2011-02-04 23:15:27 UTC
Created attachment 477142 [details]
parted view of the same

Comment 6 Fedora End Of Life 2012-08-16 12:56:14 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached 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 to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

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 process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


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