Commit Graph

18 Commits

Author SHA1 Message Date
psycho c99f6182b4 libfuse升级
Signed-off-by: psycho <wangmingxuan6@h-partners.com>
2024-01-09 09:19:42 +08:00
Nikolaus Rath 3e8954279e fuse_loop(): don't return non-zero if there was no error 2017-08-23 23:37:35 +02:00
Nikolaus Rath c22da7f3a8 Add support for more detailed error codes from main loop 2016-11-16 12:41:41 -08:00
Nikolaus Rath e4015aca9b Merge master fuse_chan into fuse_session.
This is a code simplification patch.

- It confines most of the implementation channel implementation into
  fuse_loop_mt (which is its only user).

- It makes it more obvious in the code that channels are only ever used
  when using -o clone_fd and multi-threaded main loop.

- It simplies the definition of both struct fuse_session and struct
  fuse_chan.

- Theoretically it should result in (minuscule) performance
  improvements when not using -o clone_fd.

- Overall, it removes a lot more lines of source code than it adds :-).
2016-10-03 23:01:46 -07:00
Nikolaus Rath d968b4ddae Extended per-file comments.
This should make more clear what file contains code for what
purpose.
2016-10-02 21:20:44 -07:00
Nikolaus Rath 65c9df72e3 Turned fuse_session_{process,receive}_buf into wrapper functions. 2016-10-02 10:46:49 -07: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 561d7054d8 libfuse: remove fuse_chan_bufsize()
Remove fuse_chan_bufsize() from the lowlevel API.
fuse_session_receive_buf() is now responsible for allocating memory for the
buffer.
2013-06-21 18:17:27 +02:00
Miklos Szeredi 5334a152e1 libfuse: remove fuse_chan_(send|receive)
Move the fuse_chan_ops.send and .receive implementations to fuse_lowlevel.c.  The abstraction wasn't actually useful and made the the splice implementation more difficult.

Remove fuse_chan_ops.send and fuse_chan_ops.receive.
2013-06-21 18:17:27 +02:00
Miklos Szeredi 2bcfd55fc1 libfuse: replace fuse_session_next_chan
Replace fuse_session_next_chan() with fuse_session_chan(), as multiple
channels per session were never actually supported and probably never will.
2013-06-21 13:35:30 +02:00
Miklos Szeredi 4e0aea6a96 libfuse: support zero copy writes in lowlevel interface
Add new ->write_buf() method to low level interface.  This
allows passig a generic buffer, either containing a memory buffer
or a file descriptor.  This allows implementing zero copy writes.

Add fuse_session_receive_buf() and fuse_session_process_buf()
which may be used in event loop implementations to replace
fuse_chan_recv() and fuse_session_process() respectively.
2010-11-08 17:11:46 +01:00
Miklos Szeredi cdb8b79bad change indenting 2007-12-12 14:25:40 +00:00
Miklos Szeredi 7d62647d7a Clarify licence version to be "LGPLv2" for the library 2007-10-16 15:12:09 +00:00
Miklos Szeredi 611ad93ac7 update copyright dates 2007-04-25 16:19:15 +00:00
Miklos Szeredi 8d975f6fb3 fix 2006-03-17 15:56:05 +00:00
Miklos Szeredi 5d9ce36da4 fix 2006-03-01 12:10:13 +00:00
Miklos Szeredi 95da860d29 fix 2006-01-06 18:29:40 +00:00
Miklos Szeredi a148242fb8 cleanup 2005-08-14 23:00:27 +00:00