don't improperly enforce read attribute restriction on child instead of parent
when it's a directory
avoid screwing ourselves on mode 0 files, also
(cherry picked from commit e07a781b20272a629f73cf8b2377ee8e3bd6cd99)
The afs_pioctl.c change should fix a real crash (panic), but fs flushv isn't
that common an operation.
Other changes:
don't GUNLOCK() around vnode_get(). we weren't consistent about it, and it
doesn't appear to be strictly required.
handle vnode_get() failures in more cases
darwin_vn_hold will panic if vnode is terminating rather than mess up the
refcounts.
(cherry picked from commit 8b015a5e325b52969203d0647f67945ab7e402cc)
FIXES 22644
cache_purge() to hint to darwin that we changed something instead of letting it cache invalid data
(cherry picked from commit 518bebb032c410a520a8923a16263e605370d60c)
potential reclaim in progress fix, and per Chaskiel,
"I don't remember why I put it there, but the fact that
it gets triggered means that we're leaking a vcache object lock. It looks
like the "rename to .__afsXXXX" codepath is responsible (as afsrename does
not use the fact that adp (or aodp) is locked by afs_remove, and locks it
again. I'm surprised it's not deadlocking)" so i coded up a fix
====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
chaskiel says
The RHS shouldn't be a double negative...
There's no bug (other than the assert itself)
(cherry picked from commit 97ebc776712b455b1e85df598b61ba6c847ca0a6)
The ocfs2 patch renames WRITEPAGE_ACTIVE to AOP_WRITEPAGE_ACTIVE, and
Ubuntu has applied that patch to their version of the kernel. Allow for
either.
(cherry picked from commit 37147a406e5a44d762c976773d7f3bd01154460a)
fix rainer toebbicke's callbacks vanishing issue. this was probably my fault merging
(cherry picked from commit 05db09ada10f83666a8d46e734d26656e99397f2)
FIXES 23257
allow cached stat info to be accessed for directories where a user has only "l"
(cherry picked from commit 54ad6e769e1362ad5a81c0ef91c49babad9a37f1)
FIXES 22260
allow newvcache to fail without ooping
sort of nasty, if you want more vcaches, say so.
(cherry picked from commit ee1435d516a31e8ec2d07ec9021bf032ac12f9cd)
This patch tries to implement the afsd default tuning parameters
discussed in the thread starting at
https://www.openafs.org/pipermail/openafs-devel/2005-May/012158.html
I took the liberty of adding chunksize-tuning to the memcache too,
with the motivation that people using large memcaches usually wants
better bulk performance too.
It seems to work for me using both disk cache and memcache of various
sizes.
(cherry picked from commit 9d396c4916fdac64fcface30e6637ca6e2911203)
With thanks to "Todd T. Fries" <todd@fries.net>
OpenBSD 3.8.
Introduce HAVE_STRCASESTR.
(cherry picked from commit c8db31cc2bf9b59d8b8cf7e5310079ff6c9e4a96)
minor cleanup to get things working from the merge
====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
remaining bits to make this build
====================
add missing installer files
based on comment from chas williams. set the default write amount as is
done for ufs cache writes
(cherry picked from commit 543e49eaaea2290c4239dd79864384f11adb2607)
FIXES 21722
ndir.h has been changed. also, pthreads header doesn't match how we used it
(cherry picked from commit aee18ed884d2af05174594120ba1825bfe76c96a)
passing a random nlen into afs_GetDCache() when in write mode
seems to sometimes trigger overwrites.
(cherry picked from commit f1454a2885c410f5e886fa136a61c70cc06d42df)