Skip to content

Commit a0c1b89

Browse files
temp: adapt struct layout test
1 parent c90c529 commit a0c1b89

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tests/test_struct_layout.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,31 @@
8585
if platform.system() != 'NetBSD':
8686
STRUCT_NAMES['fuse_file_info'] = ['flags', 'fh', 'lock_owner']
8787

88+
if platform.system == 'SunOS':
89+
STRUCT_NAMES['statvfs'] = [
90+
'f_bavail',
91+
'f_bfree',
92+
'f_blocks',
93+
'f_bsize',
94+
'f_favail',
95+
'f_ffree',
96+
'f_files',
97+
'f_flag',
98+
'f_frsize',
99+
'f_fsid',
100+
'f_namemax',
101+
'f_basetype', # SunOS only
102+
'f_str', # SunOS only
103+
]
104+
STRUCT_NAMES['fuse_context'] = ['fuse', 'uid', 'gid', 'pid'] # no 'umask' on SunOS
105+
STRUCT_NAMES['fuse_conn_info'] = [
106+
'proto_major',
107+
'proto_minor',
108+
'max_write',
109+
'max_readahead',
110+
# 4 attrs not present on SunOS
111+
]
112+
88113
if mfusepy.fuse_version_major == 3:
89114
STRUCT_NAMES['fuse_config'] = [
90115
'set_gid',

0 commit comments

Comments
 (0)