fiDefrag crashes when file is removed during defrag

Bug #256735 reported by Bradley Nampel
6
Affects Status Importance Assigned to Milestone
fiDefrag
Confirmed
Medium
Unassigned

Bug Description

I was just beginning to defrag my /home folder when your program errored out on me. I had Firefox open while fiDefrag built the file list. But while fiDefrag was building the extended info, I closed Firefox. Apparently, this removes a file called 'sessionstore.js' from the .mozilla folder. Having that file in the file list, but not being able to get extended info on it, made fiDefrag spit the following error:

Traceback (most recent call last):
  File "fiDefrag.py", line 259, in <module>
    mfiles.append(mfile(f))
  File "fiDefrag.py", line 198, in __init__
    self.size = filesize(file)
  File "fiDefrag.py", line 56, in filesize
    return os.path.getsize(file)
  File "/usr/lib/python2.5/posixpath.py", line 139, in getsize
    return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: '/home/username/.mozilla/firefox/tvgesguh.default/sessionstore.js'

Revision history for this message
solarwind (x-solarwind-x) wrote :

Thank you for reporting this bug. It's simple to fix. I'll commit another revision when I fix it, should be very soon.

Revision history for this message
solarwind (x-solarwind-x) wrote :

Fixed in revision 37.

Changed in fidefrag:
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Maximilien Cuony (theglu) wrote :

Not fixed ;) :

Traceback (most recent call last):
  File "fiDefrag.py", line 296, in <module>
    defrag(f)
  File "fiDefrag.py", line 146, in defrag
    old_mtime = os.path.getmtime(mfile.file)
  File "/usr/lib/python2.5/posixpath.py", line 143, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/home/

(warning, line based on my lasted patch...)

Changed in fidefrag:
status: Fix Committed → Confirmed
Revision history for this message
solarwind (x-solarwind-x) wrote : Re: [Bug 256735] Re: fiDefrag crashes when file is removed during defrag

Thanks for letting me know. I obviously missed something. I'll look at it in
24 hours.

On Thu, Aug 21, 2008 at 3:44 PM, Maximilien Cuony
<email address hidden>wrote:

> Not fixed ;) :
>
> Traceback (most recent call last):
> File "fiDefrag.py", line 296, in <module>
> defrag(f)
> File "fiDefrag.py", line 146, in defrag
> old_mtime = os.path.getmtime(mfile.file)
> File "/usr/lib/python2.5/posixpath.py", line 143, in getmtime
> return os.stat(filename).st_mtime
> OSError: [Errno 2] No such file or directory: '/home/
>
> (warning, line based on my lasted patch...)
>
> ** Changed in: fidefrag
> Status: Fix Committed => Confirmed
>
> --
> fiDefrag crashes when file is removed during defrag
> https://bugs.launchpad.net/bugs/256735
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in fiDefrag - A filesystem independent defrag tool: Confirmed
>
> Bug description:
> I was just beginning to defrag my /home folder when your program errored
> out on me. I had Firefox open while fiDefrag built the file list. But while
> fiDefrag was building the extended info, I closed Firefox. Apparently, this
> removes a file called 'sessionstore.js' from the .mozilla folder. Having
> that file in the file list, but not being able to get extended info on it,
> made fiDefrag spit the following error:
>
> Traceback (most recent call last):
> File "fiDefrag.py", line 259, in <module>
> mfiles.append(mfile(f))
> File "fiDefrag.py", line 198, in __init__
> self.size = filesize(file)
> File "fiDefrag.py", line 56, in filesize
> return os.path.getsize(file)
> File "/usr/lib/python2.5/posixpath.py", line 139, in getsize
> return os.stat(filename).st_size
> OSError: [Errno 2] No such file or directory:
> '/home/username/.mozilla/firefox/tvgesguh.default/sessionstore.js'
>

--
..::[ solarwind ]::..

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.