Commit 46c2449
committed
Add libfuse 3 support, default on Linux
configure prefers fuse3 (>= 3.4.0) on Linux and falls back to fuse2
when the fuse3 development files are absent, so existing build
environments keep working; --with-fuse2 forces the legacy API and
remains the default on macOS, FreeBSD, and NetBSD. FUSE_USE_VERSION
becomes 31 for fuse3 builds. README documents the new prerequisites
and mount options.
API changes for FUSE 3:
- getattr/truncate absorb fgetattr/ftruncate via the fuse_file_info
argument; chmod, chown, and utimens gain the argument and use the
file handle when the path is NULL (possible under nullpath_ok).
- rename handles flags: RENAME_NOREPLACE returns EEXIST when the
target exists, RENAME_EXCHANGE is rejected with EINVAL.
- readdir and the directory filler gain flag arguments.
- init receives struct fuse_config; use_ino, hard_remove, and
nullpath_ok move there from mount options.
- FUSE_CAP_ASYNC_READ is cleared in init to keep tape reads ordered;
FUSE 3 removed the -o sync_read option and enables asynchronous
reads by default.
- big_writes is gone (always enabled); fuse_parse_cmdline uses
struct fuse_cmdline_opts.
The fuse2 code paths are unchanged and selected with --with-fuse2.1 parent e411539 commit 46c2449
5 files changed
Lines changed: 238 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
201 | 211 | | |
202 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
203 | 221 | | |
204 | 222 | | |
205 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
293 | 325 | | |
294 | 326 | | |
295 | 327 | | |
| |||
461 | 493 | | |
462 | 494 | | |
463 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
464 | 500 | | |
465 | 501 | | |
466 | 502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
0 commit comments