aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindfs.c
AgeCommit message (Collapse)AuthorLines
2025-08-17Add "-osubtype" to mount with the correct file system type.Pedro Nishiyama-0/+13
Fixes #72
2025-06-08-onoattrcache with fuse-t by default. Maybe it gets rid of test flakiness.Martin Pärtel-0/+4
2025-06-08Attempt to fix MacFuse compatibilityMartin Pärtel-7/+7
2025-06-08MacOS/fuse-t fixesMartin Pärtel-6/+0
2025-06-01Incorporate some fixes from #166Martin Pärtel-0/+1
2025-04-10FUSE_FILL_DIR_DEFAULTS is not defined with older Fuse headers.Martin Pärtel-1/+1
2025-04-10readdir: do full stat when FUSE_READDIR_PLUS was requestedJan Palus-22/+37
Fixes #159
2024-06-05Warn that lock forwarding does not forward flock() on FreeBSD.Martin Pärtel-0/+7
2023-11-20bindfs.c: Fix bindfs_init signature for all but FUSE 3Sebastian Pipping-3/+3
Related commit: https://github.com/libfuse/libfuse/commit/6c66dac9f229d0035f83ae63d9033e4f51d9c5c8
2023-11-20src|tests: Address warning -Wstrict-prototypesSebastian Pipping-12/+12
Symptom with Clang 15: > In file included from userinfo.c:20: > ./userinfo.h:38:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] > void invalidate_user_cache(); /* safe to call from signal handler */ > ^ > void > [many more]
2023-11-20bindfs.c: Address warning -Wunused-functionSebastian Pipping-0/+4
Symptom with GCC 13: > bindfs.c:1470:12: error: 'bindfs_flock' defined but not used [-Werror=unused-function] > static int bindfs_flock(const char *path, struct fuse_file_info *fi, int op) > ^~~~~~~~~~~~ > bindfs.c:1458:12: error: 'bindfs_lock' defined but not used [-Werror=unused-function] > static int bindfs_lock(const char *path, struct fuse_file_info *fi, int cmd, > ^~~~~~~~~~~
2023-11-20bindfs.c: Address warning -Wsign-compareSebastian Pipping-1/+1
Symptom with Apple GCC: > bindfs.c:1677:26: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'ssize_t' (aka 'long') [-Werror,-Wsign-compare] > } while (len < res); > ~~~ ^ ~~~
2023-11-14bindfs.c: Address warning -Wunused-parameterSebastian Pipping-0/+29
2023-11-14bindfs.c|usermap.c: Address warning -Wsign-compareSebastian Pipping-8/+8
For example: > src/bindfs.c: In function ‘getattr_common’: > src/bindfs.c:449:26: error: comparison of integer expressions of different signedness: ‘uid_t’ {aka ‘unsigned int’} and ‘int’ [-Werror=sign-compare] > 449 | if (settings.new_uid != -1) > | ^~ >
2023-11-10Avoid undefined behaviour if uid_t/gid_t is signed.Martin Pärtel-32/+42
This drops support for CentOS 7 because its GCC is too old to support `__builtin_add_overflow`, and its EOL'ing in about half a year anyway. Fixes #143
2023-11-09Support negative --{uid,gid}-offsetMartin Pärtel-22/+31
Fixes #142
2023-07-15Use MacOS socket file code on FreeBSD too.Martin Pärtel-3/+7
2023-07-14resolves #132 add support for AF_UNIX bind on macOSMarat Radchenko-2/+30
2023-06-03Added statfs_x implementation for MacOS.Martin Pärtel-0/+25
Fixes #130
2023-02-07Fixed FD leak when using --block-devices-as-files (#125)Martin Pärtel-4/+5
2022-10-17Fixed --resolve-symlinks when mountpoint name starts with source dir name.Martin Pärtel-2/+2
Fixes #122
2022-10-07Basic OpenBSD support. The test suite does not pass yet.Martin Pärtel-0/+13
For #121
2022-07-12Reverted change in 1.16.0 that made direct_io the default.Martin Pärtel-1/+6
Fixes #117
2022-06-24Fixed build on FreeBSD (and probably MacOS).Martin Pärtel-1/+7
Fixed #ifdefs areound direct_io.
2022-06-24Line up another option in --helpSergei Shilovsky-1/+1
2022-06-23Like up list of options in --helpSergei Shilovsky-4/+4
Co-authored-by: Martin Pärtel <martin.partel@gmail.com>
2022-06-23Fix -o analogue for --map-*-revSergei Shilovsky-2/+2
Co-authored-by: Martin Pärtel <martin.partel@gmail.com>
2022-06-22--map-passwd-rev and --map-group-revSergei Shilovsky-0/+27
2022-04-03Made direct-io the default after all, and added --no-direct-io.Martin Pärtel-5/+5
#110
2022-04-03Added --direct-ioMartin Pärtel-2/+13
Issue #110, thanks @DUOLabs333 for the initial patch.
2021-05-04Cleanups.Martin Pärtel-67/+0
2021-02-13Refactored and unit-tested filter_special_opts. Shaved a bunch of yaks on ↵Martin Pärtel-124/+26
the way.
2021-02-13filter_special_opts: allocate space for null terminator.Martin Pärtel-7/+7
2021-02-13filter_special_opts: minor cleanupsMartin Pärtel-47/+46
2021-01-30Disabled caches in bindfs_init in FUSE 3 mode + minor cleanups.Martin Pärtel-6/+14
2021-01-30Disabled test "preserves readdir inode numbers" in FUSE 3 mode for now.Martin Pärtel-1/+3
2021-01-30Fixed bindfs_ioctl signature on FUSE3Martin Pärtel-2/+2
2021-01-30bindfs_rename: removed fallback codepath.Martin Pärtel-78/+13
It seems to only be useful if someone wants to emulate renameat2 on an older system or an exotic FS, with an application that they can't modify, and assuming bindfs is single-threadedly the only accesspoint to the underlying FS. May reconsider if someone turns up with such a use case.
2021-01-30(IDE removed some trailing whitespace)Martin Pärtel-19/+19
2021-01-28Enhanced filter_special_opts to handle comma seperated optionsMcBane-13/+90
2021-01-27Changes to satisfy Valgrind + more intendation fixesMcBane-37/+33
2021-01-27Sqgfault fix + Comments cleanup + intendation fixMcBane-29/+24
2021-01-27Initial Fuse 3 support + Support to allow some special optionsMcBane-3/+334
2021-01-24Added support for `-o fsname`Martin Pärtel-3/+11
For #94
2021-01-16Non-zero exit code when bindfs_init fails.Martin Pärtel-1/+4
Fixes #93
2020-09-23Added copy-pasta for flock() required by MacOS / XCode 12.Martin Pärtel-0/+7
Fixes #88
2020-09-23Added missing include for "sys/file.h" (for flock()).Martin Pärtel-0/+3
2020-05-13Fixed a line ending bug with uid/gid mapping files that I introduced when ↵Martin Pärtel-1/+1
merging #85.
2020-05-10Added test case for #85 and fixed a minor UX issue with it.Martin Pärtel-6/+12
2020-05-08TypoRoland Tapken-1/+1