bugranger - Bugs: bug #35495, Crash in os.statvfs for...

 
 

bug #35495: Crash in os.statvfs for sshfs-mounted directory (operation not supported)

Submitted by:  None
Submitted on:  Thu 09 Feb 2012 09:20:09 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 09 Feb 2012 10:41:56 PM UTC, comment #2:

Works fine, thank you so much for quick reply!

Anonymous
Thu 09 Feb 2012 09:29:42 PM UTC, comment #1:

Please update and test it again. This exception is now caught but there might be others still running wild.

Roman Z. <hut>
Project Administrator
Thu 09 Feb 2012 09:20:09 PM UTC, original submission:

Ranger crashes every time I enter sshfs-mounted directory "/mnt/n00k". Mounted media type is FAT32, shell daemon is SSHDroid (statfs syscall for target returns EOPNOTSUPP). Seems like unhandled exception in ranger.

ranger version: 1.5.2, executed with python 3.2.2
Locale: en_US.UTF-8
Current file: /mnt/n00k/Books
Traceback (most recent call last):
File "/usr/lib/python3.2/site-packages/ranger/core/main.py", line 132, in main
fm.loop()
File "/usr/lib/python3.2/site-packages/ranger/core/fm.py", line 191, in loop
ui.redraw()
File "/usr/lib/python3.2/site-packages/ranger/gui/ui.py", line 261, in redraw
self.draw()
File "/usr/lib/python3.2/site-packages/ranger/gui/ui.py", line 287, in draw
DisplayableContainer.draw(self)
File "/usr/lib/python3.2/site-packages/ranger/gui/displayable.py", line 266, in draw
displayable.draw()
File "/usr/lib/python3.2/site-packages/ranger/gui/widgets/statusbar.py", line 111, in draw
self._calc_bar()
File "/usr/lib/python3.2/site-packages/ranger/gui/widgets/statusbar.py", line 117, in _calc_bar
self._get_right_part(bar)
File "/usr/lib/python3.2/site-packages/ranger/gui/widgets/statusbar.py", line 247, in _get_right_part
target.mount_path), separator='') + " free")
File "/usr/lib/python3.2/site-packages/ranger/core/environment.py", line 150, in get_free_space
stat = os.statvfs(path)
OSError: [Errno 95] Operation not supported: '/mnt/n00k'

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hut (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 09 Feb 2012 10:43:12 PM UTChutOpen/ClosedOpen=>Closed
    Thu 09 Feb 2012 10:43:03 PM UTChutStatusIn Progress=>Fixed
    Thu 09 Feb 2012 09:29:42 PM UTChutStatusNone=>In Progress

    Back to the top


    Powered by Savane 3.1-cleanup1