Commit Graph

4250 Commits

Author SHA1 Message Date
Jeffrey Altman
90bc0a7f31 windows-give-up-callbacks-20070707
don't try so hard to give up all callbacks.  If the server doesn't
respond in 10 seconds, too bad!

cleanup the server probe code a bit.  reorganize the code so that we
can avoid unnecessary pointer evaluation.  add a missing include file.
2007-07-07 14:36:59 +00:00
Jeffrey Altman
5e29856f7a windows-afsd-misc-20070706
* Do not give back callbacks to down servers

* Output more cm_scache_t data in afsd_alloc.log

* call VolStatus_Service_Stopped after the service has stopped
2007-07-07 00:20:38 +00:00
Marcus Watts
62bf68f4ba budb-ol_verify-20070706
FIXES 53210

fixes a missing pointer declaration that would presumably
break on 64-bit architectures.
2007-07-06 12:37:01 +00:00
Jeffrey Hutzelman
600a20f5a2 cellservdb-20070705
GCO Public CellServDB 05 Jul 2007
2007-07-06 00:44:35 +00:00
Jeffrey Altman
2b9525fe9e windows-volume-status-plugin-20070705
This delta adds an interface to an optional volume status handler.
The handler (if provided) receives status updates when volumes
change state between online, offline, busy, and alldown.
2007-07-05 20:21:19 +00:00
Jeffrey Altman
01184d053a windows-license-translation-20070705
replace GlobalAlloc with malloc.  initialize memory and consider the
inability to read the entire input file as an error.
2007-07-05 16:54:48 +00:00
Jeffrey Altman
1027ca87a7 windows-heap-corruption-20070703
fix buffer over write error introduced since 1.5.20
2007-07-03 15:11:35 +00:00
Derrick Brashear
35a2fe01dd macos-no-default-memcache-20070703
this should be leopard only memcache for now
2007-07-03 15:01:19 +00:00
Derrick Brashear
a5815643fc des-p-temp-volatile-20070703
make des work again on powerpc darwin and possibly elsewhere
2007-07-03 05:21:55 +00:00
Jeffrey Altman
8edfefbb9d windows-get-cellinfo-afsdb-20070702
enable afsdb records for get cellinfo lookup outside of afsd_service.exe

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

do not perform afsdb lookup for Freelance.Local.Root cell
2007-07-03 01:33:47 +00:00
Dan Hyde
a41d0af021 volser-delete-clone-not-source-20070702
FIXES 64268

fixes a bug in the UV_CopyVolume2 cleanup code. Without
this patch, the cleanup code will delete the source volume.
2007-07-02 18:05:04 +00:00
Jeffrey Altman
beb094fb2e windows-parse-ioctl-path-20070629
The UNIX client does not follow mount points or symlinks when evaluating
ioctl paths during commands such as "fs examine".  The Windows client did
which was annoying when you wanted to know the FID of a mount point that
was not properly being evaluated.
2007-06-30 05:43:17 +00:00
Jeffrey Altman
871297aa21 windows-eol-20070629
fix end of line for memdump output
2007-06-30 05:37:39 +00:00
Jeffrey Altman
43e97a8ede windows-procmgmt-library-20070629
Since the library creates its own background thread, the library must
load its own reference to itself to prevent the library from being
unloaded behind its back.
2007-06-30 00:51:36 +00:00
Jeffrey Altman
3309000efc windows-remove-give-up-callbacks-scache-recycling-20070627
remove the conditionalized code used to give up callbacks in response
to stat cache recycling due to performance impacts described in the
commit for DELTA windows-give-up-callbacks-20070627
2007-06-28 05:10:10 +00:00
Jeffrey Altman
61e6f04009 windows-give-up-callbacks-20070627
This large patch adds support for giving up callbacks in response to three
events:

 1. power management suspend

 2. power management shutdown

 3. stat cache object recycling

The third item is submitted as a condition compilation if GIVE_UP_CALLBACKS
is defined.  Properly handing callback give ups and the associated race
conditions with revokes and fetch status requests requires a great deal of
over head.  The first attempt used one GiveUpCallBacks RPC for each callback
that was being dropped as the stat cache object was recycled.  This resulted
in a 27% performance drop in the MIT stress test.  The code that is being
committed maintains a callback give up list on each server object.  The
callback is added to the list as the callbacks are dropped and then they
are sent to the server in bulk by the background daemon thread if the
server is known to be UP after a ping.  Logic is added to the
EndCallbackRequest and CallbackRevoke operations to ensure that race
conditions are addressed.  With all of this, there is a 17% performance drop
in the MIT stress test.

As a result, it is my conclusion that the client side costs associated with
optimizing the load on the server are simply too high.  I am committing this
code to ensure that it is not lost.  I will remove this support in the next
patch while leaving the support for giving up all callbacks in response
to suspend and shutdown events.
2007-06-28 05:04:21 +00:00
Jeffrey Altman
5c9c49137f windows-odd-vnode-is-dir-20070627
its odd vnodes are directories, not even ones
2007-06-28 04:52:12 +00:00
Jeffrey Altman
b3d34ab12c windows-pioctl-20070627
add cm_server.h to the include list
2007-06-28 04:33:50 +00:00
Derrick Brashear
f7c4a7e538 volser-earlier-logging-20070627
deal with the changes to deal with reconnecting in the unix domain fsync socket
2007-06-28 03:11:01 +00:00
Jeffrey Altman
9ca8794ed4 windows-afsd-headers-20070627
remove unneeded headers and shuffle order where necessary
2007-06-28 01:33:43 +00:00
Jeffrey Altman
7ecca7a58a windows-smb-race-20070627
avoid a race condition when the smb_fidp is closed and an active request
is being performed on the referenced cm_scache_t.
2007-06-28 01:15:27 +00:00
Kevin Hildebrand
d987546902 amd64-linux-24-syscall-probe-symbol-change-20070623
FIXES 63763

probe for something else for 2.4 and older

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

i'll spare you
2007-06-27 22:18:59 +00:00
Derrick Brashear
6e2737190a forceallnewconns-prototype-20070627
missed this earlier. linux wants it.
2007-06-27 17:29:35 +00:00
Derrick Brashear
17c7ab7461 macos-afsd-dont-leak-symbol-20070626
avoid leaking a ref to this symbol outside macos code
2007-06-26 20:00:26 +00:00
Jeffrey Altman
470be46a4c backup-usedump-20070625
FIXES 55704

afs_com_err not com_err
2007-06-26 06:40:35 +00:00
Tom Keiser
5e5bfa6b94 aix53-avoid-wait-crash-20070625
avoid crashing because of unpinned mmemory when doing event handling
2007-06-25 21:22:49 +00:00
Jeffrey Altman
3eb7be5c5e windows-get-server-list-20070625
return an error when the cm_fid_t * is NULL since we can't look up
the volume to obtain a server list without knowing which volume we
should be looking up

if the fidp is known to be NULL, don't call cm_GetServerList()
2007-06-25 05:58:30 +00:00
Chas Williams
99a61e9762 memcache-alloc-failures-20070623
FIXES 55339

deal with alloc failures in memcache
2007-06-23 16:28:11 +00:00
Garry Zacheiss
a2cd5f5ec0 backup-usedump-20070623
FIXES 55704

restore from specific dump id
2007-06-23 16:13:17 +00:00
Derrick Brashear
8e180b6303 image-fix-20070623 2007-06-23 15:17:46 +00:00
Derrick Brashear
fe61d4e3a1 doc-add-missing-gifs-20070623
FIXES 1826
2007-06-23 15:01:24 +00:00
Derrick Brashear
ec223f850b newuuid-fix-20070622
yeah, i should commit from places with better network if i'm going to need to edit in place, so i can see what i'm typing
2007-06-23 07:21:00 +00:00
Asanka Herath
31dfee0001 windows-install-wix-20070622
add the images from relnotes_files to the distribution.
2007-06-22 23:22:09 +00:00
Jeffrey Altman
ccfba9c7b8 windows-cell-hashtables-20070622
Add name and ID hash tables for cell lookups.  cell lookups occur on
every request.  sometimes multiple times.  removing the walking of the
cell list when there are dozens of cells decreases cpu utilization and
increases throughput.
2007-06-22 23:15:38 +00:00
Jeffrey Altman
8fb02b0a0c windows-install-nsis-20070622
add missing jpg files to documentation installation
2007-06-22 15:42:12 +00:00
Jeffrey Altman
43a27633c6 windows-misc-20070622
there were two sets of registry values that could be used to configure
the daemon thread check intervals.  keep the one that was documented
in the release notes and discard the other.

Add a registry value "daemonCheckOfflineVolInterval" to configure the
offline volume check interval.

Ensure that the cm_GetConn... functions initialized the output variables
to NULL on error.
2007-06-22 15:11:04 +00:00
Jeffrey Altman
afa909e66c windows-fake-stat-20070622
When we are faking the status data we can use the vnode value to determine
if the object should be treated as a directory or file.  even is a directory
and odd is a file.  This works even when we have never successfully
obtained status data for the object.
2007-06-22 07:00:27 +00:00
Jeffrey Altman
2675d25f69 windows-mountpoint-is-directory-20070622
when the CIFS client requests a directory listing without directories,
do not include mount points.
2007-06-22 06:30:47 +00:00
Jeffrey Altman
d7d8de3041 windows-revoke-callback-20070619
If the we can match up the host address from which the revoke was received
with one of our cm_server_t objects, then we know which cell the revoke
has been received from.  With that information we can ensure that we only
revoke the status of cm_scache_t objects belonging to that cell.
2007-06-19 21:10:56 +00:00
Jeffrey Altman
adb83635bb windows-all-cell-list-20070619
Reverse the order of the allCellsp list.  Append new cells onto the end
of the list.  This ensures that the workstation cell will always be the
first in the list.  Adding additional cells will not degrade the performance
to the workstation cell.
2007-06-19 19:29:41 +00:00
Jeffrey Altman
01c3c334d5 windows-updatecell-20070619
No longer permit cm_GetCell() or cm_FindCellByID() to return NULL simply
because cm_UpdateCell() failed.  The cm_cell_t object still exists and
is valid even if the vlServersp list is empty.

Modify the lock management in cm_GetCell_Gen() to ensure we drop all the
locks.

In cm_Analyze() update the volume status when one of the servers reports
VBUSY or VRESTARTING.
2007-06-19 17:14:14 +00:00
Jeffrey Altman
59db981220 windows-deadlock-20070619
fix deadlock on cm_volumeLock introduced by last week's work

in cm_Analyze, make sure we get a cm_cell_t reference otherwise we
won't find the cm_volume_t we are searching for when ALLOFFLINE or
ALLBUSY.
2007-06-19 12:51:11 +00:00
Russ Allbery
67ea3ae96b man-page-net-info-fixes-20070619
Fix a NetInfo reference in the NetRestrict man page that should be
NetRestrict and add cross-references in SEE ALSO.
2007-06-19 09:55:49 +00:00
Jeffrey Altman
f1db63646c windows-amd64-20070619
Use 0x0502 instead of 0x0500. There is no 64-bit Windows 2000 support.

Explicitly list the machine type as X64 for linking.
2007-06-19 06:29:07 +00:00
Jeffrey Altman
aed66fda2c windows-misc-20070619
VMWare adapters have proven unreliable replacements for the Microsoft
loopback adapter.  Registering AFS often results in a name space collision.

Add cm_DumpCells() function and dump the cells as part of "fs memdump"

Dump all cm_scache_t and cm_volume_t regardless of reference counts

Fix cm_GetCell_Gen() to not allocate a new cm_cell_t when evaluating
mount points to aliases.  Instead, after looking up the alias successfully
search the allCellsp list for the fullname of the cell.  If found, use
the existing entry and cleanup the one we were about to allocate.

Use read locks whenever possible instead of write locks when searching
the allCellsp list.
2007-06-19 06:24:23 +00:00
Derrick Brashear
5672867638 macos-realtime-ip-updates-20070618
notice and deal with IP address changes
2007-06-18 19:48:33 +00:00
Derrick Brashear
f19ce63279 readme-20070618
update the systype list
2007-06-18 19:21:53 +00:00
Derrick Brashear
39b027504b avoid-empty-uuid-20070618
avoid issue where uuid can potentially be 0: set one always at AFSOP_GO step
2007-06-18 19:03:00 +00:00
Derrick Brashear
0c5cf6028d darwin-collect-network-errors-for-fast-timeout-20070618
same optimization we do on windows, linux
2007-06-18 18:57:31 +00:00
Derrick Brashear
125e4511a9 darwin-afs-syscall-eliminate-needless-vfs-context-hold-20070618
avoid potential deadlock if e.g. SetTokens is called before the kernel module initialization completes
2007-06-18 18:05:05 +00:00