23 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
Jean-Pierre André 3dec359766 Fix returning d_ino and d_type by readdir(3) in non-plus mode
When not using the readdir_plus mode, the d_type was not returned,
and the use_ino flag was not used for returning d_ino.

This patch fixes the returned values for d_ino and d_type by readdir(3)

The test for the returned value of d_ino has been adjusted to also
take the d_type into consideration and to check the returned values in
both basic readdir and readdir_plus modes. This is done by executing
the passthrough test twice.

Co-authored-by: Jean-Pierre André <jpandre@users.sourceforge.net>
2021-03-18 09:52:30 +00:00
Martin Pärtel 884b57886b Fix returning inode numbers from readdir() in offset==0 mode. (#584)
- Test added for all passthrough examples.
- passthrough.c uses offset==0 mode. The others don't.
- passthrough.c changed to set FUSE_FILL_DIR_PLUS to make the test pass.
- This fixes #583.
2021-02-03 09:53:21 +00:00
Alan Somers 272e8447b2 Fix FUSE_COPY_FILE_RANGE in the passthrough example (#575)
Only close the file descriptors if they were just opened.  Otherwise,
the second FUSE_COPY_FILE_RANGE operation on any given file will fail
with EBADF.
2021-01-01 19:34:58 +00: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
Yuri Per 93b44b4db3 Implement lseek operation (#457) 2019-11-03 09:44:31 +00:00
Alan Somers 1f842c996e passthrough: fix unix-domain sockets on FreeBSD (#413)
FreeBSD doesn't allow creating sockets using mknod(2). Instead, one has to use socket(2)
and bind(2).  Add appropriate logic to the examples and add a test case.
2019-05-15 21:35:57 +01:00
Niels de Vos 2548c4b83a examples: add copy_file_range() support to passthrough(_fh)
The passthrough example filesystem can be used for validating the API
and the implementation in the FUSE kernel module.
2018-11-19 12:33:56 +00:00
Nikolaus Rath e870a0427a Added public fuse_lib_help(), bumped minor version 2017-07-08 12:48:08 +02:00
Nikolaus Rath e6dd8ceb9e Revert "example/passthrough.c: add debugging code for issue #157."
This reverts commit 179fa13b40.
2017-05-31 12:35:16 -07:00
Nikolaus Rath 179fa13b40 example/passthrough.c: add debugging code for issue #157. 2017-05-25 12:26:52 -07:00
Nikolaus Rath 20b24a16e1 passthrough: implemented create()
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-07 16:40:15 -07:00
Nikolaus Rath 0986255688 example/passthrough: use fi->fh for read, write, fallocate
No reason not to use it. May even be a little faster and will
consume less resources :-).
2017-04-07 16:40:15 -07:00
Nikolaus Rath 76218eb461 passthrough:truncate(): work on file descriptor when possible
This allows truncating an open file even if write permission
was removed after open() (which is the expected behavior).
2017-04-07 16:40:15 -07:00
Nikolaus Rath db1c6adb18 example/passthrough: close open files in release()
That way we can use the file descriptor for other operations.
2017-04-07 16:40:15 -07:00
Nikolaus Rath f7c5d10ce5 passthrough, passthrough_fh: disable attribute caching
Required for better hardlink handling, see comments in patch.
2017-04-07 16:40:15 -07:00
Jay Hankins d6d3e50a51 Fix a grammatical error. 2016-12-04 11:04:10 -08:00
Nikolaus Rath 7983414b33 Clean-up doxygen documentation
Fixes: #81.
2016-10-28 20:44:39 -07:00
Nikolaus Rath 8ee553dac0 fuse_new(): don't accept options that don't make sense for end-users
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-20 15:32:20 -07:00
Nikolaus Rath 73b6ff4b75 Pass fuse_file_info to getattr, chown, chmod, truncate, utimens handlers
This obsoletes the ftruncate & fgetattr handlers.

Fixes #58.
2016-10-15 18:46:27 -07:00
Nikolaus Rath 463189cd12 Renamed some examples to make their function more obvious
Also, added more comments for the same purpose.
2016-10-09 22:03:07 -07:00