From a34dafcf28026012b3c016778967360d7751d047 Mon Sep 17 00:00:00 2001 From: Yegor Popovych Date: Sat, 18 Jun 2016 13:07:01 +0300 Subject: [PATCH 1/2] Fixed crash with block_size variable names --- gdrivefs/gdfs/gdfuse.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdrivefs/gdfs/gdfuse.py b/gdrivefs/gdfs/gdfuse.py index 43c11f7..b69332d 100644 --- a/gdrivefs/gdfs/gdfuse.py +++ b/gdrivefs/gdfs/gdfuse.py @@ -561,8 +561,8 @@ def statfs(self, filepath): try: account_info = AccountInfo.get_instance() - total = account_info.quota_bytes_total / block_size - used = account_info.quota_bytes_used / block_size + total = account_info.quota_bytes_total / block_size_b + used = account_info.quota_bytes_used / block_size_b free = total - used except: _logger.exception("Could not get account-info.") @@ -570,13 +570,13 @@ def statfs(self, filepath): return { # Optimal transfer block size. - 'f_bsize': block_size, + 'f_bsize': block_size_b, # Total data blocks in file system. 'f_blocks': total, # Fragment size. - 'f_frsize': block_size, + 'f_frsize': block_size_b, # Free blocks in filesystem. 'f_bfree': free, From fac8e0618d4ef179c780e60beea18c6077f8bd45 Mon Sep 17 00:00:00 2001 From: Yegor Popovych Date: Sat, 18 Jun 2016 13:27:13 +0300 Subject: [PATCH 2/2] Updated requirements to new versions --- gdrivefs/resources/requirements.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gdrivefs/resources/requirements.txt b/gdrivefs/resources/requirements.txt index 5e84c13..e44facb 100644 --- a/gdrivefs/resources/requirements.txt +++ b/gdrivefs/resources/requirements.txt @@ -1,9 +1,9 @@ -fusepy==2.0.2 -gevent==1.0 -gipc==0.4.0 +fusepy==2.0.4 +gevent==1.1.1 +gipc==0.6.0 google-api-python-client==1.2 -greenlet==0.4.2 +greenlet==0.4.10 httplib2==0.8 -python-dateutil==2.2 -six==1.7.3 +python-dateutil==2.5.3 +six==1.10.0