Exception when start dumping from file to file
Bug #1227040 reported by
Oskar Huminiecki
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=
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=
To post a comment you must log in.
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.