mirror of
https://github.com/libfuse/libfuse.git
synced 2024-11-23 04:04:31 +08:00
new version
This commit is contained in:
parent
181bac083d
commit
d7c3355242
18
ChangeLog
18
ChangeLog
@ -1,3 +1,21 @@
|
||||
2006-04-10 Miklos Szeredi <miklos@szeredi.hu>
|
||||
|
||||
* Released 2.5.3
|
||||
|
||||
2006-04-01 Miklos Szeredi <miklos@szeredi.hu>
|
||||
|
||||
* lib: Add missing rwlock initialization. Patch by Ryan Bradetich
|
||||
|
||||
2006-02-25 Miklos Szeredi <miklos@szeredi.hu>
|
||||
|
||||
* Fix negative entry handling. There was a bug, that negative
|
||||
lookups with timeouts (nodeid == 0) returned -EIO.
|
||||
|
||||
2006-02-23 Miklos Szeredi <miklos@szeredi.hu>
|
||||
|
||||
* Fix race between RELEASE and UNLINK, which might leave
|
||||
.fuse_hidden* files around
|
||||
|
||||
2006-02-19 Miklos Szeredi <miklos@szeredi.hu>
|
||||
|
||||
* libfuse: fix use-after-free bug in interruptred reply_entry().
|
||||
|
@ -1,4 +1,4 @@
|
||||
AC_INIT(fuse, 2.5.2)
|
||||
AC_INIT(fuse, 2.5.3)
|
||||
AC_CANONICAL_TARGET
|
||||
AM_INIT_AUTOMAKE
|
||||
AM_CONFIG_HEADER(include/config.h)
|
||||
|
@ -1,4 +1,4 @@
|
||||
AC_INIT(fuse-kernel, 2.5.2)
|
||||
AC_INIT(fuse-kernel, 2.5.3)
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
AC_PROG_INSTALL
|
||||
|
@ -129,6 +129,9 @@ static int fuse_dentry_revalidate(struct dentry *entry, struct nameidata *nd)
|
||||
fuse_lookup_init(req, entry->d_parent->d_inode, entry, &outarg);
|
||||
request_send(fc, req);
|
||||
err = req->out.h.error;
|
||||
/* Zero nodeid is same as -ENOENT */
|
||||
if (!err && !outarg.nodeid)
|
||||
err = -ENOENT;
|
||||
if (!err) {
|
||||
struct fuse_inode *fi = get_fuse_inode(inode);
|
||||
if (outarg.nodeid != get_node_id(inode)) {
|
||||
@ -218,8 +221,9 @@ static struct dentry *fuse_lookup(struct inode *dir, struct dentry *entry,
|
||||
fuse_lookup_init(req, dir, entry, &outarg);
|
||||
request_send(fc, req);
|
||||
err = req->out.h.error;
|
||||
if (!err && ((outarg.nodeid && invalid_nodeid(outarg.nodeid)) ||
|
||||
!valid_mode(outarg.attr.mode)))
|
||||
/* Zero nodeid is same as -ENOENT, but with valid timeout */
|
||||
if (!err && outarg.nodeid &&
|
||||
(invalid_nodeid(outarg.nodeid) || !valid_mode(outarg.attr.mode)))
|
||||
err = -EIO;
|
||||
if (!err && outarg.nodeid) {
|
||||
inode = fuse_iget(dir->i_sb, outarg.nodeid, outarg.generation,
|
||||
|
@ -22,7 +22,7 @@ libfuse_la_SOURCES = \
|
||||
helper.c \
|
||||
$(mount_source)
|
||||
|
||||
libfuse_la_LDFLAGS = -lpthread -version-number 2:5:2 \
|
||||
libfuse_la_LDFLAGS = -lpthread -version-number 2:5:3 \
|
||||
-Wl,--version-script,fuse_versionscript
|
||||
|
||||
EXTRA_DIST = fuse_versionscript
|
||||
|
@ -1225,6 +1225,7 @@ static void fuse_release(fuse_req_t req, fuse_ino_t ino,
|
||||
struct node *node;
|
||||
int unlink_hidden;
|
||||
|
||||
pthread_rwlock_rdlock(&f->tree_lock);
|
||||
pthread_mutex_lock(&f->lock);
|
||||
node = get_node(f, ino);
|
||||
assert(node->open_count > 0);
|
||||
@ -1232,7 +1233,6 @@ static void fuse_release(fuse_req_t req, fuse_ino_t ino,
|
||||
unlink_hidden = (node->is_hidden && !node->open_count);
|
||||
pthread_mutex_unlock(&f->lock);
|
||||
|
||||
pthread_rwlock_rdlock(&f->tree_lock);
|
||||
path = get_path(f, ino);
|
||||
if (f->conf.debug) {
|
||||
printf("RELEASE[%llu] flags: 0x%x\n", (unsigned long long) fi->fh,
|
||||
@ -1937,6 +1937,7 @@ struct fuse *fuse_new_common(int fd, struct fuse_args *args,
|
||||
}
|
||||
|
||||
mutex_init(&f->lock);
|
||||
pthread_rwlock_init(&f->tree_lock, NULL);
|
||||
memcpy(&f->op, op, op_size);
|
||||
f->compat = compat;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user