NetBSD/lib/libperfuse
manu 075ba0e590 - Fix same vnodes associated with multiple cookies
The scheme used to retreive known nodes on lookup was flawed, as it only
used parent and name. This produced a different cookie for the same file
if it was renamed, when looking up ../ or when dealing with multiple files
associated with the same name through link(2).

We therefore abandon the use of node name and introduce hashed lists of
inodes. This causes a huge rewrite of reclaim code, which do not attempt
to keep parents allocated until all their children are reclaimed

- Fix race conditions in reclaim
There are a few situations where we issue multiple FUSE operations for
a PUFFS operation. On reclaim, we therefore have to wait for all FUSE
operation to complete, not just the current exchanges. We do this by
introducing node reference count with node_ref() and node_rele().

- Detect data loss caused by FAF
VOP_PUTPAGES causes FAF writes where the kernel does not check the
operation result. At least issue a warning on error.

- Enjoy FAF shortcut on setattr
No need to wait for the result if the kernel does not want it. There is
however an exception for setattr that touch the size, we need to wait
for completion because we have other operations queued for after the
resize.

- Fix fchmod() on write-open file
fchmod() on a node open with write privilege will send setattr with both mode and size set. This confuses some FUSE filesystem. Therefore we send two FUSE operations, one for mode, and one for size.

- Remove node TTL handling for netbsd-5 for simplicity sake. The code
still builds on netbsd-5 but does not have the node TTL feature anymore.
It works fine with kernel support on netbsd-6.
2012-07-21 05:49:42 +00:00
..
debug.c - Fix same vnodes associated with multiple cookies 2012-07-21 05:49:42 +00:00
fuse.h Add a FUSE trace facility, with statistics collection. This should help 2011-12-28 17:33:52 +00:00
libperfuse.3 Small typo in macro (Xd -> Xr). 2011-05-10 12:14:37 +00:00
Makefile These directories default to WARNS?=5 2012-03-21 05:37:42 +00:00
ops.c - Fix same vnodes associated with multiple cookies 2012-07-21 05:49:42 +00:00
perfuse_if.h - Fix same vnodes associated with multiple cookies 2012-07-21 05:49:42 +00:00
perfuse_priv.h - Fix same vnodes associated with multiple cookies 2012-07-21 05:49:42 +00:00
perfuse.c - Fix same vnodes associated with multiple cookies 2012-07-21 05:49:42 +00:00
perfuse.h
shlib_version
subr.c - Fix same vnodes associated with multiple cookies 2012-07-21 05:49:42 +00:00