summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Pearson <greg.pearson@hpe.com>2016-02-09 11:58:32 -0700
committerGreg Pearson <greg.pearson@hpe.com>2016-02-09 11:58:32 -0700
commit220ab76b5d1a95ffced0e48023abdea926ae6bfc (patch)
treea5f026a7099a5ab4870fd0bc3f264a40c2511196
parent27d76e442d96139f9038d83d23275877fa3d3c9b (diff)
downloadfusepy-220ab76b5d1a95ffced0e48023abdea926ae6bfc.tar.gz
Add support for arm64 architecture
-rw-r--r--README.rst2
-rw-r--r--fuse.py17
2 files changed, 18 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index cbdd977..92f07e4 100644
--- a/README.rst
+++ b/README.rst
@@ -28,7 +28,7 @@ To get started download_ fusepy or just browse the source_.
fusepy requires FUSE 2.6 (or later) and runs on:
-- Linux (i386, x86_64, PPC)
+- Linux (i386, x86_64, PPC, arm64)
- Mac OS X (Intel, PowerPC)
- FreeBSD (i386, amd64)
diff --git a/fuse.py b/fuse.py
index 7a03d61..5150453 100644
--- a/fuse.py
+++ b/fuse.py
@@ -171,6 +171,23 @@ elif _system == 'Linux':
('st_atimespec', c_timespec),
('st_mtimespec', c_timespec),
('st_ctimespec', c_timespec)]
+ elif _machine == 'aarch64':
+ c_stat._fields_ = [
+ ('st_dev', c_dev_t),
+ ('st_ino', c_ulong),
+ ('st_mode', c_mode_t),
+ ('st_nlink', c_uint),
+ ('st_uid', c_uid_t),
+ ('st_gid', c_gid_t),
+ ('st_rdev', c_dev_t),
+ ('__pad1', c_ulong),
+ ('st_size', c_off_t),
+ ('st_blksize', c_int),
+ ('__pad2', c_int),
+ ('st_blocks', c_long),
+ ('st_atimespec', c_timespec),
+ ('st_mtimespec', c_timespec),
+ ('st_ctimespec', c_timespec)]
else:
# i686, use as fallback for everything else
c_stat._fields_ = [