Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed crash and dependencies for OS X #158

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions gdrivefs/gdfs/gdfuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,22 +561,22 @@ 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.")
raise FuseOSError(EIO)

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,
Expand Down
12 changes: 6 additions & 6 deletions gdrivefs/resources/requirements.txt
Original file line number Diff line number Diff line change
@@ -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