4014 Commits

Author SHA1 Message Date
Russ Allbery
a4cb035040 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.
2006-06-24 17:08:40 +00:00
Jeffrey Altman
830756f8f7 windows-viced-cbd-20060624
don't break platforms other than Windows
2006-06-24 15:09:34 +00:00
Christopher Allen Wing
2a1aff4104 afsutil-includes-20060623
Include <afs/afsutil.h> for prototypes of afs_inet_ntoa and afs_inet_ntoa_r.
2006-06-24 06:47:09 +00:00
Russ Allbery
7f219ecd38 autoconf-datarootdir-20060623
Autoconf 2.60 will replace some variables, most notably mandir, with values
relative to datarootdir, a new variable.  Add settings of datarootdir to
the affected files.
2006-06-24 06:14:09 +00:00
Asanka Herath
e264711295 windows-wix-help-files-install-location-20060623
place the help files in the correct location
2006-06-24 03:48:06 +00:00
Asanka Herath
015f9ce287 windows-largefile-support-20060623
This patch adds large file support (> 2GB) to the CIFS server and
the cache manager.

It also corrects a significant oversight where the definition of
struct rx_call was inconsistent due to a failure to define AFS_PTHREAD_ENV
prior to including rx.h in all source files.  This prevented all errors
during rx_Read and rx_Write to be ignored.
2006-06-23 08:54:27 +00:00
Jeffrey Altman
ae9a07a8e0 windows-cm_syncop-buflocked-20060622
If cm_SyncOp is called with the buffer locked, it must be returned
locked even on error.
2006-06-23 04:32:48 +00:00
Jeffrey Altman
4859232df5 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.
2006-06-22 22:48:32 +00:00
Jeffrey Altman
d53a0a8d5e windows-viced-cbd-20060621
typo
2006-06-21 21:40:00 +00:00
Jeffrey Altman
f3a7cd67c5 windows-viced-cbd-20060620
build the callback debug utility
2006-06-20 23:09:46 +00:00
Tom Keiser
7826b31386 aix-largefile-cleanup-20060620
some largefile cleanup and other minor aix tweaking
2006-06-21 18:57:24 +00:00
Jeffrey Altman
840ef4a80f windows-afsrpc-exports-20060620
New functions: rx_InitHost, rx_NewServiceHost
2006-06-20 21:57:26 +00:00
Jeffrey Altman
7af6b06cb6 rxbind-for-servers-20060620
do not call parseNetFile on Windows where the function does not exist
2006-06-20 21:32:55 +00:00
Derrick Brashear
cb25e4400a revert-rx-magic-check-20060607
revert until i recode to avoid conflict with queues
2006-06-20 21:07:06 +00:00
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