aboutsummaryrefslogtreecommitdiff
path: root/example
Commit message (Collapse)AuthorAge
* example/{hello,null}: Fix memory leaksGravatar Rostislav Skudnov2018-07-23
|
* Invert calloc(3) argument order (`nmemb` comes first)Gravatar Tomohiro Kusumi2018-04-13
| | | | | No functional difference expected, but should still follow the standard. http://pubs.opengroup.org/onlinepubs/009695399/functions/calloc.html
* Fix build error on DragonFlyBSD (sync with other *BSD) (#240)Gravatar Tomohiro Kusumi2018-03-28
| | | | | | | | | DragonFlyBSD has no "bsd" in uname, so add 'dragonfly' to conditionals. -- e.g. uname(1) in DragonFlyBSD [root@ ~]# uname DragonFly [root@ ~]# python -c "import sys; print(sys.platform)" dragonfly5
* Fix typo in "passthrough" docstring (#229)Gravatar Mateusz Urbańczyk2018-01-15
|
* Spelling (#223)Gravatar Josh Soref2017-11-27
| | | Fix spelling errors
* Removed unneccessary #include <config.h> from examplesGravatar Nikolaus Rath2017-09-25
| | | | Fixes: #208.
* example/ioctl: build on FreeBSD, but add protocol check instead.Gravatar Nikolaus Rath2017-08-25
|
* examples/{ioctl,null}: don't build under FreeBSD instead of skipping tests.Gravatar Nikolaus Rath2017-08-25
|
* printcap: use temporary directory, not fileGravatar Nikolaus Rath2017-08-24
| | | | Mounting a file doesn't seem to work under FreeBSD.
* passthrough_ll: only active EXPORT_SUPPORT of supported by kernel.Gravatar Nikolaus Rath2017-08-24
|
* Dropped support for building with autotoolsGravatar Nikolaus Rath2017-08-24
| | | | It's just too much pain to keep it working.
* Renamed notify_inval_inode_fh to invalidate_pathGravatar Nikolaus Rath2017-08-24
| | | | The previous name didn't make much sense.
* Allow inode cache invalidation in high-level APIGravatar Sławek Rudnicki2017-08-24
| | | | | | | | | | | We re-introduce the functionality of invalidating the caches for an inode specified by path by adding a new routine fuse_invalidate_path. This is useful for network-based file systems which use the high-level API, enabling them to notify the kernel about external changes. This is a revival of Miklos Szeredi's original code for the fuse_invalidate routine.
* Added examples/printcapGravatar Nikolaus Rath2017-08-23
|
* Make passthrough_fh work under FreeBSD.Gravatar Nikolaus Rath2017-08-22
|
* Fix two compiler warnings.Gravatar Nikolaus Rath2017-08-22
|
* Don't build passthrough_ll under BSD.Gravatar Nikolaus Rath2017-08-11
|
* Added writeback cache to passthrough_llGravatar Nikolaus Rath2017-08-06
| | | | | | | | This fixes issue #191 (where the test was done by simply adding FUSE_CAP_WRITEBACK_CACHE without adjusting the flags in the open() call). Fixes: #191.
* Removed compat stuff in passthrough_llGravatar Nikolaus Rath2017-08-06
| | | | | | As the comment says, this made it compile but not work. If there is a need, we can add these checks to meson.build to only build this file if the prerequisites are satisfied.
* passthrough_ll: added more debugging outputGravatar Nikolaus Rath2017-08-04
|
* Fix compilation on 32bit systemsGravatar Nikolaus Rath2017-08-03
| | | | Fixes: #185.
* Fix compiler warnings of gcc-5.4.xGravatar Banglang2017-08-01
| | | | Signed-off-by: Banglang <banglang.huang@foxmail.com>
* Added public fuse_lib_help(), bumped minor versionGravatar Nikolaus Rath2017-07-08
|
* examples/passthrough_ll: added support for create()Gravatar Nikolaus Rath2017-06-05
|
* example/passthrough_ll: added write supportGravatar Nikolaus Rath2017-06-05
|
* notify_store_retrieve(): fix race on unmountGravatar Nikolaus Rath2017-05-31
| | | | | | | update_fs_loop() is still running when the filesystem unmounts, but it that case calls to fuse_lowlevel_notify_* will fail. Fixes: #105.
* example/notify_store_retrieve: add debugging code for issue #105.Gravatar Nikolaus Rath2017-05-31
|
* Revert "example/passthrough.c: add debugging code for issue #157."Gravatar Nikolaus Rath2017-05-31
| | | | This reverts commit 179fa13b40387645e722089873079488f9dbe3d8.
* passthrough_ll: document that fuse_ino_t and uintptr_t sizes must matchGravatar Nikolaus Rath2017-05-25
| | | | | | | We can consider changing the code to drop the requirement if it turns out that there's a system where this isn't given. Fixes issue #167.
* example/passthrough.c: add debugging code for issue #157.Gravatar Nikolaus Rath2017-05-25
|
* passthrough: implemented create()Gravatar Nikolaus Rath2017-04-07
| | | | | | 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.
* example/passthrough: use fi->fh for read, write, fallocateGravatar Nikolaus Rath2017-04-07
| | | | | No reason not to use it. May even be a little faster and will consume less resources :-).
* passthrough:truncate(): work on file descriptor when possibleGravatar Nikolaus Rath2017-04-07
| | | | | This allows truncating an open file even if write permission was removed after open() (which is the expected behavior).
* example/passthrough: close open files in release()Gravatar Nikolaus Rath2017-04-07
| | | | That way we can use the file descriptor for other operations.
* passthrough, passthrough_fh: disable attribute cachingGravatar Nikolaus Rath2017-04-07
| | | | Required for better hardlink handling, see comments in patch.
* passthrough_ll: document that functionality is restrictedGravatar Nikolaus Rath2017-04-07
|
* hello.c: don't use constant instead of magic numberGravatar guraga2017-03-28
|
* passthrough_fh: declare support for . and .. lookups.Gravatar Nikolaus Rath2017-03-15
|
* Added experimental support for building with Meson+NinjaGravatar Nikolaus Rath2017-01-12
|
* Replaced evil pointer magic with offsetof()Gravatar Nikolaus Rath2017-01-12
| | | | This triggered undefined behaviour warnings from UBSan.
* Return with exitcode 0 if there are no errors.Gravatar Nikolaus Rath2017-01-11
|
* Added documentation and test case for null exampleGravatar Nikolaus Rath2016-12-23
|
* Fixed use of uninitialized memory.Gravatar Nikolaus Rath2016-12-23
|
* Revert "Dropped example/null.c"Gravatar Csaba Henk2016-12-23
| | | | | | | | | | | This reverts commit d5cdbb94a0650b0a462682cf0a84463ff1513900. null works completely fine, just the mountpoint should be a regular file -- so there is no need to dismiss it. Also: - fixing up compiler warnings - checking if the mountpoint is a regular file
* Fix a grammatical error.Gravatar Jay Hankins2016-12-04
|
* examples/passthrough_ll.c: Include <limits.h> (for PATH_MAX macro).Gravatar Przemyslaw Pawelczyk2016-11-28
| | | | | | | | | | Otherwise building w/o optimization (-O0) fails. passthrough_ll.c: In function 'lo_readlink': passthrough_ll.c:251:11: error: 'PATH_MAX' undeclared (first use in this function) char buf[PATH_MAX + 1]; (gcc v5.3.0 in Alpine Linux v3.4.6 x86_64 w/ musl-libc v1.1.14.)
* examples/passthrough_ll.c: Close root fd before application ends.Gravatar Przemyslaw Pawelczyk2016-11-28
| | | | | If we want to do, what system would do anyway upon program termination, then let's try to be a bit more scrupulous.
* examples/passthrough_ll.c: Fix segfault when showing help or version.Gravatar Przemyslaw Pawelczyk2016-11-28
| | | | | | root lo_inode's next and prev were not set early enough, which led to accessing addr 0x8 (or 0x4, depending on ptr size) when setting prev variable in lo_free(lo.root.next), because lo.root.next was NULL.
* silence bogus eclipse linter warningGravatar divinity762016-10-31
| | | "No break at the end of case cuse.c /example line 235 Code Analysis Problem"
* Clean-up doxygen documentationGravatar Nikolaus Rath2016-10-28
| | | | Fixes: #81.