aboutsummaryrefslogtreecommitdiffstats
path: root/example
AgeCommit message (Collapse)AuthorLines
2017-08-03Fix compilation on 32bit systemsNikolaus Rath-6/+6
Fixes: #185.
2017-08-01Fix compiler warnings of gcc-5.4.xBanglang-2/+2
Signed-off-by: Banglang <banglang.huang@foxmail.com>
2017-07-08Added public fuse_lib_help(), bumped minor versionNikolaus Rath-12/+12
2017-06-05examples/passthrough_ll: added support for create()Nikolaus Rath-1/+23
2017-06-05example/passthrough_ll: added write supportNikolaus Rath-1/+21
2017-05-31notify_store_retrieve(): fix race on unmountNikolaus Rath-4/+11
update_fs_loop() is still running when the filesystem unmounts, but it that case calls to fuse_lowlevel_notify_* will fail. Fixes: #105.
2017-05-31example/notify_store_retrieve: add debugging code for issue #105.Nikolaus Rath-2/+10
2017-05-31Revert "example/passthrough.c: add debugging code for issue #157."Nikolaus Rath-9/+2
This reverts commit 179fa13b40387645e722089873079488f9dbe3d8.
2017-05-25passthrough_ll: document that fuse_ino_t and uintptr_t sizes must matchNikolaus Rath-0/+13
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.
2017-05-25example/passthrough.c: add debugging code for issue #157.Nikolaus Rath-2/+9
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-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-15passthrough_fh: declare support for . and .. lookups.Nikolaus Rath-0/+8
2017-01-12Added experimental support for building with Meson+NinjaNikolaus Rath-0/+31
2017-01-12Replaced evil pointer magic with offsetof()Nikolaus Rath-2/+2
This triggered undefined behaviour warnings from UBSan.
2017-01-11Return with exitcode 0 if there are no errors.Nikolaus Rath-0/+1
2016-12-23Added documentation and test case for null exampleNikolaus Rath-5/+8
2016-12-23Fixed use of uninitialized memory.Nikolaus Rath-0/+1
2016-12-23Revert "Dropped example/null.c"Csaba Henk-1/+139
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
2016-12-04Fix a grammatical error.Jay Hankins-1/+1
2016-11-28examples/passthrough_ll.c: Include <limits.h> (for PATH_MAX macro).Przemyslaw Pawelczyk-0/+1
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.)
2016-11-28examples/passthrough_ll.c: Close root fd before application ends.Przemyslaw Pawelczyk-0/+3
If we want to do, what system would do anyway upon program termination, then let's try to be a bit more scrupulous.
2016-11-28examples/passthrough_ll.c: Fix segfault when showing help or version.Przemyslaw Pawelczyk-1/+2
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.
2016-10-31silence bogus eclipse linter warningdivinity76-0/+1
"No break at the end of case cuse.c /example line 235 Code Analysis Problem"
2016-10-28Clean-up doxygen documentationNikolaus Rath-89/+41
Fixes: #81.
2016-10-20Turn fuse_operations.nopath_flag into fuse_config.nullpath_okNikolaus Rath-0/+1
Modifying struct fuse_config in the init() handler is the canonical way to adjust file-system implementation specific settings. There is no need to have flags in struct fuse_operations.
2016-10-20fuse_new(): don't accept options that don't make sense for end-usersNikolaus Rath-0/+27
Several options (use_ino, etc) depend on the file system implementation. Allowing them to be set from the command line makes no sense.
2016-10-15Make --help output more suitable for end-userNikolaus Rath-10/+5
We now only list options that are potentially useful for an end-user (and unlikely to accidentally break a file system). The full list of FUSE options has been moved to the documentation of the fuse_new() and fuse_session_new() functions.
2016-10-15Pass fuse_file_info to getattr, chown, chmod, truncate, utimens handlersNikolaus Rath-44/+55
This obsoletes the ftruncate & fgetattr handlers. Fixes #58.
2016-10-15Unify handling of fuse_conn_info optionsNikolaus Rath-5/+0
Instead of using command line options to modify struct fuse_conn_info before and after calling the init() handler, we now give the file system explicit control over this.
2016-10-13Make -o clone_fd into a parameter of session_loop_mt().Nikolaus Rath-5/+5
This option really affects the behavior of the session loop, not the low-level interface. Therefore, it does not belong in the fuse_session object.
2016-10-10Fix race condition in notify_* examplesNikolaus Rath-33/+54
The fix in commit cf4159156b was incomplete. While some false positives are caused by sleep() in the file system taking longer than expected, there was also a race condition where the file system would run before the contents are initialized properly.
2016-10-10fuse_main(): extend support for printing helpNikolaus Rath-10/+66
There's now a way to inhibit the "usage" line (which actually got lost in commit 225c12aebf2d), which makes it easier for simply file-systems to generate good-looking --help output.
2016-10-09Use NULL as option processor where possible.Nikolaus Rath-27/+3
2016-10-09Renamed cuses example and added test programNikolaus Rath-6/+174
An earlier version of the fioclient.c example was intended to be used together with cusexmp.c. The former has since evolved into ioctl_client.c and no longer has the function necessary to test CUSE. Therefore, we've added a new cuse_client.c that is clearly associated with the cuse.c example file system.
2016-10-09Don't confuse lookup count for mountpoint and fileNikolaus Rath-7/+12
I think this is the reason for a sporadic test failure, where fuse_lowlevel_notify_store() fails.
2016-10-09Renamed timefsN examples to fuse_notify_*Nikolaus Rath-40/+41
This should make it more obvious at first glance what the different examples do.
2016-10-09Include testfsN examples in Doxygen documentation.Nikolaus Rath-139/+172
2016-10-09Renamed ioctl and poll examplesNikolaus Rath-36/+40
The new names should make it more obvious at first glance what each example demonstrates.
2016-10-09Renamed some examples to make their function more obviousNikolaus Rath-14/+35
Also, added more comments for the same purpose.
2016-10-09fuse_parse_cmdline(): do not print help/version textNikolaus Rath-12/+94
The current behavior makes it difficult to add help for additional options. With the change, this becomes a lot easier.
2016-10-09Whitespace fix.Nikolaus Rath-2/+2
2016-10-09Dropped example/null.cNikolaus Rath-110/+1
This does not seem to be working. Maybe because it tries to treat the mountpoint as a file rather than a directory?
2016-10-08Added timefs3 to test notify_inval_entry.Nikolaus Rath-1/+322
Fixes #32.
2016-10-08Add background and multithreading support to hello_ll and fuse_lo-plusNikolaus Rath-15/+13