LICENSE MIT
Do not trust the registry to determine whether or not krb4 support
is available. In a roaming profile the user data can say 'yes' even
if the plug-in or the kerberos library does not exist.
(cherry picked from commit d59d1db605280bfa9b2234f5272d61152ca7d7de)
LICENSE MIT
Don't call krb524_convert_creds_kdc if it doesn't exist.
64-bit KFW doesn't support krb4 and the function isn't present.
(cherry picked from commit cfcaa0be3cc22fce97737ae4f6387a8200de770d)
LICENSE MIT
avoid a race condition between cm_SyncOpCheckContinue and cm_SyncOpDone
that can leave a request on an scp stuck in the waiting state even though
there are no other requests to wake it up.
(cherry picked from commit 4d2c1d532bb44320afcf4debfee9ded403647e1e)
LICENSE MIT
cm_BkgPrefetch() contained two errors. First, the loop at the top of the
function that ensures that a cm_buf_t is allocated for each of the offset
positions failed to actually obtain the buffer for the specified offset.
Instead, it repeatedly obtained the buffer for the starting base address.
Second, cm_GetBuffer() would reserve all of the buffers associated with
the cm_scache_t even in the case where we already have a callback and the
existing buffer has the proper data version number. In that situation
reserving the buffers simply wastes valuable time.
(cherry picked from commit 33aeecd83f8ce670269868145648ae6e277cf3cb)
LICENSE MIT
Fix the lookup of cell aliases to:
1. avoid re-reading CellServDB each time a cell alias is specified
2. avoid reconstructing the vlserver list for the cell each time an
alias is specified
3. permit aliases to be used when AFSDB records were used previously
with the full cell name
(cherry picked from commit d942d97ed82b9f4b86fdea8443912ec64b28dd96)
LICENSE MIT
Reduce the default number of background daemon threads used for prefetch and
store operations to one. Given the current implementation when more than
one thread is allocated they step on each other's toe while fighting over
locks.
A better model might be to divide up threads based upon cells or volumes
as a means of preventing contention.
(cherry picked from commit 7a1253d1d180716f2aace6e8c115f845fbfe003d)
LICENSE MIT
Drop the default chunksize to 18 (256KB) from 20 (1MB) due to the increased
propensity to timeout reads on slow network connections.
(cherry picked from commit 1e262e133d2fa0464d6419b1acc6fd2c075f9dbd)
LICENSE MIT
The case of openafs.org and grand.central.org is a hideous abuse of
the AFS cell name space. There are many negatives associated with
trying to support two different cell names pointing at overlapping
vlserver lists:
(1) The CM can store duplicate entries for all of the data simply because
the cell name that was used is different
(2) If the CM attempts to optimize the data storage by aliasing or otherwise
combining the cell names as part of one cm_cell_t object, then future
attempts to separate the two cell names will require the destruction
of the cache.
(3) If the CM does not associate a callback revoke with a particular cell,
then the status data associated with any entry that matches the revoked
AFSFid will be discarded. For volume callbacks this can have a serious
impact because volume IDs are not unique across cells and discarding
status data for readonly volumes that are in use can result in a
significant number of FetchStatus requests being sent to the associated
file server.
There are other issues as well involving authentication.
The case of openafs.org advertising the vlserver addresses of
grand.central.org should be considered a hack; a hack that the Windows
client will no longer ensure will work.
Additional debugging messages have been added to assist individuals attempting
to debug why callback revokes do not appear to take affect when two cell
names share the same vlserver data.
(cherry picked from commit 56a82598b19e4232b0095c2b5778d4571c8aa9b2)
LICENSE MIT
The pthread_cond_timedwait/wait implementations were broken. Not only
did they return the wrong error values but more importantly, they did not
always return with the mutex locked.
(cherry picked from commit b41b3bb52eaba52bba8fda0c49083322d6959238)
LICENSE MIT
Update event_handler() for Windows. The return code of
pthread_cond_timedwait() is not limited to 0 and -1 because 'errno'
cannot be set. Instead of setting 'errno' the error code is returned
directly by the function as the return code.
This patch is only for debugging purposes to track the number of
success, timeout, and other errors experienced by the routine.
(cherry picked from commit 6b1537b246732e4f7f67661d8230d051db8f3f8d)
LICENSE BSD
Add some additional cross-references, add some missing man pages, fix a
few references to the OpenAFS manuals, document the -live flag to vos
move, and add an example for rxdebug.
(cherry picked from commit 84ef02b0f392c761211adc7d5876217ad835c6c0)
LICENSE MIT
Remove the callback revoke optimization that prevents a (vol,vn,uniq)
tupple from invalidating entries from multiple cells. We cannot reliably
determine the cell from the server because the server might be identified
as belonging to more than one cell. For example, openafs.org and
grand.central.org.
(cherry picked from commit 69d62d59689c7cd9758177f1f23d3b60df3a8a40)
LICENSE MIT
When walking or modifying the cm_server_vols_t associated with a given
cm_server_t the mutex must be held. Otherwise, races can occur.
(cherry picked from commit b0bae13aec9acb944d5d6a64c11df857ffc40eb3)
LICENSE MIT
Windows Error Reporting received crashes caused by a failure to synchronize
the shutdown of the AFS client service with the background daemon threads.
The daemon threads (cm_Daemon, cm_BkgDaemon+, cm_IPAddrDaemon) could be
accessing data structures as they were being freed or unmapped.
Add synchronization mechanisms to signal the termination of the threads
with the shutdown of the service.
(cherry picked from commit 8a923a199d91aae6d1fc9bb6a2f1856fe5dbcb07)
LICENSE MIT
Refactor cm_UpdateVolumeStatus. Revise behavior to treat volid 0 as
update the volume status for all volumes in the volume group.
(cherry picked from commit 815cd6f19ec37330e7829506c1208c9426b3a41f)
LICENSE MIT
This patch completes the implementation of smb_ReceiveTran2GetDFSReferral()
which is called by Vista even if we do not advertise the support of DFS
referrals. It also adds DFS link mapping notifications to the volstat
interface which can be used by volstat plug-ins to redirect requests to
the dfs target path.
Other miscellaneous items:
(1) return EAS_NOT_SUPPORTED instead of EA length 0 and silently accepting
but not storing EA data
(2) Call cm_VolStatus_Service_Started() before smb initialization instead
of afterwards
(3) During directory enumeration and link assembly push the UNC path into
the lower levels by storing references to the tidPath and the relative
paths within the cm_req_t object.
(4) During directory enumeration make absolutely sure that we do not
reference an unallocated cm_dirEntry_t object
(5) publish a prototype for cm_FollowMountPoint()
(6) return ERROR_RETRY instead of BAD_NETWORK_PATH if the server returns
VBUSY
(7) return PATH_NOT_COVERED instead of BADSHARENAME for DfsLinks when
a volstat plugin is in use
(cherry picked from commit 150919d690eca9ee00d3ce549554a058662c360c)
LICENSE MIT
(1) remove a race condition caused by holding and releasing the
cm_Freelance_Lock while using a pointer into a private freelance
data structure
(2) do not reference a localMountPoint object that is not allocated
(3) properly assign the DFSLINK file type
(4) update the buffer data versions when we update the contents of
the stat cache object and its buffers to match the registry
contents
(cherry picked from commit bb77b085ff420d8b13c1a71b3144b6b31258ad3d)
LICENSE MIT
In the error case (1) reference the mountPointString instead of the
output of cm_AssembleLink() which was not generated and (2) do not
free memory and objects that were not allocated nor reference counted.
(cherry picked from commit 111fb3a0a9525bb9d618dfa23cd1df3eb8eb61c5)
LICENSE MIT
corrects cb expiration that was broken by the osi_Time() -> time() change
in delta windows-readonly-volume-callbacks-20071109
(cherry picked from commit 89203eb7065d7bd4e2a40f2afd5fab979ddf1008)
LICENSE IPL10
remove panic due to lock being grabbedin another thread can't be accurately
covered with this test on darwin, as e.g. proc_selfthread() is not in the KPI
(cherry picked from commit f54187bfc59797fe955e779d432d155ab3792022)
LICENSE IPL10
fix verbose vos dump to not put garbage in the stream when dumping to stdout
(cherry picked from commit b072deb257da24746e8c1ec2b01ff3b779e866c8)
LICENSE MIT
Modify the dependencies for building the cbd and file server resource
files and delete the resource files as part of 'clean'.
(cherry picked from commit 77c86d6fd39cb8e21f2028292e682155dd587803)
LICENSE IPL10
Do not include vsyslog on Windows.
Include syslog.h for the syslog() prototype.
(cherry picked from commit 059031b3c6ff61340daad288deb378dc48cbd43a)
LICENSE IPL10
make us able to autobuild with mock. (may need krb5-devel outside the
if krb5support; if we do more thought will be involved)
(cherry picked from commit fcc8aa021f6305209fb8cf638d5446206029f581)
LICENSE IPL10
if we can alloc more vnodes, and we are looking for vlru cycles, a legit
vnode is not indicative of a cycle.
(cherry picked from commit 51d6d9cbbc5971623097624a58e400cf8ab5e5ab)
LICENSE IPL10
get rid of cold_shutdown; it's in afs_prototypes.h.
log when we don't clean up memory
(cherry picked from commit b33fb96fff39c421064d03ff058dde76f2aeed8b)
LICENSE MIT
'tokenUser' can be dereferenced when NULL if GetTokenInformation() fails.
(cherry picked from commit 8f84815d0d8c9cc0b49eb29bfceeb03a7ae7f04f)
LICENSE IPL10
FIXES 77183
currently we can truncate the live database while we are doing recovery.
address that.
(cherry picked from commit 0f9529171c37c4ef1e76156da111d83d04b38505)
LICENSE MIT
When a cm_MergeStatus operation determines that the current data buffers
are out of date, remove them from the buffer hash tables in order to speed
the lookup of valid data buffers.
(cherry picked from commit 649194188e4af21370faa1bf1217a887adae2572)