Stefan Hajnoczi
56345a98c5
Introduce callback for logging
...
Introduce an API for custom log handler functions. This allows libfuse
applications to send messages to syslog(3) or other logging systems.
See include/fuse_log.h for details.
Convert libfuse from fprintf(stderr, ...) to log_fuse(level, ...). Most
messages are error messages with FUSE_LOG_ERR log level. There are also
some debug messages which now use the FUSE_LOG_DEBUG log level.
Note that lib/mount_util.c is used by both libfuse and fusermount3.
Since fusermount3 does not link against libfuse, we cannot call
fuse_log() from lib/mount_util.c. This file will continue to use
fprintf(stderr, ...) until someone figures out how to split it up.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2019-09-04 15:59:18 +01:00
Michael Forney
63c11456d4
Avoid pointer arithmetic with void *
...
The pointer operand to the binary `+` operator must be to a complete
object type. Since we are working with byte sizes, use `char *` instead.
2019-06-06 13:31:41 +01: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
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
a38722be2b
fuse_opt_parse(): fix memory leak
...
when storing a newly allocated string for format "%s", free the previous value
stored at that location.
Reported by Marco Schuster
2013-02-19 14:14:00 +01:00
Miklos Szeredi
cc1a1f4edd
Remove compat functions
2012-07-19 19:02:42 +02:00
Miklos Szeredi
966d97b1f8
Remove old symbol versions
2012-07-19 18:47:51 +02:00
Miklos Szeredi
fd4ffa53df
Interpret octal escape codes in options
...
Requested by Jan Engelhardt
2012-01-27 16:42:33 +01:00
Laszlo Papp
db5d46976b
Fix a potential resource leak (newargv)
2011-03-30 19:34:58 +02:00
Miklos Szeredi
5c094ac015
* Allow commas in options to be escaped with a backslash * Add new function: fuse_opt_add_opt_escaped() * Add missing fuse_reply_bmap() to the version script
2008-10-16 19:11:28 +00:00
Miklos Szeredi
cdb8b79bad
change indenting
2007-12-12 14:25:40 +00:00
Miklos Szeredi
918f0ad95b
Disable old symbol versions if __UCLIBC__ is defined
2007-12-12 11:53:38 +00:00
Miklos Szeredi
7d62647d7a
Clarify licence version to be "LGPLv2" for the library
2007-10-16 15:12:09 +00:00
Miklos Szeredi
7f571e320e
Don't call /bin/[u]mount if /etc/mtab is a symlink
2007-07-25 09:36:52 +00:00
Miklos Szeredi
5e1769c04d
Reset args->argc in fuse_opt_free_args()
2007-07-12 11:22:10 +00:00
Miklos Szeredi
611ad93ac7
update copyright dates
2007-04-25 16:19:15 +00:00
Miklos Szeredi
065f222cd5
fix
2006-01-20 15:15:21 +00:00
Miklos Szeredi
95da860d29
fix
2006-01-06 18:29:40 +00:00
Miklos Szeredi
73f4139eb9
fix
2005-12-16 11:12:16 +00:00
Miklos Szeredi
caa093140a
fix
2005-12-14 23:25:00 +00:00
Miklos Szeredi
34450a88f2
fix
2005-12-12 10:59:35 +00:00
Miklos Szeredi
8720e933f4
fix
2005-12-10 20:47:46 +00:00
Miklos Szeredi
af56203290
fix
2005-12-09 20:19:00 +00:00
Miklos Szeredi
3b534a4783
new version
2005-12-09 20:09:42 +00:00
Miklos Szeredi
659743bc88
added option parsing
2005-12-09 17:41:42 +00:00