Exception when start dumping from file to file

Bug #1227040 reported by Oskar Huminiecki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdiskdump
New
Undecided
Unassigned

Bug Description

The console output is:

  File "gdiskdump.py", line 346, in progressbar_timeout
    frac=(osize/isize)
ZeroDivisionError: float division by zero

The solution is:
In "gdiskdump.py" replace line 346:

frac=(osize/isize)

with:

if isize == 0:
    frac = 0
else:
    frac=(osize/isize)

Revision history for this message
Oskar Huminiecki (oskar-huminiecki) wrote :

Appologies. This bug has different reason. I was dumping device as file and it's size is obviously 0.
So the solution would be not allow 0 lenght files as input.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.