OpenBSD CVS

CVS log for src/lib/libfuse/fuse.c


[BACK] Up to [local] / src / lib / libfuse

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.51 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:42 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Nov 16 02:16:17 2018 UTC (5 years, 6 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.49: +45 -39 lines
Diff to previous 1.49 (colored)

Handle signals that get sent to any thread
from Rian Hunter

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jul 5 10:57:31 2018 UTC (5 years, 11 months ago) by helg
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.48: +40 -9 lines
Diff to previous 1.48 (colored)

fuse_set_signal_handlers(3) and fuse_remove_signal_handlers(3) should
not replace any existing signal handlers. This makes it possible for
FUSE file systems to install their own signal handlers. Bug reported
by Bill Zissimopoulos.

ok mpi@

Revision 1.48 / (download) - annotate - [select for diffs], Tue Jul 3 23:23:26 2018 UTC (5 years, 11 months ago) by helg
Branch: MAIN
Changes since 1.47: +1 -3 lines
Diff to previous 1.47 (colored)

Remove residual debug statements.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Jun 19 13:01:34 2018 UTC (5 years, 11 months ago) by helg
Branch: MAIN
Changes since 1.46: +6 -3 lines
Diff to previous 1.46 (colored)

Changes the default mount behaviour so only the user that mounts the
file system can access it unless the allow_other mount options is
specified. The allow_other mount option makes the file system
available to other users just like any other mounted file system.

ok mpi@

Revision 1.46 / (download) - annotate - [select for diffs], Tue Jun 19 11:27:54 2018 UTC (5 years, 11 months ago) by helg
Branch: MAIN
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (colored)

Send the calling thread id, effective uid and gid, and umask to the
FUSE file system. fuse_get_context(3) will now return the correct
values.

ok mpi@

Revision 1.45 / (download) - annotate - [select for diffs], Tue May 22 12:52:14 2018 UTC (6 years ago) by helg
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Implement support for libfuse use_ino option. This returns the file
system's ino for VOP_GETATTR(9) and VOP_READDIR(9) rather than the
internally generated fuse ino.

ok mpi@

Revision 1.44 / (download) - annotate - [select for diffs], Tue May 15 11:57:32 2018 UTC (6 years ago) by helg
Branch: MAIN
Changes since 1.43: +4 -4 lines
Diff to previous 1.43 (colored)

Use memset(3) instead of bzero(3) for consistency and as per POSIX
recommendation.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Dec 18 14:20:23 2017 UTC (6 years, 5 months ago) by helg
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

Add call to fuse_remove_signal_handlers(3) in fuse_teardown(3) to do the
opposite of fuse_setup(3).

ok mpi@

Revision 1.42 / (download) - annotate - [select for diffs], Mon Dec 18 11:41:41 2017 UTC (6 years, 5 months ago) by helg
Branch: MAIN
Changes since 1.41: +158 -71 lines
Diff to previous 1.41 (colored)

Refactor libfuse option processing to better support options in the
future. Immediate benefits are that gid, uid and umask are now
supported and max_read is now honoured for all file systems. Mounting
read_only is now possible but requires more thorough testing.

ok mpi@

Revision 1.41 / (download) - annotate - [select for diffs], Fri Dec 15 16:40:33 2017 UTC (6 years, 5 months ago) by jca
Branch: MAIN
Changes since 1.40: +12 -1 lines
Diff to previous 1.40 (colored)

Export only symbols to what's declared in fuse.h/fuse_opt.h

While here, use guenther's magic recipe to avoid the PLT when calling
exported symbols from within the library.

ok kettenis@ for v1, ok guenther@ helg@

Revision 1.40 / (download) - annotate - [select for diffs], Fri Dec 15 12:08:22 2017 UTC (6 years, 5 months ago) by helg
Branch: MAIN
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored)

Fix formatting of libfuse version info.

ok mpi@

Revision 1.39 / (download) - annotate - [select for diffs], Thu Dec 14 14:50:02 2017 UTC (6 years, 5 months ago) by helg
Branch: MAIN
Changes since 1.38: +7 -1 lines
Diff to previous 1.38 (colored)

Add a missing call to fuse_set_signal_handlers(3) in fuse_setup(3) so that
any file systems that call fuse_setup(3) or fuse_main(3) trap signals
gracefully.

ok mpi@

Revision 1.38 / (download) - annotate - [select for diffs], Thu Dec 14 13:11:37 2017 UTC (6 years, 5 months ago) by helg
Branch: MAIN
Changes since 1.37: +9 -1 lines
Diff to previous 1.37 (colored)

Free FUSE channel if fuse_new(3) fails in fuse_setup(3).

ok mpi@

Revision 1.37 / (download) - annotate - [select for diffs], Wed Dec 13 12:30:18 2017 UTC (6 years, 5 months ago) by helg
Branch: MAIN
Changes since 1.36: +7 -6 lines
Diff to previous 1.36 (colored)

Add support for the -d (-o debug) option to libfuse. Currently works for FUSE
file systems that call fuse_parse_cmdline(3), fuse_main(3) or
fuse_setup(3).

ok mpi@, jca@

Revision 1.36 / (download) - annotate - [select for diffs], Sun Nov 26 15:17:17 2017 UTC (6 years, 6 months ago) by helg
Branch: MAIN
Changes since 1.35: +16 -9 lines
Diff to previous 1.35 (colored)

Add support for -f option to libfuse. This keeps the FUSE file system
running in the foreground.

ok mpi@

Revision 1.35 / (download) - annotate - [select for diffs], Fri Nov 17 15:56:12 2017 UTC (6 years, 6 months ago) by helg
Branch: MAIN
Changes since 1.34: +74 -42 lines
Diff to previous 1.34 (colored)

Implement safe signal handling and handle unmount failure gracefully.

ok mpi@

Revision 1.34 / (download) - annotate - [select for diffs], Sat Nov 4 13:17:18 2017 UTC (6 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

fuse_loop_mt() isn't implemented so return an error value.

From Helg Bredow.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Nov 4 13:04:08 2017 UTC (6 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Use the correct version macro.

From Helg Bredow, ok pirofti@

Revision 1.32 / (download) - annotate - [select for diffs], Thu Nov 2 13:55:37 2017 UTC (6 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.31: +29 -10 lines
Diff to previous 1.31 (colored)

Check if the arguments are NULL instead of dereferencing them blindly.

Delete incorrect "unused" keyword and remove redundant variables due
to missing NULL checks.

From Helg Bredow.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Oct 25 09:29:46 2017 UTC (6 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.30: +9 -5 lines
Diff to previous 1.30 (colored)

Check for NULL before dereferencing untrusted pointers.

from Helg Bredow.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Oct 24 09:01:05 2017 UTC (6 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.29: +9 -4 lines
Diff to previous 1.29 (colored)

Add more sanity checks to prevent a segfault and a NULL-dereference
when manipulating callers probided pointers.

From Helg Bredow.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Aug 21 21:41:13 2017 UTC (6 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.28: +6 -3 lines
Diff to previous 1.28 (colored)

Use waitpid()/EINTR idiom for the specific pid, rather than generic wait(),
in case the parent process was started with a dangling child.  This style
ensures any potential parent:child interlock isn't disrupted due to the
"wrong" child being waited on first.  Then the other other childs can safely
zombie.
ok millert jca brynet

Revision 1.28 / (download) - annotate - [select for diffs], Tue May 24 19:24:46 2016 UTC (8 years ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored)

Add missing strdup NULL checks; from Ray Lai.

ok mpi@ beck@ mlarkin@

Revision 1.27 / (download) - annotate - [select for diffs], Thu Dec 24 17:02:37 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.26: +2 -3 lines
Diff to previous 1.26 (colored)

remove NULL-check before free()

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jul 7 13:56:45 2015 UTC (8 years, 11 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Skip mountpoint checking in case we only want the version or help
(-V, -h).

ok syl@ mikeb@

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 10 07:49:22 2015 UTC (9 years, 4 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

Add a stub option for big_writes. This is needed by gvfs.
committing on behalf of slacker syl@

Revision 1.24 / (download) - annotate - [select for diffs], Tue May 20 13:32:22 2014 UTC (10 years ago) by syl
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

Add -o max_read=XXX support in fuse. This is needed by usmb to have a
working read() and write().

ok tedu@

Revision 1.23 / (download) - annotate - [select for diffs], Tue May 20 13:22:06 2014 UTC (10 years ago) by syl
Branch: MAIN
Changes since 1.22: +27 -12 lines
Diff to previous 1.22 (colored)

Add support for -o XXX or -oXXX options in libfuse.

inputs from tedu@, ok tedu@

Revision 1.22 / (download) - annotate - [select for diffs], Mon May 19 13:43:30 2014 UTC (10 years ago) by tedu
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

as reported by Helg, should use realpath for mounts. ok guenther syl

Revision 1.21 / (download) - annotate - [select for diffs], Mon Mar 24 07:24:32 2014 UTC (10 years, 2 months ago) by syl
Branch: MAIN
Changes since 1.20: +4 -2 lines
Diff to previous 1.20 (colored)

Warn the user if there is a missing mountpoint parameter.

ok ajacoutot@, tedu@, pelikan@

Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 5 20:47:38 2014 UTC (10 years, 4 months ago) by syl
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.19: +4 -3 lines
Diff to previous 1.19 (colored)

Allow libfuse to compile with WARNINGS=yes. No functional change.

ok tedu@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Feb 5 20:13:58 2014 UTC (10 years, 4 months ago) by syl
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

check return values in libfuse.

inputs from stsp@.
ok stsp@.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 10 10:07:48 2013 UTC (10 years, 6 months ago) by syl
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Remove an attempt to free a non-heap object.

from David Hill thanks.
ok stsp@.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Nov 11 14:23:01 2013 UTC (10 years, 7 months ago) by stsp
Branch: MAIN
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored)

In fuse_loop(), use ssize_t to store return values from read(2) and write(2).
ok syl@

Revision 1.16 / (download) - annotate - [select for diffs], Sat Nov 9 13:39:37 2013 UTC (10 years, 7 months ago) by stsp
Branch: MAIN
Changes since 1.15: +3 -7 lines
Diff to previous 1.15 (colored)

Simplify fuse_unmount(). No functional change.
ok jung@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Nov 9 10:35:31 2013 UTC (10 years, 7 months ago) by stsp
Branch: MAIN
Changes since 1.14: +8 -3 lines
Diff to previous 1.14 (colored)

Properly check realpath() return value during argv processing in libfuse.
tweak & ok syl@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 7 18:15:09 2013 UTC (10 years, 7 months ago) by syl
Branch: MAIN
Changes since 1.13: +29 -10 lines
Diff to previous 1.13 (colored)

add fuse_invalidate() and fuse_setup() functions.

ok tedu@

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 6 19:53:20 2013 UTC (10 years, 7 months ago) by syl
Branch: MAIN
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored)

Handle fuse client private data. Needed by encfs.
Bump shlib_version.

ok stsp@.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Nov 2 09:00:49 2013 UTC (10 years, 7 months ago) by syl
Branch: MAIN
Changes since 1.11: +106 -16 lines
Diff to previous 1.11 (colored)

Update the fuse_opt to have option like -h working.

ok ajacoutot@

Revision 1.11 / (download) - annotate - [select for diffs], Mon Oct 7 18:08:51 2013 UTC (10 years, 8 months ago) by syl
Branch: MAIN
Changes since 1.10: +40 -15 lines
Diff to previous 1.10 (colored)

Adapt libfuse to FUSE kernel changes

Revision 1.10 / (download) - annotate - [select for diffs], Sat Aug 10 09:51:50 2013 UTC (10 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

Plug fd and mem leak in fuse_open's error path.  ok syl@

Revision 1.9 / (download) - annotate - [select for diffs], Sat Aug 10 00:30:43 2013 UTC (10 years, 10 months ago) by syl
Branch: MAIN
Changes since 1.8: +1 -2 lines
Diff to previous 1.8 (colored)

Remove some useless DPRINTF.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jul 5 11:08:15 2013 UTC (10 years, 11 months ago) by syl
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.7: +8 -1 lines
Diff to previous 1.7 (colored)

Add support for fuse_teardown(3). This function
is needed by zipfs.

ok tedu@

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jun 21 21:30:38 2013 UTC (10 years, 11 months ago) by syl
Branch: MAIN
Changes since 1.6: +17 -39 lines
Diff to previous 1.6 (colored)

Make fuse device clonable.

ok tedu@

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jun 14 20:49:06 2013 UTC (10 years, 11 months ago) by syl
Branch: MAIN
Changes since 1.5: +18 -1 lines
Diff to previous 1.5 (colored)

Add support for fuse_get_context(3) needed by ntfs-3g.

OK pirofti@ and beck@ "assuming I am getting to setting
the initial pid/gid/uid values correctly soon".

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jun 14 20:40:41 2013 UTC (10 years, 11 months ago) by syl
Branch: MAIN
Changes since 1.4: +7 -1 lines
Diff to previous 1.4 (colored)

add support for fuse_version(3). Needed by ntfs-3g.

Ok beck@ and pirofti@.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 12 22:44:42 2013 UTC (11 years ago) by tedu
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)

style for loops

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 12 22:36:06 2013 UTC (11 years ago) by tedu
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

fuse_opt support from Sylvestre

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 3 16:21:08 2013 UTC (11 years ago) by tedu
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

rcsids

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jun 3 16:00:50 2013 UTC (11 years ago) by tedu
Branch: MAIN

add userland fuse library. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.