3602 Commits

Author SHA1 Message Date
Asanka Herath
623b91d6af DEVEL15-windows-wix-help-files-install-location-20060623
place the help files in the correct location


(cherry picked from commit e264711295275b7b1372e701bf106cf75b342007)
2006-06-24 03:49:43 +00:00
Jeffrey Altman
1a7f467122 DEVEL15-windows-cm_syncop-buflocked-20060622
If cm_SyncOp is called with the buffer locked, it must be returned
locked even on error.


(cherry picked from commit ae9a07a8e0a5d0e83e138ef9bbd71b3e7e0072ea)
2006-06-23 04:34:40 +00:00
Jeffrey Altman
65121b480d DEVEL15-windows-no-freelance-vldb-failover-20060622
When Freelance mode is not in use the cache manager must load the root.afs
volume of the default cell in order to be able to start.   Unfortunately,
if the first vlserver fails the request to obtain the volume information
will timeout and no retries will be performed.  This patch performs up
to 10 retries in the initialization code in order to enable the vlservers
to be marked down so that failover can occur.


(cherry picked from commit 4859232df55c94232a70d602cafe6a8bcc72d9dd)
2006-06-22 22:54:40 +00:00
Jeffrey Altman
cc25d59509 DEVEL15-windows-viced-cbd-20060621
typo


(cherry picked from commit d53a0a8d5e58d6bb0a979d977889aa2bfcb19829)
2006-06-21 21:40:31 +00:00
Jeffrey Altman
e103928a30 DEVEL15-windows-viced-cbd-20060620
build the callback debug utility


(cherry picked from commit f3a7cd67c5d9d225a688892b3d5948db11e9a82e)
2006-06-20 23:10:53 +00:00
Tom Keiser
cd6c0f39e2 DEVEL15-aix-largefile-cleanup-20060620
some largefile cleanup and other minor aix tweaking


(cherry picked from commit 7826b313868ec8ce975b65e5c430a9503fca4dd5)
2006-06-20 22:40:04 +00:00
Jeffrey Altman
9a8554fa6f DEVEL15-windows-afsrpc-exports-20060620
New functions: rx_InitHost, rx_NewServiceHost


(cherry picked from commit 840ef4a80f3ec8378865232f23171c7c3485626b)
2006-06-20 21:59:25 +00:00
Jeffrey Altman
8a9d6bfa5b DEVEL15-rxbind-for-servers-20060620
do not call parseNetFile on Windows where the function does not exist


(cherry picked from commit 7af6b06cb6611a8925e3fa887ddf0a03542ee4dc)
2006-06-20 21:37:10 +00:00
Jeffrey Hutzelman
f8417b5f63 DEVEL15-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.


(cherry picked from commit 06fa1f9c40432747724e6e55154bf54e1e3e94c5)
2006-06-20 21:03:16 +00:00
Rainer Toebbicke
0b543c1de5 DEVEL15-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


(cherry picked from commit efd74baa950133de6ed92b7395be6d14ef63a58e)
2006-06-20 15:53:18 +00:00
Troy Benjegerdes
ceae30e010 DEVEL15-fs-getcache-show-more-20060615
show more info about cache usage, optionally


(cherry picked from commit 176c2fddb95ced6c13e04e7492fc09b5551f273c)
2006-06-15 16:52:59 +00:00
Troy Benjegerdes
0d8e3b7e62 DEVEL15-linux-current-already-used-20060615
don;'t conflict on use of current


(cherry picked from commit 463d899a4f6527fc26d29e4cff31f65028cfa43f)
2006-06-15 16:45:19 +00:00
Derrick Brashear
92168775a6 DEVEL15-getaddr-avoid-looping-20060615
so it would be good to count these all off

oops


(cherry picked from commit 2e691074fb6ce70e8352da3e57a746a77f7489f1)
2006-06-15 16:20:56 +00:00
Derrick Brashear
27e172d6bc DEVEL15-getaddr-skip-loopbacks-version-for-macos-20060613
so rxbind does something sensible


(cherry picked from commit 3d1fc22c6ba5d07c831da79ffa01e3cf4d95322a)
2006-06-13 04:52:39 +00:00
Derrick Brashear
c1df032b97 DEVEL15-rxbind-for-servers-20060612
FIXES 32308

support -rxbind switch for servers


(cherry picked from commit 592d97f9472abcf77496cef07261fa8766f60b9f)
2006-06-13 01:29:15 +00:00
Derrick Brashear
66a4a10a42 DEVEL15-namei-dec-drop-lock-20060612
FIXES 17638

unsure why yet, or even if, but this is all that makes sense


(cherry picked from commit 1e5f6a17fcf4f7039bae756c22735b77a31ceec5)
2006-06-13 01:01:51 +00:00
Derrick Brashear
bb99162d2d DEVEL15-linux-enable-gcpags-20060612
enable gcpags


(cherry picked from commit 33418253e06534b43ad44eaa71b7c4a84be7cb49)
2006-06-12 17:25:47 +00:00
Chas Williams
78e16a87d7 DEVEL15-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).  "


(cherry picked from commit b365b06d34a9450dc53ad22e8ecb3f6d922af5f4)
2006-06-12 05:27:07 +00:00
Jeffrey Altman
a955a3c506 DEVEL15-windows-scache-recycle-fix-20060608
do not special case freelance entries


(cherry picked from commit 40b690803a928da8bf25b1e03745e95f14fd1743)
openafs-devel-1_5_2
2006-06-08 22:22:20 +00:00
Jeffrey Altman
43cb64929c DEVEL15-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.


(cherry picked from commit 2c20a3d603fcc654759b8c90924f36468f8aae81)
2006-06-08 00:31:55 +00:00
Derrick Brashear
eaaf7091e7 DEVEL15-openafs-devel-1-5-2-20060607
1.5.2
2006-06-07 06:03:06 +00:00
Chaskiel M Grundman
728594ad69 DEVEL15-no-client-tcon-20060607
remove client->tcon and avoid locking issues


(cherry picked from commit f6468e0f27c90b2e2385508f9a1f01b8b1d346d2)
2006-06-07 05:56:29 +00:00
Chaskiel M Grundman
7a3d70f177 DEVEL15-openlog-consistency-20060607
open logs consistently so assert logging is appended


(cherry picked from commit ed9a2181217f19b7ddbfe28118f6fb2f700b08ad)
2006-06-07 05:28:57 +00:00
Russ Allbery
cbff26d61c DEVEL15-synchronize-xdr-20060606
Include the same set of xdr objects in the shared libafsrpc as are included
in the static libafsrpc.


(cherry picked from commit b8b1438716a14b596a68c2e77d54ca66009c01c2)
2006-06-07 05:23:56 +00:00
Jeffrey Altman
cf2efc98d5 DEVEL15-windows-smb-mountpt-is-dir-20060606
Be consistent about reporting mountpoints and invalid links as directories
to the CIFS client.


(cherry picked from commit 422f2d4523ae9be2ff3f1395db1dd62b0b3a3b4b)
2006-06-06 18:00:08 +00:00
Jeffrey Altman
42579550a7 DEVEL15-windows-makefile-clean-20060606
cleanup additional files


(cherry picked from commit 81cd89320fe855d22f91bda461dd5cdba147b671)
2006-06-06 15:47:08 +00:00
Jeffrey Altman
888c845999 DEVEL15-windows-version-20060604
1.5.0002


(cherry picked from commit 36da63e03de7230b8464a50a58acf732ce994ff2)
2006-06-05 04:26:33 +00:00
Jeffrey Altman
86565bfbc2 DEVEL15-windows-notes-20060604
updates


(cherry picked from commit 54eed0930a36c54db73f8e2d10c28b99c2c1e6bb)
2006-06-05 02:37:01 +00:00
Jeffrey Altman
e425a3995c DEVEL15-viced-swap-old-cbcon-diff-20060603
FIXES 32985

swap cbconn when other side changes IPs


(cherry picked from commit b30dcf9738d7fa87f8da4afa1f024376130b80a9)
2006-06-04 07:14:30 +00:00
Jeffrey Altman
10125417e2 DEVEL15-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.


(cherry picked from commit f4f09d1c03cf738de6f73fc9d56502babd6743b4)
2006-06-03 19:01:19 +00:00
Chaskiel M Grundman
1eb78d4f8d DEVEL15-flock-handle-uae-errors-20060601
handle uae versions of errors for flock locks


(cherry picked from commit 99b572a00a342ab6ff003eb6736eb24a27e8fb15)
2006-06-02 22:25:26 +00:00
Joe Buehler
cf9182c61f DEVEL15-linux-vfsops-remove-redundant-code-20060601
FIXES 32783

remove redundancy


(cherry picked from commit 3fdb1902c04153e3522e36c091b073dc7419ac65)
2006-06-01 16:58:06 +00:00
Jeffrey Altman
6654ea25ee DEVEL15-rx-rdwr-type-casting-20060523
type cast correctly


(cherry picked from commit 53f6c22a2b590279d0ea4859829aec71c0692983)
2006-06-01 16:50:21 +00:00
Jim Rees
3818718c63 DEVEL15-md5-formerly-fbsd-saddr-wtf-20060601
seemlingly unrelated change in with some other stuff, so i can't just pull or leave it
2006-06-01 16:49:56 +00:00
Jeffrey Altman
7c2285d7a2 DEVEL15-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.


(cherry picked from commit 87313c96b1271b4730a27dcee1b6c062b0a37425)
2006-06-01 16:42:02 +00:00
Derrick Brashear
43e7a59b49 DEVEL15-fix-rx-getaddr-20060531
(cherry picked from commit 397fb82b694e72d9259aaa7264ca432c007bdb6f)
2006-06-01 16:41:49 +00:00
Jeffrey Altman
7257bdd0c3 DEVEL15-windows-smb-fid-deadlock-20060530
remove a deadlock introduced in 1.4.1


(cherry picked from commit 134669a912a99b212fb4768d2a9a969cda5fffff)
2006-06-01 16:41:23 +00:00
Jeffrey Altman
29bf66303a DEVEL15-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.


(cherry picked from commit 83732fdb158e79b64774667ee09fc1b81062707e)
2006-06-01 16:40:57 +00:00
Jeffrey Altman
5d53e77aa7 DEVEL15-windows-hexdump-fix-20060528
do not allow unquoted percent signs to be logged


(cherry picked from commit ee600c02e8f7c1299e3ebe13867f9aaa581c0141)
2006-06-01 16:40:48 +00:00
Jeffrey Altman
4af126ec26 DEVEL15-windows-access-fetchstatus-20060526
Do not call cm_GetCallback() directly.  Always
use cm_SyncOp(CM_SCACHESYNC_NEEDCALLBACK)


(cherry picked from commit 40415fe265d8e660f3698d8ab7f93004d589f902)
2006-06-01 16:40:32 +00:00
Jeffrey Altman
39b4525648 DEVEL15-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.


(cherry picked from commit 7ca1a339cb488fd97015e959e2a17e91e9b56409)
2006-06-01 16:40:04 +00:00
Jeffrey Altman
3b3f0704b1 DEVEL15-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.


(cherry picked from commit c1e79275079cfa68d73cc3a008c3fb3b201f1068)
2006-06-01 16:39:51 +00:00
Jeffrey Altman
4b6e5b7e69 DEVEL15-windows-smb-mods-20060524
Prevent smb_FindVCP from returning dead virtual circuits

Treat "*." as an alias for "all"


(cherry picked from commit b753ef7265b1970d1e38f3c65532af929102e1d6)
2006-06-01 16:39:40 +00:00
Derrick Brashear
92595f88bf DEVEL15-getaddr-skip-loopbacks-version-for-macos-20060523
so rxbind does something sensible


(cherry picked from commit cefa6b1dce9aa3c12a7afbc0c6b4d68c3444758d)
2006-06-01 16:39:18 +00:00
Hartmut Reuter
f5d64d030b DEVEL15-rxkad-var-tkt-len-20060523
FIXES 31966

allocate memory for struct rxkad_cprivate based upon the actual
ticket size not the max ticket size


(cherry picked from commit 1344a69c57f6c2b8e0588e4b18b1178bc596f190)
2006-06-01 16:38:59 +00:00
Jeffrey Altman
5de6714250 DEVEL15-windows-aklog-afsid-lookup-20060519
if the cell matches the realm, do not lookup with realm


(cherry picked from commit 36f3bafb44aae8472453a1c39e9585b920a1bada)
2006-06-01 16:38:52 +00:00
Jeffrey Altman
92c2d265cd DEVEL15-windows-smb-vcp-cleanup-races-20060511
Only allow one thread to mark the vcp dead


(cherry picked from commit f6833e96f961de1c1d402646c87681f27bf926e9)
2006-06-01 16:37:25 +00:00
Derrick Brashear
3a518fb146 DEVEL15-viced-writevalloc-dont-vtakeoffline-20060510
random errors shouldn't take the volume offline


(cherry picked from commit bcabba994188a4c88bdae3c5252c9b0de5d163c8)
2006-06-01 16:36:58 +00:00
Jeffrey Altman
17c569d0b0 DEVEL15-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


(cherry picked from commit 66596cc677e8cbf7fa40ad2962ccc4547692afb5)
2006-06-01 16:36:46 +00:00
Jeffrey Altman
953cbe4fab DEVEL15-windows-less-power-mgmt-logging-20060508
comment out some of the power mgmt log entries
reducing the size of afsd_init.log


(cherry picked from commit cabc803a62c2f3d20d41356bc177873bcf79c033)
2006-06-01 16:36:39 +00:00