summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrncry <rncry@users.noreply.github.com>2015-12-03 16:25:12 +0000
committerrncry <rncry@users.noreply.github.com>2015-12-03 16:25:12 +0000
commit0a87f4dd32428688e6097c3ee540fff7c5724eef (patch)
tree9e04333114e39a41dba03b8ba4ac978ab900cb35
parent27d76e442d96139f9038d83d23275877fa3d3c9b (diff)
downloadfusepy-0a87f4dd32428688e6097c3ee540fff7c5724eef.tar.gz
Added missing fields in statvfs on linux
Added the fields to ensure compatibility with linux. f_namemax is important for some operations.
-rw-r--r--fuse.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/fuse.py b/fuse.py
index 7a03d61..8b331cd 100644
--- a/fuse.py
+++ b/fuse.py
@@ -203,7 +203,11 @@ class c_statvfs(Structure):
('f_bavail', c_fsblkcnt_t),
('f_files', c_fsfilcnt_t),
('f_ffree', c_fsfilcnt_t),
- ('f_favail', c_fsfilcnt_t)]
+ ('f_favail', c_fsfilcnt_t),
+ ('f_fsid', c_ulong),
+ #('unused', c_int),
+ ('f_flag', c_ulong),
+ ('f_namemax', c_ulong)]
if _system == 'FreeBSD':
c_fsblkcnt_t = c_uint64