Commit 01c449f
committed
Support the FUSE 3 build on macOS with macFUSE 5
macFUSE 5 ships a libfuse 3 whose operation signatures default to
Darwin-specific types (struct fuse_darwin_attr, struct statfs, a
Darwin directory filler). Define FUSE_DARWIN_ENABLE_EXTENSIONS=0 in
ltfs_fuse_version.h so the upstream-compatible signatures are used;
the library exports both symbol flavors.
The macFUSE position argument of the xattr handlers exists only in
the fuse2 API and the Darwin-extension mode, so the FUSE 3 build now
uses the upstream xattr signatures (LTFS_XATTR_POSITION).
Verified on macOS 26 (arm64) against the macFUSE 5.2.0 SDK
(libfuse 3.18.2): autotools (--with-fuse2=no) and CMake
(-DLTFS_WITH_FUSE2=OFF) both build without new warnings, link
libfuse3.4.dylib, and the binaries run; parallel_direct_writes is
detected. The macOS fuse2 builds and the Linux test suites
(autotools make check and ctest, 14/14) are unaffected.1 parent bc1ca17 commit 01c449f
3 files changed
Lines changed: 24 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
| |||
1135 | 1142 | | |
1136 | 1143 | | |
1137 | 1144 | | |
1138 | | - | |
| 1145 | + | |
1139 | 1146 | | |
1140 | 1147 | | |
1141 | 1148 | | |
1142 | 1149 | | |
1143 | 1150 | | |
1144 | | - | |
| 1151 | + | |
1145 | 1152 | | |
1146 | 1153 | | |
1147 | 1154 | | |
| |||
1155 | 1162 | | |
1156 | 1163 | | |
1157 | 1164 | | |
1158 | | - | |
| 1165 | + | |
1159 | 1166 | | |
1160 | 1167 | | |
1161 | 1168 | | |
1162 | 1169 | | |
1163 | 1170 | | |
1164 | 1171 | | |
1165 | | - | |
| 1172 | + | |
1166 | 1173 | | |
1167 | 1174 | | |
1168 | 1175 | | |
| |||
1171 | 1178 | | |
1172 | 1179 | | |
1173 | 1180 | | |
1174 | | - | |
| 1181 | + | |
1175 | 1182 | | |
1176 | 1183 | | |
1177 | 1184 | | |
1178 | 1185 | | |
1179 | | - | |
| 1186 | + | |
1180 | 1187 | | |
1181 | 1188 | | |
1182 | 1189 | | |
| |||
1190 | 1197 | | |
1191 | 1198 | | |
1192 | 1199 | | |
1193 | | - | |
| 1200 | + | |
1194 | 1201 | | |
1195 | 1202 | | |
1196 | 1203 | | |
| |||
1204 | 1211 | | |
1205 | 1212 | | |
1206 | 1213 | | |
1207 | | - | |
| 1214 | + | |
1208 | 1215 | | |
1209 | 1216 | | |
1210 | 1217 | | |
| |||
0 commit comments