aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindfs.c
AgeCommit message (Collapse)AuthorLines
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
2020-05-07Removed debugging outputRoland Tapken-1/+0
2020-05-07New parameters --map-passwd and --map-groupRoland Tapken-1/+127
These will read the UID and GID mapping from passwd / group files like /etc/passwd and /etc/group. This can be used when restoring backups where IDs differ.
2020-03-22Defined _DARWIN_BETTER_REALPATH to get a non-broken realpath() on Catalina ↵Martin Pärtel-0/+3
(issue #83).
2020-02-12Added --fuse-versionMartin Pärtel-0/+8
2020-02-12Don't add `-ononempty` on FUSE 3, where it has been removed.Martin Pärtel-2/+3
FUSE 3 allows nonempty directories by default.
2019-06-26Resolve symlinks in readdir() so correct attributes are returned.Martin Pärtel-3/+31
Fixes #76
2019-04-29Added --forward-odirect. bindfs now won't forward O_DIRECT by default.Martin Pärtel-14/+51
Follow-up to #74.
2019-04-28Switched from readdir_r to readdir since the former has been deprecated.Martin Pärtel-11/+6
2019-04-28Cleanups, tests and optimizations for #74.Martin Pärtel-21/+54
2019-04-12Made bindfs mounts work with files opened with O_DIRECTBar Perach-2/+40
2019-03-27(formatting)Martin Pärtel-3/+3
2019-03-26Fix issue where sgid is set and gid-offset is usedEytan Heidingsfeld-5/+10
2018-10-09Don't call realpath() on source dirs starting with "/proc/".Martin Pärtel-5/+10
Fixes #66.
2017-11-30Cleaned up PR #61.Martin Pärtel-25/+25
For consistency, renamed the new options to --delete-deny and --rename-deny.
2017-11-29src/bindfs.cAlan Knowles-1/+1
2017-11-29src/bindfs.cAlan Knowles-2/+32
2017-06-17Work around `pathconf(..., _PC_NAME_MAX)` erroneously returning 0 for some ↵Martin Pärtel-0/+4
source filesystems. Fixes #54
2017-04-19Added option: --block-devices-as-filesMartin Pärtel-2/+41
Fixes #53.
2017-03-13Fixed compiling on FreeBSD.Martin Pärtel-0/+3
Fixes #51. Test suite changes will come in a later commit.
2017-03-13Fixed some error messages related to --mapMartin Pärtel-3/+3
2017-02-04Deprecate -n as an alias for --no-allow-other.Martin Pärtel-1/+1
This partially addresses #48.
2017-01-29Fixed #47 by not setting `-ofsname=` when it would contain a comma.Martin Pärtel-2/+9
Also banned some other characters that are likely to lead to trouble.
2017-01-29(remove unused enum value)Martin Pärtel-2/+1
2016-10-15Fix #41 (seeking in directory).Martin Pärtel-48/+16
Since version 1.31.1, bindfs has implemented readdir by always reading the entire directory and passing 0 offset to filler, but this does not work if the same directory pointer is rewound and reused. We remove the opendir and closedir implementations (which FUSE permits) and now always opendir() and closedir() in readdir. Alternatively we could have added a rewinddir() to our readdir.
2016-10-02Require at least FUSE 2.8, and 2.9 for lock forwarding.Martin Pärtel-0/+12
Fixes #40.
2016-09-25Remove seekdir() call from bindfs_readdir().Martin Pärtel-2/+3
A regression was introduced in bindfs 1.13.1 with the fix (or rather, workaround) for #28. FUSE's contract for readdir says that if `filler` is passed a zero offset then the readdir implementation should ignore the offset parameter, but we didn't. Fixes #39.
2016-07-31Implemented --enable-lock-forwarding.Martin Pärtel-3/+56
This should address #36.
2016-07-31Mention --enable-ioctl in --help.Martin Pärtel-0/+1