2562 Commits

Author SHA1 Message Date
Chas Williams
048c088f15 STABLE14-afs-indextimes-in-dcache-20050125
FIXES 17377

move indextimes array into dcache struct


(cherry picked from commit 1de152256aeb1d2b54e177a327404efe2504c815)
2005-01-31 04:23:31 +00:00
Chas Williams
8828862192 STABLE14-unpin-out-of-order-oops-20050125
FIXES 17346

unpin before freeing


(cherry picked from commit 9b7e78b048869e0319a369912d9fef63288dca7f)
2005-01-31 04:23:22 +00:00
Jeffrey Altman
6bd87f2519 STABLE14-rxdebug-withWaited-20050125
copy/paste error corrected.  'withWaited' never assigned a value


(cherry picked from commit 8a68d38977d4311a62350dd60645e39ded4650f1)
2005-01-31 04:23:17 +00:00
Derrick Brashear
4af4780deb STABLE14-linux-mmap-ro-means-no-write-20050125
don't allow a write map of a file which cannot be written to


(cherry picked from commit 96cf60ef3e830d16325fba664044f751ca164f85)
2005-01-31 04:23:11 +00:00
Nathan Neulinger
d9b041c595 STABLE14-no-copy-libafs-builds-20050121
make things so file copies from src/libafs don't happen; change how libafs_tree
is done


(cherry picked from commit 187f26a3afe805180268322d93dd7e01974c5fb1)
2005-01-31 04:23:02 +00:00
Nathan Neulinger
516fc4207d STABLE14-no-copy-libafs-builds-20021015
make things so file copies from src/libafs don't happen; change how libafs_tree
is done


(cherry picked from commit 782109a29bd751a7681e3a31aeaa077e880208c3)
2005-01-31 04:23:01 +00:00
Chas Williams
bdd9440ece STABLE14-linux-revised-dentry-invalidation-20050121
FIXES 17337

"the latest 2.6 version of "tryflushdcachechildren" is probably
good enough for 2.2/2.4 as well. further, we can just call
d_invalidate() to make things less complicated. unification
is good.

its seen limited testing here under 2.4/2.6."


(cherry picked from commit 72ea4e2c690d28b6c5c464368099b49dac847642)
2005-01-31 04:20:35 +00:00
Nickolai Zeldovich
4240eeb48a STABLE14-rx-hash-table-mod-prime-20050121
see https://lists.openafs.org/pipermail/openafs-devel/2004-September/010967.htmland https://lists.openafs.org/pipermail/openafs-devel/2004-September/010968.html


(cherry picked from commit 01aca8ca222373d71941cd007bdc00260bd3ff5c)
2005-01-31 04:20:25 +00:00
Douglas Engert
98ede708a9 STABLE14-rx-packetreadwrite-adjust-offset-20050119
offset - l must be zero in the second loop pass to avoid overwrites


(cherry picked from commit 110b1f14bd5b5548211ece9a32c540490e0aef6a)
2005-01-31 04:20:12 +00:00
Derrick Brashear
178fc7050b STABLE14-readd-qwaiting-20050121
FIXES 5616

the problem was caused by optimization on solaris. sigh.


(cherry picked from commit 90115511209e59ff4728a66a575899312fdf3e5b)
2005-01-31 04:20:00 +00:00
Derrick Brashear
4aac3f5268 STABLE14-linux-no-log-in-tryflushdcachechildren-20050121
FIXES 5835

just don't log, and lock order doesn't matter


(cherry picked from commit 76d6e43eb8e1ec72fcfde7cf8f303f954c11da14)
2005-01-31 04:19:55 +00:00
Jim Rees
6764e021dd STABLE14-alloc-confusion-20040120
use osi_Alloc instead of osi_AllocLargeSpace for tokens, to match free


(cherry picked from commit a0ce71a84374cc0600813a3101b76f89df04ee76)
2005-01-31 04:19:41 +00:00
Jim Rees
42b012d21b STABLE14-obsd-cred-ptr-20040120
**credpp, not *credp (OpenBSD only)


(cherry picked from commit 7f430a45aa12108ed1dc93e4a41ac154b1397818)
2005-01-31 04:19:20 +00:00
Jim Rees
83abf6cbd0 STABLE14-re-indent-20040120
re-indent so I can read the file so I can fix a bug


(cherry picked from commit dacae61bda0105497e912b3cdac429066cd68fcf)
2005-01-31 04:19:09 +00:00
Chas Williams
9a5016c423 STABLE14-linux26-vcache-reclaim-cleanup-20050119
"ok, if you ever drop
dcache_lock you need to go to restart (i think that's pretty clear).
shrink_dcache_parent() _might_ reduce a dentry count to 0.  in the
previous version, it seemed to make the assumption that this would
always happen.  if shrink_dcache_parent() is unsuccessful and the
dentry is a directory, we cant restart.  we would just find the
the dentry again and do the same thing over (we could always d_drop
but you shouldnt do this to active directories -- see d_invalidate).

if we find a busy dentry, we abort all processing for this inode.
going back to restart would find the same busy inode.  (i suppose
we could use a d_flag to keep track of which dentry has been shrunk.
this has other trouble, like who resets the flag and when?)  since we
only do this for directories and d_alias typically only grows due to
soft/hard links (as far as i can tell) this scheme seems reasonable."


(cherry picked from commit 73437ee7d469765df30285369301e3907fee0a3c)
2005-01-31 04:18:56 +00:00
Chaskiel M Grundman
885559ab7e STABLE14-dirbuffer-fid-is-index-20050119
"The new buffer code (which I wrote) did not deal
with dcache object re-use, as I had conflated the concepts of "dcache *
reuse" and "dcache slot reuse".

This patch should fix this problem. It now stores the dcache index (aka slot number,
which is the same as the numeric part of the cache file's filename) in the
buffer instead of the ephemeral struct dcache pointer."


(cherry picked from commit 8ccd2d91d89fc3ed0170a458853ec95ff274c87d)
2005-01-31 04:18:40 +00:00
Jeffrey Altman
07ff56fbb4 STABLE14-rx-multiple-packets-20050118
Doug Engert reports that large tokens are corrupted when being sent
using RX.  This patch fixes two bugs which prevent the transmission
and receipt of multiple packet exchanges.


(cherry picked from commit f42701022203605f8509b106fe8ca1677666aaa9)
2005-01-31 04:18:32 +00:00
Jim Rees
2527473d99 STABLE14-obsd-cleanups-20040118
remove dead code
add (commented out, non-working) new reclaim code


(cherry picked from commit 5f498279b827675a48c80b7c2f43c78d8e41d406)
2005-01-31 04:18:25 +00:00
Jeffrey Altman
0e9de60611 STABLE14-windows-smb_vc_t-refcounts-20050117
Rework the reference counting of the smb_vc_t objects to use
smb_ReleaseVC and smb_HoldVC.  Add missing counts for references
from waiting locks.

Fix cm_ioctl.c to allow it to compile once again.


(cherry picked from commit eabe2b6f77da6913b4a6bd51220708c363762fe6)
2005-01-31 04:17:43 +00:00
Chas Williams
aa3ebd8013 STABLE14-linux26-rename-more-cleanup-20050116
FIXES 17284

cleanup how renaming does moving and unhashing of dentries


(cherry picked from commit cadc5b46e103fd543814d450dd9a568961c9886a)
2005-01-31 04:17:14 +00:00
Chaskiel M Grundman
08330670c7 STABLE14-linux26-dcache-lock-20050116
FIXES 17266

"The changes I submitted previously, and committed as
linux-26-vlru-cycle-20041012 do not satisfy necessary invariants of the
dcache api.

1) the dcache_lock is not held when calling d_unhashed and
list_empty(&dentry->d_subdirs)
2) the caller of d_prune_aliases does not hold it's own ref on the inode

Patch attached.(has been used lightly for a month or so)"


(cherry picked from commit 646028dbdb90640f14f7a22aede858432ffa9025)
2005-01-31 04:16:56 +00:00
Chaskiel M Grundman
a68dece64e STABLE14-linux26-zomb-gcpags-cleanup-20050116
FIXES 17265

clean up for newer non-TASK_ZOMBIE kernels


(cherry picked from commit 091d64876bea6737dd6cf89a9232dd11d0072677)
2005-01-31 04:16:49 +00:00
Chas Williams
ec3f5221e3 STABLE14-linux25-rename-rehash-not-move-20050116
not tested yet


(cherry picked from commit 8db7eb1876380df8100c5df37e6a25a7ebc4f43b)
2005-01-31 04:16:40 +00:00
Matthew Miller
7a10e32602 STABLE14-linux26-rlim-20050114
detect rlim stuff for linux 2.6


(cherry picked from commit 9e81a8e4c2e7830ab18de1f5dd23dfc916ef2bf0)
2005-01-31 04:16:28 +00:00
Derrick Brashear
0151cb9b67 STABLE14-fs-busy-stats-20050113
add support for counting number of vbusies returned


(cherry picked from commit d9e55baca180891ef999919118a5ad2d73764abb)
2005-01-31 04:14:45 +00:00
Johan Danielsson
126adfa9fd STABLE14-linux26-pag-copy-groups-always-20050113
FIXES 17226

always copy the group list on linux 2.6


(cherry picked from commit 0cea4432fcceff07103cb4df0eba9b5667ce1fa4)
2005-01-31 04:14:36 +00:00
Chas Williams
cc13538ae9 STABLE14-x86-sol10-param-cleanup-20050113
FIXES 17082

make user section match kernel section


(cherry picked from commit 7854052b3827a3853cb80a6f7de5dcc32756aa95)
2005-01-31 04:14:21 +00:00
Chas Williams
58ee8b895c STABLE14-fstrace-linux-proc-20050113
FIXES 17240

support /proc interface


(cherry picked from commit 270f675b6f64df5cca73de2ae097a12fd56c59b9)
2005-01-31 04:14:08 +00:00
Chas Williams
9d26f5c510 STABLE14-sol10-afsd-rc-20050113
FIXES 17036

install an rc file for solaris 10


(cherry picked from commit 2519680a2c93f4a3049e64bd22760510775e3343)
2005-01-31 04:13:57 +00:00
Love Hörnquist-Åstrand
072852376d STABLE14-nbsd30-20050113
FIXES 16889

netbsd 3 this time for sure


(cherry picked from commit ed02afba553ca9944c5e3c338188ba38b5946a0c)
2005-01-31 04:13:44 +00:00
Derrick Brashear
e54dc999eb STABLE14-largefile-efbig-20050113
FIXES 16964

return EFBIG instead of E2BIG


(cherry picked from commit 0a872abd75fa27bb91aa2724c54fc72fce03f241)
2005-01-31 04:13:36 +00:00
Douglas Engert
54c74d940f STABLE14-sol9-vfsck-interleave-becomes-si-20050113
FIXES 16941

fix remaining fs_interleave ref


(cherry picked from commit a18937e6a4e5f8a3266e6208bf51fea9bb636c48)
2005-01-31 04:12:57 +00:00
Kris Van Hees
bdcabfd4b8 STABLE14-linux-page-follow-link-light-20041209
FIXES 16742

new 2.6 uses page_follow_link_light
detect and use
2005-01-31 04:12:51 +00:00
Rainer Toebbicke
79dd19d6e7 STABLE14-lih-host-hold-20050113
FIXES 17211

"lih_r now leaves the current lih_host held, and h_Releases those for which
it changed mind during h_Enumerate. It also closes the window that
ClearHostCallbacks_r opens.

The problem was: due to the leak on the h_Hold table, rx connections and
host and client structures stopped being garbage collected once the
fileserver went through GetSomeSpace_r. Only relevant for "busy" servers,
many would never even invoke this routine."


(cherry picked from commit e4961402747d02f51b0ea82aad7f0d4f774dbeac)
2005-01-31 04:10:43 +00:00
Chas Williams
488be9122c STABLE14-linux26-avoid-memory-zone-fun-20050113
FIXES 16965

"  the wake_up_bit() mechanism has replaced
'per object' wait queues (atleast when testing for single bit changes).
the actual wait queue to use is determined using a hash on page->flags
(which encodes the zone table in the lower 8 bits).  afs inodes come from
a vmalloc() since afs gets all the inodes in one go.  vmalloc()'d memory
apparently doesnt get mapped to any particular zone.  so when an afs
inode uses wake_up_bit() they index off the end of the zone_page table.
"


(cherry picked from commit 543d4464d8afe11e74b239abb5da20b0269259b3)
2005-01-31 04:09:57 +00:00
Derrick Brashear
726b9f6de4 STABLE14-memcache-no-volitems-20050113
Don't try to open VolumeItems when using memcache


(cherry picked from commit 1307b891888c61debe2eadd47ddfe8717fc75ddd)
2005-01-31 04:09:51 +00:00
Jeffrey Altman
5a8303f799 STABLE14-windows-fs-wscell-20050112
when freelance mode is in use, "fs wscell" will now return
"Freelance.Local.Root"


(cherry picked from commit b11e76ce63b6c23265d17d5597342e4aa296f6c0)
2005-01-31 04:09:42 +00:00
Jeffrey Altman
f7f484bcca STABLE14-windows-pioctl-20050112
Fix a bug introduced in 1.3.75 within Tranceive().  If the file handle
is invalid, be sure to return an error.


(cherry picked from commit 5a3eddc8ba75832c55e322c7189ff5f20df834fe)
2005-01-31 04:09:37 +00:00
Jeffrey Altman
58c23d2810 STABLE14-windows-misc-20050112
New AFS Logo Icon

Fix the assignment of the dataVersion for the freelance scache entries

Fix the calling convention of the AFSD Service Main function to be
WINAPI.


(cherry picked from commit 4c861ab65683add205d062790036b27123d0fe6b)
2005-01-31 04:09:28 +00:00
Derrick Brashear
c13731d8fb STABLE14-rx-avoid-xmit-overflow-panic-20050107
instead of losing, just send the packets and then make another pass to collect more


(cherry picked from commit 1a8519de16a2dad989300da94d597fac57c20c0f)
2005-01-31 04:09:23 +00:00
Jeffrey Altman
ad66aaf7fd STABLE14-windows-notes-20050104
updates


(cherry picked from commit d3fc023d07f923eb53c28d2bc480745ae9227593)
2005-01-31 04:09:17 +00:00
Jeffrey Altman
5d309485c1 STABLE14-windows-remove-extra-parameter-20050104
aklog.c - remove extra parameter from pr_Initialize()


(cherry picked from commit 1a3e8d9e1641a301a87dd0a0f5b2ca5ef2528e58)
2005-01-31 04:09:10 +00:00
Jeffrey Altman
65f2a099f3 STABLE14-windows-cb-deadlock-20050104
afskfw.c - remove extra parameter to pr_Initialize

afsd_service.c - move SERVICE_STOP_PENDING to before we start to
                 do any work.

afsd_init.c - initialize rx and rpc after starting the cache manager

cm_callback.c - release cm_callbackLock before attempting to re-obtain
                scp->mx lock in cm_EndCallbackGrantingCall()


(cherry picked from commit ca1c67688bf92903c9803976e918266753ef0aae)
2005-01-31 04:08:57 +00:00
Jeffrey Altman
25297a74ee STABLE14-windows-misc-fix-20050102
fix typo


(cherry picked from commit 5bbfc9302503af54ecfd78450abc0b1edf88a860)
2005-01-31 04:08:49 +00:00
Jeffrey Altman
ae2b17e1eb STABLE14-windows-misc-20050102
link to afsutil.lib for hostutil functions


(cherry picked from commit 635abf2d8fb4cfb94ecb396f125e8b65af1d7813)
2005-01-31 04:05:00 +00:00
Jeffrey Altman
b6cd0c1acc STABLE14-ptuser_h-20050102
add ptuser.h


(cherry picked from commit 48ba9a0cd5869264790e3d0d539dd7798813009c)
2005-01-31 03:58:39 +00:00
Jeffrey Altman
5e90243279 STABLE14-windows-virtual-memory-20041224
* The variable used to determine whether a file or virtual memory
    mapped cache is used was not properly initialized to a default
    value. If the registry setting "NonPersistentCaching" was not
    set, the choice would be random.   Properly initialized to be
    "file".

 * The memory mapped view was never unmapped before closing the file
   at service shutdown.  This is now properly cleaned up.

 * Default location of Cache file is now %TEMP%\AFSCache


(cherry picked from commit d3d4af7795dd7371750bfdb9612b6419561cf32b)
2005-01-31 03:53:21 +00:00
Derrick Brashear
70389dbf83 STABLE14-dux-vnops-cleanup-20041224
move DUX code out of vnops and into dux os dependant code


(cherry picked from commit a66c63315b2cb83cc356068972ba4ffbbcb609f1)
2005-01-31 03:49:11 +00:00
Jeffrey Altman
f41ab81ac4 STABLE14-windows-notes-20041216
document bug found in 1.3.75/76 release


(cherry picked from commit a69e758875b420de6d5ae8ac9c303da5b708d63b)
2004-12-16 20:11:40 +00:00
Jeffrey Altman
69f2fe49d7 STABLE14-windows-freelance-default-root-cell-20041217
FIXES 16860

Forgot to add trailing dot on auto-generated default root.cell mountpoints.


(cherry picked from commit f26bd30c980288132f800ebbc1bfc1a2b281c2b2)
2004-12-16 19:02:48 +00:00