Skip to content

Commit 51a7094

Browse files
author
Amit Singh
committed
Updated to libfuse 2.7.3.
git-svn-id: http://macfuse.googlecode.com/svn/trunk@776 febdc8c4-1326-0410-abd6-27cb15717650
2 parents 9d3dcb6 + 4a541a9 commit 51a7094

16 files changed

+285
-225
lines changed

ChangeLog

+40
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
2008-02-19 Miklos Szeredi <[email protected]>
2+
3+
* Released 2.7.3
4+
5+
2008-02-13 Miklos Szeredi <[email protected]>
6+
7+
* Add missing bdi_init() and bdi_destroy() calls for 2.6.24
8+
kernel. Lack of bdi_init() could cause write to hang. Report
9+
forwarded by Szakacsits Szabolcs from the NTFS-3G forum.
10+
11+
2008-02-03 Csaba Henk <[email protected]>
12+
13+
* lib/mount_bsd.c:
14+
- string formatting fixes
15+
- exit if mounting has failed
16+
(in FreeBSD a mount failure is not critical per se, as the daemon
17+
still could be mounted externally, but waiting for such an event
18+
is more confusing than fruitful)
19+
- ditch the kvm(8) stuff and simply use forced unmount which just
20+
won't block
21+
- prettify option specifications
22+
- add "-onosync_unmount" kernel option
23+
24+
2008-01-07 Csaba Henk <[email protected]>
25+
26+
* lib/mount_bsd.c:
27+
- refine device closing in a race-free way
28+
- add support for "-osubtype" on FreeBSD
29+
30+
* makeconf.sh: make it work under FreeBSD
31+
32+
2008-01-03 Csaba Henk <[email protected]>
33+
34+
* lib/mount_bsd.c: close device before unmount
35+
(cf. lib/mount.c rev. 1.43) and fix some warnings
36+
37+
2007-12-23 Miklos Szeredi <[email protected]>
38+
39+
* Fix './configure --disable-static'. Patch from Ismail Dönmez
40+
141
2007-12-17 Miklos Szeredi <[email protected]>
242

343
* Released 2.7.2

configure

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.61 for fuse 2.7.2.
3+
# Generated by GNU Autoconf 2.61 for fuse 2.7.3.
44
#
55
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
66
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
@@ -726,8 +726,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
726726
# Identity of this package.
727727
PACKAGE_NAME='fuse'
728728
PACKAGE_TARNAME='fuse'
729-
PACKAGE_VERSION='2.7.2'
730-
PACKAGE_STRING='fuse 2.7.2'
729+
PACKAGE_VERSION='2.7.3'
730+
PACKAGE_STRING='fuse 2.7.3'
731731
PACKAGE_BUGREPORT=''
732732

733733
# Factoring default headers for most tests.
@@ -1407,7 +1407,7 @@ if test "$ac_init_help" = "long"; then
14071407
# Omit some internal or obsolete options to make the list less imposing.
14081408
# This message is too long to be a string in the A/UX 3.1 sh.
14091409
cat <<_ACEOF
1410-
\`configure' configures fuse 2.7.2 to adapt to many kinds of systems.
1410+
\`configure' configures fuse 2.7.3 to adapt to many kinds of systems.
14111411

14121412
Usage: $0 [OPTION]... [VAR=VALUE]...
14131413

@@ -1478,7 +1478,7 @@ fi
14781478

14791479
if test -n "$ac_init_help"; then
14801480
case $ac_init_help in
1481-
short | recursive ) echo "Configuration of fuse 2.7.2:";;
1481+
short | recursive ) echo "Configuration of fuse 2.7.3:";;
14821482
esac
14831483
cat <<\_ACEOF
14841484

@@ -1586,7 +1586,7 @@ fi
15861586
test -n "$ac_init_help" && exit $ac_status
15871587
if $ac_init_version; then
15881588
cat <<\_ACEOF
1589-
fuse configure 2.7.2
1589+
fuse configure 2.7.3
15901590
generated by GNU Autoconf 2.61
15911591

15921592
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1600,7 +1600,7 @@ cat >config.log <<_ACEOF
16001600
This file contains any messages produced by compilers while
16011601
running configure, to aid debugging if configure makes a mistake.
16021602

1603-
It was created by fuse $as_me 2.7.2, which was
1603+
It was created by fuse $as_me 2.7.3, which was
16041604
generated by GNU Autoconf 2.61. Invocation command line was
16051605

16061606
$ $0 $@
@@ -2416,7 +2416,7 @@ fi
24162416

24172417
# Define the identity of the package.
24182418
PACKAGE='fuse'
2419-
VERSION='2.7.2'
2419+
VERSION='2.7.3'
24202420

24212421

24222422
cat >>confdefs.h <<_ACEOF
@@ -21402,7 +21402,7 @@ exec 6>&1
2140221402
# report actual input values of CONFIG_FILES etc. instead of their
2140321403
# values after options handling.
2140421404
ac_log="
21405-
This file was extended by fuse $as_me 2.7.2, which was
21405+
This file was extended by fuse $as_me 2.7.3, which was
2140621406
generated by GNU Autoconf 2.61. Invocation command line was
2140721407

2140821408
CONFIG_FILES = $CONFIG_FILES
@@ -21455,7 +21455,7 @@ Report bugs to <[email protected]>."
2145521455
_ACEOF
2145621456
cat >>$CONFIG_STATUS <<_ACEOF
2145721457
ac_cs_version="\\
21458-
fuse config.status 2.7.2
21458+
fuse config.status 2.7.3
2145921459
configured by $0, generated by GNU Autoconf 2.61,
2146021460
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2146121461

configure.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT(fuse, 2.7.2)
1+
AC_INIT(fuse, 2.7.3)
22
AC_CANONICAL_TARGET
33
AM_INIT_AUTOMAKE
44
AM_CONFIG_HEADER(include/config.h)
@@ -76,7 +76,7 @@ AC_ARG_WITH([libiconv-prefix],
7676
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
7777
done
7878
])
79-
AM_ICONV
79+
#AM_ICONV
8080
libfuse_libs="$libfuse_libs $LIBICONV"
8181
AM_CONDITIONAL(ICONV, test "$am_cv_func_iconv" = yes)
8282
AC_SUBST(libfuse_libs)

kernel/configure

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.61 for fuse-kernel 2.7.2.
3+
# Generated by GNU Autoconf 2.61 for fuse-kernel 2.7.3.
44
#
55
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
66
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
@@ -572,8 +572,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
572572
# Identity of this package.
573573
PACKAGE_NAME='fuse-kernel'
574574
PACKAGE_TARNAME='fuse-kernel'
575-
PACKAGE_VERSION='2.7.2'
576-
PACKAGE_STRING='fuse-kernel 2.7.2'
575+
PACKAGE_VERSION='2.7.3'
576+
PACKAGE_STRING='fuse-kernel 2.7.3'
577577
PACKAGE_BUGREPORT=''
578578

579579
ac_subst_vars='SHELL
@@ -1130,7 +1130,7 @@ if test "$ac_init_help" = "long"; then
11301130
# Omit some internal or obsolete options to make the list less imposing.
11311131
# This message is too long to be a string in the A/UX 3.1 sh.
11321132
cat <<_ACEOF
1133-
\`configure' configures fuse-kernel 2.7.2 to adapt to many kinds of systems.
1133+
\`configure' configures fuse-kernel 2.7.3 to adapt to many kinds of systems.
11341134
11351135
Usage: $0 [OPTION]... [VAR=VALUE]...
11361136
@@ -1191,7 +1191,7 @@ fi
11911191

11921192
if test -n "$ac_init_help"; then
11931193
case $ac_init_help in
1194-
short | recursive ) echo "Configuration of fuse-kernel 2.7.2:";;
1194+
short | recursive ) echo "Configuration of fuse-kernel 2.7.3:";;
11951195
esac
11961196
cat <<\_ACEOF
11971197
@@ -1266,7 +1266,7 @@ fi
12661266
test -n "$ac_init_help" && exit $ac_status
12671267
if $ac_init_version; then
12681268
cat <<\_ACEOF
1269-
fuse-kernel configure 2.7.2
1269+
fuse-kernel configure 2.7.3
12701270
generated by GNU Autoconf 2.61
12711271
12721272
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1280,7 +1280,7 @@ cat >config.log <<_ACEOF
12801280
This file contains any messages produced by compilers while
12811281
running configure, to aid debugging if configure makes a mistake.
12821282
1283-
It was created by fuse-kernel $as_me 2.7.2, which was
1283+
It was created by fuse-kernel $as_me 2.7.3, which was
12841284
generated by GNU Autoconf 2.61. Invocation command line was
12851285
12861286
$ $0 $@
@@ -2487,7 +2487,7 @@ exec 6>&1
24872487
# report actual input values of CONFIG_FILES etc. instead of their
24882488
# values after options handling.
24892489
ac_log="
2490-
This file was extended by fuse-kernel $as_me 2.7.2, which was
2490+
This file was extended by fuse-kernel $as_me 2.7.3, which was
24912491
generated by GNU Autoconf 2.61. Invocation command line was
24922492
24932493
CONFIG_FILES = $CONFIG_FILES
@@ -2536,7 +2536,7 @@ Report bugs to <[email protected]>."
25362536
_ACEOF
25372537
cat >>$CONFIG_STATUS <<_ACEOF
25382538
ac_cs_version="\\
2539-
fuse-kernel config.status 2.7.2
2539+
fuse-kernel config.status 2.7.3
25402540
configured by $0, generated by GNU Autoconf 2.61,
25412541
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25422542

kernel/configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT(fuse-kernel, 2.7.2)
1+
AC_INIT(fuse-kernel, 2.7.3)
22
AC_CONFIG_HEADERS([config.h])
33

44
AC_PROG_INSTALL

kernel/inode.c

+10
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,13 @@ static struct fuse_conn *new_conn(void)
470470

471471
fc = kzalloc(sizeof(*fc), GFP_KERNEL);
472472
if (fc) {
473+
#ifdef KERNEL_2_6_24_PLUS
474+
int err = bdi_init(&fc->bdi);
475+
if (err) {
476+
kfree(fc);
477+
return NULL;
478+
}
479+
#endif
473480
spin_lock_init(&fc->lock);
474481
mutex_init(&fc->inst_mutex);
475482
atomic_set(&fc->count, 1);
@@ -496,6 +503,9 @@ void fuse_conn_put(struct fuse_conn *fc)
496503
if (fc->destroy_req)
497504
fuse_request_free(fc->destroy_req);
498505
mutex_destroy(&fc->inst_mutex);
506+
#ifdef KERNEL_2_6_24_PLUS
507+
bdi_destroy(&fc->bdi);
508+
#endif
499509
kfree(fc);
500510
}
501511
}

lib/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ libfuse_la_SOURCES = \
5151
$(mount_source)
5252

5353
if !DARWIN
54-
libfuse_la_LDFLAGS = @libfuse_libs@ -version-number 2:7:2 \
54+
libfuse_la_LDFLAGS = @libfuse_libs@ -version-number 2:7:3 \
5555
-Wl,--version-script,$(srcdir)/fuse_versionscript
5656
endif
5757

lib/Makefile.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ libfuse_la_SOURCES = \
246246
$(iconv_source) \
247247
$(mount_source)
248248

249-
@DARWIN_FALSE@libfuse_la_LDFLAGS = @libfuse_libs@ -version-number 2:7:2 \
249+
@DARWIN_FALSE@libfuse_la_LDFLAGS = @libfuse_libs@ -version-number 2:7:3 \
250250
@DARWIN_FALSE@ -Wl,--version-script,$(srcdir)/fuse_versionscript
251251

252252
libulockmgr_la_SOURCES = ulockmgr.c

lib/fuse.c

+13-13
Original file line numberDiff line numberDiff line change
@@ -2923,21 +2923,21 @@ static const struct fuse_opt fuse_lib_opts[] = {
29232923
static void fuse_lib_help(void)
29242924
{
29252925
fprintf(stderr,
2926-
" -o hard_remove immediate removal (don't hide files)\n"
2927-
" -o use_ino let filesystem set inode numbers\n"
2928-
" -o readdir_ino try to fill in d_ino in readdir\n"
2929-
" -o direct_io use direct I/O\n"
2930-
" -o kernel_cache cache files in kernel\n"
2931-
" -o [no]auto_cache enable caching based on modification times\n"
2932-
" -o umask=M set file permissions (octal)\n"
2933-
" -o uid=N set file owner\n"
2934-
" -o gid=N set file group\n"
2935-
" -o entry_timeout=T cache timeout for names (1.0s)\n"
2926+
" -o hard_remove immediate removal (don't hide files)\n"
2927+
" -o use_ino let filesystem set inode numbers\n"
2928+
" -o readdir_ino try to fill in d_ino in readdir\n"
2929+
" -o direct_io use direct I/O\n"
2930+
" -o kernel_cache cache files in kernel\n"
2931+
" -o [no]auto_cache enable caching based on modification times (off)\n"
2932+
" -o umask=M set file permissions (octal)\n"
2933+
" -o uid=N set file owner\n"
2934+
" -o gid=N set file group\n"
2935+
" -o entry_timeout=T cache timeout for names (1.0s)\n"
29362936
" -o negative_timeout=T cache timeout for deleted names (0.0s)\n"
2937-
" -o attr_timeout=T cache timeout for attributes (1.0s)\n"
2937+
" -o attr_timeout=T cache timeout for attributes (1.0s)\n"
29382938
" -o ac_attr_timeout=T auto cache timeout for attributes (attr_timeout)\n"
2939-
" -o intr allow requests to be interrupted\n"
2940-
" -o intr_signal=NUM signal to send on interrupt (%i)\n"
2939+
" -o intr allow requests to be interrupted\n"
2940+
" -o intr_signal=NUM signal to send on interrupt (%i)\n"
29412941
" -o modules=M1[:M2...] names of modules to push onto filesystem stack\n"
29422942
"\n", FUSE_DEFAULT_INTR_SIGNAL);
29432943
}

lib/fuse_lowlevel.c

+5-4
Original file line numberDiff line numberDiff line change
@@ -1218,10 +1218,11 @@ static void fuse_ll_version(void)
12181218
static void fuse_ll_help(void)
12191219
{
12201220
fprintf(stderr,
1221-
" -o max_write=N set maximum size of write requests\n"
1222-
" -o max_readahead=N set maximum readahead\n"
1223-
" -o async_read perform reads asynchronously (default)\n"
1224-
" -o sync_read perform reads synchronously\n");
1221+
" -o max_write=N set maximum size of write requests\n"
1222+
" -o max_readahead=N set maximum readahead\n"
1223+
" -o async_read perform reads asynchronously (default)\n"
1224+
" -o sync_read perform reads synchronously\n"
1225+
" -o atomic_o_trunc enable atomic open+truncate support\n");
12251226
}
12261227

12271228
static int fuse_ll_opt_proc(void *data, const char *arg, int key,

lib/helper.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,19 @@ static void usage(const char *progname)
6565
"usage: %s mountpoint [options]\n\n", progname);
6666
fprintf(stderr,
6767
"general options:\n"
68-
" -o opt,[opt...] mount options\n"
69-
" -h --help print help\n"
70-
" -V --version print version\n"
68+
" -o opt,[opt...] mount options\n"
69+
" -h --help print help\n"
70+
" -V --version print version\n"
7171
"\n");
7272
}
7373

7474
static void helper_help(void)
7575
{
7676
fprintf(stderr,
7777
"FUSE options:\n"
78-
" -d -o debug enable debug output (implies -f)\n"
79-
" -f foreground operation\n"
80-
" -s disable multi-threaded operation\n"
78+
" -d -o debug enable debug output (implies -f)\n"
79+
" -f foreground operation\n"
80+
" -s disable multi-threaded operation\n"
8181
"\n"
8282
);
8383
}

lib/mount.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ static const struct fuse_opt fuse_mount_opts[] = {
108108
static void mount_help(void)
109109
{
110110
fprintf(stderr,
111-
" -o allow_other allow access to other users\n"
112-
" -o allow_root allow access to root\n"
113-
" -o nonempty allow mounts over non-empty file/dir\n"
111+
" -o allow_other allow access to other users\n"
112+
" -o allow_root allow access to root\n"
113+
" -o nonempty allow mounts over non-empty file/dir\n"
114114
" -o default_permissions enable permission checking by kernel\n"
115-
" -o fsname=NAME set filesystem name\n"
116-
" -o subtype=NAME set filesystem type\n"
117-
" -o large_read issue large read requests (2.4 only)\n"
118-
" -o max_read=N set maximum size of read requests\n"
115+
" -o fsname=NAME set filesystem name\n"
116+
" -o subtype=NAME set filesystem type\n"
117+
" -o large_read issue large read requests (2.4 only)\n"
118+
" -o max_read=N set maximum size of read requests\n"
119119
"\n");
120120
}
121121

0 commit comments

Comments
 (0)