+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().
-AC_INIT(fuse, 2.5.2)
+AC_INIT(fuse, 2.5.3)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(include/config.h)
-AC_INIT(fuse-kernel, 2.5.2)
+AC_INIT(fuse-kernel, 2.5.3)
AC_CONFIG_HEADERS([config.h])
AC_PROG_INSTALL
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)) {
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,
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
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);
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,
}
mutex_init(&f->lock);
+ pthread_rwlock_init(&f->tree_lock, NULL);
memcpy(&f->op, op, op_size);
f->compat = compat;