3700 Commits

Author SHA1 Message Date
Jeffrey Hutzelman
06fa1f9c40 viced-findclient-do-not-return-wrong-client-20060620
In h_FindClient_r it was possible for the wrong client to be returned
and worse for it to be returned without the reference count being
incremented.
2006-06-20 21:00:09 +00:00
Rainer Toebbicke
efd74baa95 viced-deadlock-20060620
FIXES 34073

* checks for client == oldClient

* drops the H_LOCK prior to obtaining the WriteLock on oldClient
  in order to prevent a deadlock
2006-06-20 15:50:17 +00:00
Jim Rees
1833072cc8 no-divide-by-zero-20060616
Print nothing rather than dividing by zero if the cache manager doesn't
return excessive cache params.
2006-06-16 20:08:29 +00:00
Troy Benjegerdes
176c2fddb9 fs-getcache-show-more-20060615
show more info about cache usage, optionally
2006-06-15 16:51:25 +00:00
Troy Benjegerdes
463d899a4f linux-current-already-used-20060615
don;'t conflict on use of current
2006-06-15 16:42:24 +00:00
Derrick Brashear
2e691074fb getaddr-avoid-looping-20060615
so it would be good to count these all off

oops
2006-06-15 16:12:13 +00:00
Derrick Brashear
592d97f947 rxbind-for-servers-20060612
FIXES 32308

support -rxbind switch for servers
2006-06-13 01:28:48 +00:00
Derrick Brashear
33418253e0 linux-enable-gcpags-20060612
enable gcpags
2006-06-12 17:19:27 +00:00
Chas Williams
b365b06d34 recvackpkt-count-acks-and-open-cong-window-20060612
"the non AFS_GLOBAL_RXLOCK_KERNEL version of
rxi_ReceiveAckPacket() wasnt counting 'hard' acks and not opening the
congestion window.  using rx_Readv() directs the incoming packets into
the target iov, and sends a hard ack (skipping soft acks).  "
2006-06-12 05:23:54 +00:00
Derrick Brashear
3d1fc22c6b getaddr-skip-loopbacks-version-for-macos-20060613
so rxbind does something sensible
2006-06-13 04:50:03 +00:00
Derrick Brashear
1e5f6a17fc namei-dec-drop-lock-20060612
FIXES 17638

unsure why yet, or even if, but this is all that makes sense
2006-06-13 00:58:33 +00:00
Jeffrey Altman
40b690803a windows-scache-recycle-fix-20060608
do not special case freelance entries
2006-06-08 22:17:04 +00:00
Jeffrey Altman
2c20a3d603 windows-cifs-std-info-take-two-20060607
The "is a directory" value was being set one field beyond the end of
the Standard Info reply structure.
2006-06-08 00:28:40 +00:00
Chaskiel M Grundman
f6468e0f27 no-client-tcon-20060607
remove client->tcon and avoid locking issues
2006-06-07 05:56:55 +00:00
Chaskiel M Grundman
ff39cf322c rx-magic-check-20060607
for pullup as /afs/andrew/usr18/cg2v/rx-magic-check.diff
2006-06-07 05:31:33 +00:00
Chaskiel M Grundman
ed9a218121 openlog-consistency-20060607
open logs consistently so assert logging is appended
2006-06-07 05:25:38 +00:00
Russ Allbery
b8b1438716 synchronize-xdr-20060606
Include the same set of xdr objects in the shared libafsrpc as are included
in the static libafsrpc.
2006-06-06 23:33:07 +00:00
Jeffrey Altman
422f2d4523 windows-smb-mountpt-is-dir-20060606
Be consistent about reporting mountpoints and invalid links as directories
to the CIFS client.
2006-06-06 17:57:43 +00:00
Jeffrey Altman
81cd89320f windows-makefile-clean-20060606
cleanup additional files
2006-06-06 15:43:16 +00:00
Jeffrey Altman
36da63e03d windows-version-20060604
1.5.0002
2006-06-05 04:25:03 +00:00
Jeffrey Altman
54eed0930a windows-notes-20060604
notes
2006-06-05 02:29:19 +00:00
Jeffrey Altman
b30dcf9738 viced-swap-old-cbcon-diff-20060603
FIXES 32985

swap cbconn when other side changes IPs
2006-06-04 07:11:53 +00:00
Jeffrey Altman
f4f09d1c03 windows-scache-recycle-20060603
A deadlock was detected when performing "fs flushall" if the file
server reports VNOVNODE.   The scp->createBufferLock is already
held by the current thread and there is no mechanism to propagate
the knowledge.  Therefore, an alternate mechanism for clearing the
cache must be developed.  A new function cm_RecycleSCache(scp,flags)
has been extracted from cm_GetNewSCache().  This function performs
the task of recycling an cm_scache_t object.  When called from
cm_GetNewSCache() with no flags the expectation is that there are
no associated buffers that are queued to be read or written.  When
called from cm_Analyze() with the CM_SCACHE_RECYCLEFLAG_DESTROY_BUFFERS
flag, any queued buffers will be de-queued and marked as if the operations
were performed so the data can be discarded.

This patch also addresses the following issues:

* CM_ERROR codes were logged as "unknown" by cm_Analyze.

* In response to VNOVNODE, the parent is only discarded if the current
  cm_scache_t is not a directory.

* In the Ioctl FlushFile and FlushVolume functions, there were no
  checks to protect against flushing the Freelance SCache entries.

* In FlushFile, the wrong cm_scache_t object was being released.

* In cm_GetNewSCache, do not allow Freelance SCache entries to be
  recycled.  Choose a new entry if cm_RecycleSCache fails.
2006-06-03 18:59:35 +00:00
Chaskiel M Grundman
99b572a00a flock-handle-uae-errors-20060601
handle uae versions of errors for flock locks
2006-06-02 22:12:27 +00:00
Joe Buehler
3fdb1902c0 linux-vfsops-remove-redundant-code-20060601
FIXES 32783

remove redundancy
2006-06-01 16:57:15 +00:00
Jeffrey Altman
87313c96b1 windows-smb-fid-faster-20060531
Speed up the performance of the cache manager by not holding the
smb_fid_t mutex across calls to cm_SyncOp and AFS RPCs.

Ensure that all smb_fid_t flag references are protected.
2006-06-01 04:50:13 +00:00
Derrick Brashear
397fb82b69 fix-rx-getaddr-20060531 2006-05-31 21:38:30 +00:00
Jeffrey Altman
134669a912 windows-smb-fid-deadlock-20060530
remove a deadlock introduced in 1.4.1
2006-05-30 17:56:51 +00:00
Jeffrey Altman
83732fdb15 windows-get-acls-20060528
It is possible to have a valid callback but not to have the
required ACL info for the current user.  Force acquisition of
a FetchStatus but do so without making multiple calls.
2006-05-29 00:03:52 +00:00
Jeffrey Altman
ee600c02e8 windows-hexdump-fix-20060528
do not allow unquoted percent signs to be logged
2006-05-29 00:01:26 +00:00
Jeffrey Altman
40415fe265 windows-access-fetchstatus-20060526
Do not call cm_GetCallback() directly.  Always
use cm_SyncOp(CM_SCACHESYNC_NEEDCALLBACK)
2006-05-26 22:11:15 +00:00
Jeffrey Altman
7ca1a339cb windows-dynamic-thread-priority-20060525
Dynamically adjust the priority of server threads based upon the age
of the cifs request that is being processed.  Bump the priority one
level for each 15 seconds of age.
2006-05-26 07:35:34 +00:00
Jeffrey Altman
c1e7927507 windows-head-tail-queue-removal-20060525
while investigating the cause of the delayed write errors it was observed
that all of the sleep queues are LIFO.  This has the side effect of
encouraging starvation.  Changing the queues to FIFOs revealed a serious
problem affecting the use of all queues which use both head and tail
pointers.  The removal function osi_QRemove does not take a tail pointer
and therefore the pointer is always left hanging.  If the number of elements
ever drops to zero the queue becomes corrupted.

Added osi_QRemoveHT to be used whenever head and tail pointers are used.
Updated all callers in afsd.
2006-05-25 18:11:57 +00:00
Jeffrey Altman
b753ef7265 windows-smb-mods-20060524
Prevent smb_FindVCP from returning dead virtual circuits

Treat "*." as an alias for "all"
2006-05-24 23:59:51 +00:00
Derrick Brashear
cefa6b1dce getaddr-skip-loopbacks-version-for-macos-20060523
so rxbind does something sensible
2006-05-24 16:49:11 +00:00
Hartmut Reuter
1344a69c57 rxkad-var-tkt-len-20060523
FIXES 31966

allocate memory for struct rxkad_cprivate based upon the actual
ticket size not the max ticket size
2006-05-23 17:29:11 +00:00
Jeffrey Altman
53f6c22a2b rx-rdwr-type-casting-20060523
type cast correctly
2006-05-23 05:47:29 +00:00
Jeffrey Altman
36f3bafb44 windows-aklog-afsid-lookup-20060519
if the cell matches the realm, do not lookup with realm
2006-05-20 04:14:07 +00:00
Jeffrey Altman
69c7d8ae70 viced-host-mobile-client-20060505
Do not delete an old host entry because the UUID because the UUIDs
of the clients at the old addresses are wrong.  Remove the addresses.

Do not allow the same host,addr,port combination to be added into
the hash table multiple times.

====================
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.
====================

Add some more logging

Do not allow 'code' to be re-used for probing the uuid of the old host
primary address because we are relying on the value of 'code' to indicate
whether or not RCallBackConnectBack failed.  If it did, we mark the
client as VENUSDOWN, if not we marked it as RESETDONE.

====================

log the old addr, not the new one
2006-05-13 15:22:20 +00:00
Jeffrey Altman
f6833e96f9 windows-smb-vcp-cleanup-races-20060511
Only allow one thread to mark the vcp dead
2006-05-11 13:36:06 +00:00
Derrick Brashear
bcabba9941 viced-writevalloc-dont-vtakeoffline-20060510
random errors shouldn't take the volume offline
2006-05-10 05:51:41 +00:00
Jim Rees
40916b821a fbsd-saddr-20060509
Small fixes to get sockaddr_storage changes working on FreeBSD
2006-05-09 19:41:47 +00:00
Jim Rees
e55549af14 snprintf-20060509
Change sprint to snprintf
2006-05-09 16:49:49 +00:00
Jeffrey Altman
66596cc677 windows-addr-change-mods-20060509
When the client changes IP addresses, in order to obtain optimal
performance it must:

(1) force the replacement of all existing rx connections

(2) ping all up and down servers
2006-05-09 06:18:08 +00:00
Jeffrey Altman
3a5acf0f09 bringing-rx-into-21st-century-20060504
rx_InitHost() port is in network byte order
2006-05-09 05:15:47 +00:00
Jeffrey Altman
cabc803a62 windows-less-power-mgmt-logging-20060508
comment out some of the power mgmt log entries
reducing the size of afsd_init.log
2006-05-09 02:37:30 +00:00
Jeffrey Altman
77fbc6a158 windows-smb-vcp-clean-20060508
don't grab the vcp mutex after releasing the vcp
2006-05-09 02:34:20 +00:00
Jeffrey Altman
f86e9dfd7b windows-osi-lock-validate-20060508
perform lock type validation
2006-05-09 02:30:37 +00:00
Derrick Brashear
9480277771 macos-packaging-oops-20060508
no plugin yet
2006-05-08 20:26:38 +00:00
Jeffrey Altman
c4b6c57f67 windows-manifests-20060505
embed manifests when building tools needed for building OpenAFS
mp-rxtcp-20060505
2006-05-05 19:26:51 +00:00