41 Commits

Author SHA1 Message Date
fangzhiyi18 bd5ee7c317 升级1.17.3
Signed-off-by: fangzhiyi18 <fangzhiyi1@h-partners.com>
2025-11-08 13:04:30 +08:00
psycho c99f6182b4 libfuse升级
Signed-off-by: psycho <wangmingxuan6@h-partners.com>
2024-01-09 09:19:42 +08:00
AKowshik 2af7d3facd Updated example code to work with new API (#547) 2020-09-09 20:17:06 +01:00
Dr. David Alan Gilbert 4e719a9745 State GPL version in comment (#485)
IN a bunch of comments we say 'under the terms of the GNU GPL', make
it clear this is GPLv2 (as LICENSE says).

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2020-03-13 16:46:44 +00:00
zsugabubus a9c0f2919f examples: mark ops variables constant (#496) 2020-01-30 11:17:25 -05:00
Alan Somers 1b7d2b8862 Document fuse_fsync_in.fsync_flags and remove magic numbers (#375) 2019-03-08 21:24:50 +00:00
Forty-Bot 1cce958bb6 hello_ll: Fix null pointer dereference (#363)
If hello_ll is invoked without a mountpoint, it will try to call
fuse_session_mount anyway with the NULL mountpoint (which then causes a
segfault). Print out a short help message instead (taken from
passthrough_ll.c).
2019-02-25 21:06:42 +00:00
Nikolaus Rath f750abb757 Removed unneccessary #include <config.h> from examples
Fixes: #208.
2017-09-25 10:17:11 +01:00
Nikolaus Rath e870a0427a Added public fuse_lib_help(), bumped minor version 2017-07-08 12:48:08 +02:00
Nikolaus Rath 7983414b33 Clean-up doxygen documentation
Fixes: #81.
2016-10-28 20:44:39 -07:00
Nikolaus Rath b16650830d Make --help output more suitable for end-user
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-15 19:46:57 -07:00
Nikolaus Rath d49f2e77b4 Unify handling of fuse_conn_info options
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-15 16:49:23 -07:00
Nikolaus Rath 2bfa342cda Make -o clone_fd into a parameter of session_loop_mt().
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-13 10:35:12 -07:00
Nikolaus Rath 225c12aebf fuse_parse_cmdline(): do not print help/version text
The current behavior makes it difficult to add help for
additional options. With the change, this becomes a lot easier.
2016-10-09 22:03:07 -07:00
Nikolaus Rath 56690972af Add background and multithreading support to hello_ll and fuse_lo-plus 2016-10-08 21:27:06 -07:00
Nikolaus Rath 425db842ff Don't handle --help and --version in fuse_session_new().
Help and version messages can be generated using the new
fuse_lowlevel_help(), fuse_lowlevel_version(), fuse_mount_help(), and
fuse_mount_version() functions.

The fuse_parse_cmdline() function has been made more powerful
to do this automatically, and is now explicitly intended only
for low-level API users.

This is a code simplication patch. We don't have to parse for --help and
--version in quite as many places, and we no longer have a low-level
initialization function be responsible for the (super-high level) task
of printing a program usage message.

In the high-level API, we can now handle the command line parsing
earlier and avoid running other initialization code if we're just going
to abort later on.
2016-10-02 21:09:37 -07:00
Nikolaus Rath a1e1e8cdc4 Fixed permissions of source files. 2016-10-02 20:32:38 -07:00
Nikolaus Rath 5698ee09cf Turn struct fuse_chan into an implementation detail
The only struct fuse_chan that's accessible to the user application is
the "master" channel that is returned by fuse_mount and stored in struct
fuse_session.

When using the multi-threaded main loop with the "clone_fd" option, each
worker thread gets its own struct fuse_chan. However, none of these are
available to the user application, nor do they hold references to struct
fuse_session (the pointer is always null).

Therefore, any presence of struct fuse_chan can be removed
without loss of functionality by relying on struct fuse_session instead.

This reduces the number of API functions and removes a potential source
of confusion (since the new API no longer looks as if it might be
possible to add multiple channels to one session, or to share one
channel between multiple sessions).

Fixes issue #17.
2016-10-02 13:56:40 -07:00
Nikolaus Rath f164e9b8ca Renamed fuse_lowlevel_new() to fuse_session_new(). 2016-10-02 10:52:45 -07:00
Nikolaus Rath 50f5255a44 Introduce separate mount/umount functions for low-level API. 2016-10-02 10:51:34 -07:00
Miklos Szeredi 0cb2db32e7 libfuse: fuse -> fuse3
Allow 2.X and 3.X to coexist.  Includes are now stored under
/usr/include/fuse3 and library is named libfuse3.*.  Invoke pkg-config with
"fuse3" as the first argument to build with version 3 of the library.
2013-07-25 16:54:42 +02:00
Miklos Szeredi e6e7a249c5 libfuse: remove "-D_FILE_OFFSET_BITS=64" from fuse.pc
add AC_SYS_LARGEFILE to your configure.ac instead.
2013-07-24 17:09:26 +02:00
Miklos Szeredi 7dfb43254c Documentation fixes 2013-07-17 15:58:53 +02:00
Joachim Schiele f4f87bba12 rewrote c++ style comments to c style coments mentioned by Miklos Szeredi 2013-07-02 17:37:38 +02:00
Joachim Schiele ea7227db43 - added a doxygen main page
- modified all examples to be included in doxygen
- modified the API documentation to have more details
- added the 490px_FUSE_structure.svg.png (c) wikipedia
2013-06-20 19:18:18 +02:00
Miklos Szeredi 2b4b5cc544 Start of 3.0 series
Change the version numbers.

This is going to be a new major version of the library breaking backward
compatibility on the binary level as well as the source level.
2012-07-19 18:40:11 +02:00
Miklos Szeredi 46b9c3326d Fix the compile command in the examples
Reported by Luciano Dalle Ore
2012-05-16 17:31:33 +02:00
Miklos Szeredi cdb8b79bad change indenting 2007-12-12 14:25:40 +00:00
Miklos Szeredi 611ad93ac7 update copyright dates 2007-04-25 16:19:15 +00:00
Miklos Szeredi 4003dfa313 Add init script 2006-10-01 13:46:02 +00:00
Miklos Szeredi 6f385414b2 fix 2006-03-17 15:05:40 +00:00
Csaba Henk ee588c01dc pass device file descriptor to fuse_unmount 2006-03-01 09:40:35 +00:00
Miklos Szeredi 1bf64f4806 fix 2006-02-17 15:49:25 +00:00
Miklos Szeredi 95da860d29 fix 2006-01-06 18:29:40 +00:00
Miklos Szeredi 836ab71baf fix 2005-10-03 14:11:59 +00:00
Miklos Szeredi ecce1bf2ff fix 2005-08-25 15:19:06 +00:00
Miklos Szeredi a148242fb8 cleanup 2005-08-14 23:00:27 +00:00
Miklos Szeredi f6e0ec6e2d fix 2005-08-03 09:11:06 +00:00
Miklos Szeredi 9b813af863 fixes 2005-07-21 07:59:37 +00:00
Miklos Szeredi bd10a7b16f added lowlevel API 2005-07-15 09:59:59 +00:00
Miklos Szeredi 76c1752f14 inode based API first working version 2005-07-13 14:08:19 +00:00