aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorLines
2017-05-24lib/meson.build: don't crash if there's no libdlNikolaus Rath-1/+1
For example, FreeBSD doesn't have it. Fixes: #173.
2017-05-24fuse_signals.c: use new do_nothing function instead of SIG_IGNNikolaus Rath-2/+18
Fixes: #160.
2017-05-24Released libfuse 3.0.2Nikolaus Rath-3/+17
2017-05-24Make tests build on bsdBrian Naylor-0/+10
2017-04-20make buffer size match kernel max transfer sizeCarlos Maiolino-3/+5
Currently libfuse has a hardcoded buffer limit to 128kib, while fuse kernel module has a limit up to 32 pages. This patch changes buffer limit to match the current page size, instead of assuming 4096 bytes pages, enabling architectures with bigger pages to use larger buffers, improving performance. Also, add a new macro (HEADER_SIZE) to specify the space needed to accommodate the header, making it easier to understand why those extra 4096 bytes are needed Signed-off-by: Carlos Maiolino <cmaiolino-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-04-14Set default options before parsingTej Chajed-5/+5
2017-04-12Improved documentation of fuse_context.private_dataNikolaus Rath-13/+20
In particular, don't call it "user_data" in one place and "private_data" elsewhere. Changing the name of the variable in the prototype should not affect backwards compatibility. Fixes: #155.
2017-04-10Released 3.0.1Nikolaus Rath-3/+8
2017-04-10Fix travis build script. Broken in e372d.Nikolaus Rath-3/+3
2017-04-10Added ChangeLog for commits c24cc to eb972.Nikolaus Rath-1/+4
2017-04-10Remove 'tests' target in favor of calling py.test directly.Nikolaus Rath-14/+6
Together with the previous commit, this fixes #156.
2017-04-10Build tests by default.Nikolaus Rath-9/+8
2017-04-10Only build test/*.py if out of date.Nikolaus Rath-1/+1
2017-04-07Actually test passthrough* examplesNikolaus Rath-1/+1
Since os.path.join() interprets leading slashes, we were actually never accessing the mountpoint and doing all the tests in the source directory. Fixes: #139
2017-04-07passthrough: implemented create()Nikolaus Rath-0/+14
This allows calls like open(file, O_CREAT|O_RDONLY, 0200) which would otherwise fail because we cannot open the file after mknod() has created it with 0200 permissions.
2017-04-07example/passthrough: use fi->fh for read, write, fallocateNikolaus Rath-7/+21
No reason not to use it. May even be a little faster and will consume less resources :-).
2017-04-07passthrough:truncate(): work on file descriptor when possibleNikolaus Rath-2/+4
This allows truncating an open file even if write permission was removed after open() (which is the expected behavior).
2017-04-07example/passthrough: close open files in release()Nikolaus Rath-5/+2
That way we can use the file descriptor for other operations.
2017-04-07passthrough, passthrough_fh: disable attribute cachingNikolaus Rath-0/+24
Required for better hardlink handling, see comments in patch.
2017-04-07test_examples(): test without debug messages firstNikolaus Rath-1/+1
That way, we are not drowning in messages when a test would also fail without debugging enabled.
2017-04-07test_examples(): avoid false positives from fuse debug outputNikolaus Rath-1/+7
2017-04-07passthrough_ll: only test functions that are actually providedNikolaus Rath-19/+23
This appeared to work because of an unrelated bug that caused us to actually never access the mountpoint at all and do all tests on the lower filesystem. This issue will be fixed in a separate commit.
2017-04-07Fix rst markup.Nikolaus Rath-2/+1
2017-04-07Document true meaning of the 'use_ino' option.Nikolaus Rath-2/+10
2017-04-07Remove checked_unlink()Nikolaus Rath-18/+7
There is no reason why so many tests require the file system to support unlink() and/or rmdir().
2017-04-07Turn tst_mknod() into tst_create()Nikolaus Rath-8/+15
Ensure that we are really creating a new file. Don't attempt to write, we do that in tst_open_write().
2017-04-07Renamed tst_write() to tst_open_write()Nikolaus Rath-7/+12
We are actually testing both opening of an existing file and writing to it.
2017-04-07Added tst_unlink()Nikolaus Rath-0/+13
To check for unlink() support without requiring create()/mknod().
2017-04-07tst_mkdir(): factor out tst_rmdir()Nikolaus Rath-3/+14
This allows testing a filesystem that offers mkdir(), but no rmdir() (and vice versa).
2017-04-07Rename tst_unlink() to tst_open_unlink()Nikolaus Rath-4/+4
This makes more sense, since we are specifically checking unlinking of an open file.
2017-04-07tst_readdir(): don't require create/mkdir supportNikolaus Rath-3/+3
By creating the files in the lower filesystem, we can test readdir() even for filesystems that don't implement create() or mkdir().
2017-04-07passthrough_ll: document that functionality is restrictedNikolaus Rath-1/+5
2017-03-28hello.c: don't use constant instead of magic numberguraga-1/+1
2017-03-16Document that -o auto_unmount implies -o nodev,nosuidNikolaus Rath-0/+5
See also issue #148.
2017-03-15meson.build(): don't use absolute path for include_dir()Nikolaus Rath-3/+2
No longer supported in Meson 0.39.
2017-03-15passthrough_fh: declare support for . and .. lookups.Nikolaus Rath-0/+8
2017-03-15open(): fix documentation of O_TRUNC flagNikolaus Rath-9/+5
The FUSE_CAP_ATOMIC_IO_TRUNC capability is enabled by default, but we didn't update the open() documentation accordingly.
2017-03-15Document minimum required Meson version.Nikolaus Rath-3/+4
Fixes #138.
2017-03-03Optimize fuse_fs_read. (#145)amosonn-10/+34
Redundant copy when only op.read is available removed.
2017-01-23Put -Werror in mesonconf, not CFLAGSNikolaus Rath-3/+2
Putting it in CFLAGS interferes with feature detection.
2017-01-23Pass _GNU_SOURCE as compiler argumentNikolaus Rath-5/+6
Defining it in the file causes trouble because Meson sometimes inserts includes before the first line.
2017-01-12Only use valgrind if requested explicitly + enable address sanitizerNikolaus Rath-14/+21
2017-01-12Switch Travis build to Meson+NinjaNikolaus Rath-22/+74
2017-01-12Added experimental support for building with Meson+NinjaNikolaus Rath-46/+348
2017-01-12Replaced evil pointer magic with offsetof()Nikolaus Rath-2/+2
This triggered undefined behaviour warnings from UBSan.
2017-01-12Rephrased security informationNikolaus Rath-29/+29
The permission caching bug has been present forever, is presumably going to stay around for a while, and is of less concern if allow_other is not used. Since allow_other is disabled by default, I think we can safely make this warning less prominent and document the problem when we describe allow_other. Also, drop the travis build status. It's confusing when reading README.md after extracting the tarball, and I am not sure who benefits from the build status when it is shown on GitHub either.
2017-01-11Return with exitcode 0 if there are no errors.Nikolaus Rath-0/+1
2017-01-10Skip tests if not root and no setuid fusermount3.Nikolaus Rath-2/+41
2017-01-03Don't run whitespace cleanupNikolaus Rath-3/+1
Since existing whitespace usage is not consistent, this causes a lot of spurious whitespace changes.
2016-12-23Set IGNORE_MTAB when running under NetBSDNikolaus Rath-4/+6
Apparently, NetBSD does not have /etc/mtab. Setting IGNORE_MTAB in this case makes the code a little nicer. See also https://github.com/libfuse/libfuse/pull/123