3495 Commits

Author SHA1 Message Date
Jeffrey Altman
fbf29b6193 STABLE14-windows-nsis-help-files-install-location-20060625
place the help files in the correct location


(cherry picked from commit bfa26d1ddfc7727a9f8c2e79c8d608c586823a12)
2006-06-25 15:55:35 +00:00
Jeffrey Altman
613db5946c STABLE14-windows-report-quota-diskfull-20060624
overquota and diskfull errors are detected while writing dirty buffers
to the file server.  A flag is set on the scp so that the error can
be returned to the caller.  cm_FSync was clearing the flag without
returning the error. This permitted calls to Win32 WriteFile to report
success even when they failed.


(cherry picked from commit 8e0033ba73ef9551cb24052ef90db677e4adad50)
2006-06-25 02:49:59 +00:00
Russ Allbery
52fda2385e STABLE14-rhel3-krb524-checking-20060624
FIXES 30589

Check for krb524 functions in libkrb524 if not found in libkrb5 so that the
Kerberos v5 support will build on RHEL3.  Thanks to Derek Atkins for the
debugging and testing.


(cherry picked from commit a4cb03504075771e0f2cfebf931f91f29553c73a)
2006-06-24 17:22:13 +00:00
Asanka Herath
385c742df5 STABLE14-windows-wix-help-files-install-location-20060623
place the help files in the correct location


(cherry picked from commit e264711295275b7b1372e701bf106cf75b342007)
2006-06-24 04:05:44 +00:00
Jim Rees
35c8a3599b STABLE14-obsd-39-141-20060623
By popular demand, merge OpenBSD 3.9 changes to 1.4.x branch
2006-06-23 15:21:12 +00:00
Jeffrey Altman
bb5a4fa334 STABLE14-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:37:57 +00:00
Jeffrey Altman
cb4150d060 STABLE14-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:50:13 +00:00
Tom Keiser
26f27b64e4 STABLE14-aix-largefile-cleanup-20060620
some largefile cleanup and other minor aix tweaking


(cherry picked from commit 7826b313868ec8ce975b65e5c430a9503fca4dd5)
2006-06-21 18:59:07 +00:00
Derrick Brashear
0bbe6a7526 STABLE14-dont-override-default-fs-settings-for-aix5-20060620
this was just excessively clever. if aix 5 binaries "want" this, there are configure switches. laziness sucks.
2006-06-20 22:31:04 +00:00
Jeffrey Altman
1c170f4ab8 STABLE14-windows-afsrpc-exports-20060620
New functions: rx_InitHost, rx_NewServiceHost


(cherry picked from commit 840ef4a80f3ec8378865232f23171c7c3485626b)
2006-06-20 22:00:18 +00:00
Jeffrey Altman
ddc23594e9 STABLE14-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:34:59 +00:00
Jeffrey Hutzelman
9636e92f09 STABLE14-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:01:42 +00:00
Rainer Toebbicke
c3eece557f STABLE14-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:51:43 +00:00
Derrick Brashear
32998655e1 STABLE14-getaddr-avoid-looping-20060615
so it would be good to count these all off

oops


(cherry picked from commit 2e691074fb6ce70e8352da3e57a746a77f7489f1)
2006-06-15 16:13:33 +00:00
Derrick Brashear
72a0ca838d STABLE14-rxbind-for-servers-20060612
FIXES 32308

support -rxbind switch for servers


(cherry picked from commit 592d97f9472abcf77496cef07261fa8766f60b9f)
2006-06-13 01:29:03 +00:00
Derrick Brashear
24f40413fb STABLE14-linux-enable-gcpags-20060612
enable gcpags


(cherry picked from commit 33418253e06534b43ad44eaa71b7c4a84be7cb49)
2006-06-12 17:20:53 +00:00
Chas Williams
b5f8af2bbd STABLE14-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:25:24 +00:00
Jeffrey Altman
df04a8b342 STABLE14-windows-scache-recycle-fix-20060608
do not special case freelance entries


(cherry picked from commit 40b690803a928da8bf25b1e03745e95f14fd1743)
2006-06-08 22:19:17 +00:00
Chaskiel M Grundman
e5e8d2ac72 STABLE14-linux-enroll-locks-20060403
FIXES 25037

enroll our locks in the linux kernels' lock management


(cherry picked from commit 62e28d9a0a6adc6e1f3c2938bfc530b54bea4158)
openafs-stable-1_4_2-beta1
2006-06-13 17:00:38 +00:00
Derrick Brashear
df39e2ec8a STABLE14-getaddr-skip-loopbacks-version-for-macos-20060613
so rxbind does something sensible


(cherry picked from commit 3d1fc22c6ba5d07c831da79ffa01e3cf4d95322a)
2006-06-13 04:54:18 +00:00
Derrick Brashear
b9ae946e20 STABLE14-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:00:17 +00:00
Jeffrey Altman
5b8839a185 STABLE14-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:30:18 +00:00
Derrick Brashear
d8478e1848 STABLE14-openafs-1-4-2-beta1-20060607
openafs 1.4.2-beta1i
2006-06-07 06:05:44 +00:00
Chaskiel M Grundman
e9f6a9d8a6 STABLE14-no-client-tcon-20060607
remove client->tcon and avoid locking issues
2006-06-07 05:55:25 +00:00
Chaskiel M Grundman
c9b812ccb3 STABLE14-openlog-consistency-20060607
open logs consistently so assert logging is appended


(cherry picked from commit ed9a2181217f19b7ddbfe28118f6fb2f700b08ad)
2006-06-07 05:27:17 +00:00
Russ Allbery
8abc5b957f STABLE14-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:22:27 +00:00
Jeffrey Altman
86bb89598c STABLE14-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 17:58:50 +00:00
Jeffrey Altman
b0410b3dc4 STABLE14-windows-makefile-clean-20060606
cleanup additional files


(cherry picked from commit 81cd89320fe855d22f91bda461dd5cdba147b671)
2006-06-06 15:52:20 +00:00
Jeffrey Altman
4718ac247d STABLE14-windows-version-20060604
1.4.0151 == 1.4.2-beta-1


(cherry picked from commit 36da63e03de7230b8464a50a58acf732ce994ff2)
2006-06-05 04:30:02 +00:00
Jeffrey Altman
9540751074 STABLE14-windows-notes-20060604
updates


(cherry picked from commit 54eed0930a36c54db73f8e2d10c28b99c2c1e6bb)
2006-06-05 02:34:42 +00:00
Jeffrey Altman
eaff719ec4 STABLE14-viced-swap-old-cbcon-diff-20060603
FIXES 32985

swap cbconn when other side changes IPs


(cherry picked from commit b30dcf9738d7fa87f8da4afa1f024376130b80a9)
2006-06-04 07:12:52 +00:00
Jeffrey Altman
a2816a4047 STABLE14-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 18:57:12 +00:00
Chaskiel M Grundman
2d1e99314b STABLE14-flock-handle-uae-errors-20060601
handle uae versions of errors for flock locks
2006-06-02 22:23:52 +00:00
Jeffrey Altman
0b4a42a529 STABLE14-windows-notes-20060602
1.4.1d
openafs-stable-1_4_1d
2006-06-02 16:45:28 +00:00
Jeffrey Altman
953d64b138 STABLE14-windows-smb-fid-mx-lock-20060602
add a lock that was lost during the pullups before 1.4.1c
2006-06-02 16:39:42 +00:00
Chaskiel M Grundman
c292880869 STABLE14-flock-handle-uae-errors-20060601
handle uae versions of errors for flock locks
2006-06-01 17:02:31 +00:00
Joe Buehler
f0b510bb6f STABLE14-linux-vfsops-remove-redundant-code-20060601
FIXES 32783

remove redundancy


(cherry picked from commit 3fdb1902c04153e3522e36c091b073dc7419ac65)
2006-06-01 16:59:56 +00:00
Jeffrey Altman
197cc21fe1 STABLE14-windows-notes-20060531
1.4.1c
openafs-stable-1_4_1c
2006-06-01 04:58:01 +00:00
Jeffrey Altman
ebedc461f4 STABLE14-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 04:48:19 +00:00
Jeffrey Altman
7fdb2a0b31 STABLE14-windows-version-20060531
1.4.1c == 1.4.0104
2006-06-01 04:42:15 +00:00
Derrick Brashear
91f8a8ed98 STABLE14-fix-rx-getaddr-20060531
(cherry picked from commit 397fb82b694e72d9259aaa7264ca432c007bdb6f)
2006-05-31 21:39:13 +00:00
Derek Atkins
2fe1a1f830 STABLE14-os-probe-linux-2-6-9-20060426
FIXES 30514

make this work on 2.6.9


(cherry picked from commit 9677ca31860dd39749e7b3c2695d7209c1737cb6)
2006-05-31 18:40:57 +00:00
Jim Rees
24abbf148a STABLE14-obsd39-20060531
pull up changes for OpenBSD 3.8/3.9 to 1.4.x branch
2006-05-31 17:01:45 +00:00
Jeffrey Altman
767677783f STABLE14-windows-smb-fid-deadlock-20060530
remove a deadlock introduced in 1.4.1


(cherry picked from commit 134669a912a99b212fb4768d2a9a969cda5fffff)
2006-05-30 17:57:38 +00:00
Jeffrey Altman
9b16804c5f STABLE14-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-05-29 00:09:52 +00:00
Jeffrey Altman
ffa9ce0c7e STABLE14-windows-notes-20060527
update changelog
2006-05-28 14:58:01 +00:00
Jeffrey Altman
8851009ade STABLE14-windows-vcp-release-fix-20060527
smb_SendPacket cannot release the vcp since it does not own the
reference.
2006-05-28 01:18:29 +00:00
Jeffrey Altman
8a9d284519 STABLE14-windows-access-fetchstatus-20060526
Do not call cm_GetCallback() directly.  Always
use cm_SyncOp(CM_SCACHESYNC_NEEDCALLBACK)


(cherry picked from commit 40415fe265d8e660f3698d8ab7f93004d589f902)
2006-05-26 22:12:41 +00:00
Jeffrey Altman
f41589fef6 STABLE14-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-05-26 07:38:05 +00:00
Jeffrey Altman
a618bab24c STABLE14-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.

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

fix typo caused by pullup failure


(cherry picked from commit c1e79275079cfa68d73cc3a008c3fb3b201f1068)
2006-05-25 18:40:59 +00:00