4955 Commits

Author SHA1 Message Date
Jeffrey Altman
048ae7c7e6 windows-have-snprintf-20080509
LICENSE MIT

Visual Studio provides [v]snprintf.  No need to define and export it.
2008-05-09 04:53:08 +00:00
Derrick Brashear
3feee9278b rx-retain-windowing-per-peer-20080508
LICENSE IPL10

we learned about the peer in a previous connection... retain the information
and keep using it. widen the available window.

makes rx perform better over high latency wans. needs to be present in both
sides for maximal effect.
2008-05-08 22:24:52 +00:00
Jeffrey Altman
e6c818f070 viced-avoid-infinite-loop-with-altaddr-unset-20080508
LICENSE IPL10

if we return leaving a non HOSTDELETED host while it does not have ALTADDR set,
a loop can happen. avoid it by simply setting ALTADDR again when we're done,
if we believe some addresses are still good this is fine.
2008-05-08 22:17:49 +00:00
Jeffrey Altman
ef619db804 windows-buf-invalidate-on-vnovnode-20080507
LICENSE MIT

Once we know that an attempt to stablize a buffer has failed due to
VNOVNODE, stop trying to Stablize future buffers and just invalidate
all of them belonging to the same FID.
2008-05-08 06:25:42 +00:00
Derrick Brashear
c847fb4964 viced-large-more-threads-20080506
LICENSE IPL10

fileserver -L should imply -p 128, not -p 12
2008-05-06 16:01:05 +00:00
Jeffrey Altman
98e658b782 windows-server-retry-20080502
LICENSE MIT

do not retry if there is no server available for the current attempt
2008-05-02 20:29:43 +00:00
Derrick Brashear
abff169b58 butc-xbsa-lwp-protoize-damage-20080501
LICENSE IPL10

make xbsa variant work again
2008-05-02 01:59:27 +00:00
Derrick Brashear
7915302f28 uuid-corrected-duplicate-check-20080501
LICENSE IPL10

apply check to chain, not input
2008-05-01 20:00:00 +00:00
Derrick Brashear
0a2c144307 client-idledeadtime-support-20080430
LICENSE IPL10

in the event a server is "melting down" and not responding with data to RPCs
this adds the ability to time out the calls rather than letting keepalives
effectively hang the client forever.  does not mark the server down since...
it's not down.

Side effect: adds similar tracking for authentication errors so tokens need
not be discarded if one server's clock has drifted.
2008-04-30 20:07:43 +00:00
Derrick Brashear
888bc28b18 ubik-recovery-swap-in-new-fd-20080428
LICENSE IPL10

when recovery is done, forcibly invalidate the old fd
2008-04-28 22:48:00 +00:00
Hans-Werner Paulsen
668cd5331e tbutc-wrong-lp-getrwindex-20080428
LICENSE IPL10
FIXES 96575

The pthread butc crashes with SIGSEGV, when I restore to a volume
which already exists. This does happen with OpenAFS 1.4.7pre4 on
i386_linux26.
Looking into the code I think butc is using the wrong function
Lp_GetRwIndex (at volser/vsprocs.c:4394). It uses the one in the
library lib/libvosadmin.a, but should use the function defined
in volser/lockprocs.c.
2008-04-28 17:14:55 +00:00
Jeffrey Altman
25d9dbb6be udebug-64bit-time_t-vs-printf-20080428
LICENSE MIT

64-bit time_t values cannot be passed to printf() for evaluation
by a %d variable.  To avoid the problem we cast the value to int.
2008-04-28 16:18:52 +00:00
Jeffrey Altman
2f2d5fd8a7 windows-rx-idle-timeout-20080428
LICENSE MIT

Add "IdleDeadTimeout" registry value and call rx_SetConnIdleDeadTime()
with it when creating new rx connections.   This forces the Rx stack
to return RX_CALL_TIMEOUT if the file server has returned VBUSY for
longer than the IdleDeadTimeout.

When RX_CALL_TIMEOUT is received, the cache manager will now attempt to
find another server for the object that might be less busy.
2008-04-28 16:04:38 +00:00
Chaskiel M Grundman
7a6751c088 kdump-install-fixups-20080427
LICENSE IPL10
FIXES 96465

The install rule:
- installs the empty 'kdump-build' file instead of the binary on all
platforms except irix
- overwrites the selection script with the binary on linux and hpux
- doesn't have an alpha_linux branch
- installs the wrapper script as kdump32 and the binary as kdump on
solaris (instead of vice-versa)

The dest rule:
- overwrites the selection script with the binary on alpha_linux and hpux
2008-04-28 04:45:03 +00:00
Derrick Brashear
c8f4d9f007 redhat-cellservdb-update-20080423
LICENSE IPL10

take update from upstream
2008-04-27 04:59:51 +00:00
Derrick Brashear
2aa615fed2 zero-uio-len-when-trimming-20080426
LICENSE IPL10

make it match ufsread case. should change this later.
2008-04-27 04:53:59 +00:00
David Botsch
b1bf96f758 macos-afscell-configurator-20080423
LICENSE IPL10

not ready for release, but, add a tool which installer can run to ask for a cell
name
AUTHOR
LICENSE IPL10

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

not ready for release, but, add a tool which installer can run to ask for a cell
name
2008-04-25 12:39:45 +00:00
Derrick Brashear
b87935a4c5 vos-move-avoid-spurious-unlock-20080424
LICENSE IPL10

lightly modified from what Bren Mills submitted; the second unlock call after mfail may be entirely useless.
2008-04-24 23:44:01 +00:00
Jeffrey Altman
088eb9158b windows-buf-refcount-20080424
LICENSE MIT

Implement DEBUG_REFCOUNT refcount tracking code to debug refcount issues
in the cm_buf module.

Fix a refcount leak caused by buf_IncrSyncer() incorrectly removing cm_buf_t
objects from the dirty list.

Fix the dumping of the dirty list to actually dump the dirty list.
2008-04-24 17:21:01 +00:00
Jeffrey Hutzelman
6143f2eb5c windows-cellservdb-20080423
LICENSE IPL

latest greatest CellServDB
2008-04-24 04:08:03 +00:00
Dan Hyde
6809ba29fa vol-setaside-one-fd-per-thread-20080423
LICENSE IPL10
FIXES 87977

kids these days share badly. give each one their own fd otherwise they fight.
2008-04-23 19:56:52 +00:00
Simon Wilkinson
d18f5104f5 linux-fedora9-packaging-updates-20080422
LICENSE IPL10

make build system able to cope with fedora 9
2008-04-22 13:50:23 +00:00
Derrick Brashear
8bf142ae2a libadmin-vos-irix-fixes-20080421
LICENSE IPL10

irix is cranky about missing prototypes
2008-04-21 20:40:22 +00:00
Derrick Brashear
92b5087b42 dafs-irix-prec99-20080421
LICENSE IPL10

unless/until we build c99, irix needs this
2008-04-21 19:53:45 +00:00
Jeffrey Altman
a6ef7fed73 windows-cache-version-20080421
LICENSE MIT

increase the cache version because the cm_volume_t data structure was modified.
2008-04-21 16:35:12 +00:00
Simon Wilkinson
0caa578a05 linux-fc9-20080419
LICENSE IPL10

add in needed changes for fc9 kernels
2008-04-19 22:55:02 +00:00
Derrick Brashear
194067be89 klog-deal-with-aix-stupidity-20080418
LICENSE IPL10

aix krb5 is broken. deal.
2008-04-18 21:49:45 +00:00
Derrick Brashear
2a0f8bfda8 ppc64-linux-26-thread-info-20080418
LICENSE IPL10

thread_info is dead
2008-04-21 19:59:14 +00:00
Jeffrey Altman
c3eb805fc0 windows-volume-status-20080418
LICENSE MIT

A problem was discovered with cm_Analyze when serverRef instances are
marked offline.  cm_CheckOfflineVolume() was not resetting the serverRef
state.  cm_Analyze was also waiting in sleep calls when it was it is
clear that waiting would not result in a change of state.

cm_CheckOfflineVolume() was updated to always reset the serverRef state
and indicate that the volume should be considered online for the purpose
of retrying when the serverRef state is reset to srv_not_busy.

The problems identified in the MIT dev.mit.edu stress test environment
are resolved by these changes.
2008-04-18 17:43:19 +00:00
Derrick Brashear
f3056feadb klog-aix-missing-symbols-20080418
LICENSE IPL10

aix's krb5 isn't heimdal or mit. it has dangling symbols. yay!
2008-04-18 14:55:33 +00:00
Derrick Brashear
8ea0eef2d6 lwp-fix-protoize-20080418
LICENSE IPL10

make this cast correct.
2008-04-18 14:54:30 +00:00
Rainer Toebbicke
5f6b59f460 linux-fakestat-avoid-mtpt-fillin-issue-20080415
LICENSE IPL10
FIXES 93898

"It is actually the detection of a "cell" in the mount point string
which triggers the (loosely consistent) fakestat handling - it's
treated like a foreign cell and the mount point is never "completely
evaluated", i.e. logically replaced by the root directory of the
volume in question. As a result, callbacks are ignored, as they go
against the directory and not the mount point."
2008-04-15 13:29:20 +00:00
Jeffrey Altman
4440b9a612 windows-volume-20080414
LICENSE MIT

1. Convert cm_volume_t mutex to a rwlock (rw).

2. Don't hold cm_volume_t lock across RPCs

3. Add CM_VOLUMEFLAG_UPDATING_VL flag to prevent multiple threads
   from performing volume update calls at the same time on the same
   volume set.

4. Convert the .rw, .ro, and .bk cm_vol_state_t members of cm_volume_t
   to an array of cm_vol_state_t members indexed using the pre-existing
   RWVOL, ROVOL and BACKVOL preprocessor symbols.  This will permit
   consolidation of code and make it easier to add new volume types
   to the volume set in the future.
2008-04-14 22:32:27 +00:00
Derrick Brashear
7936739f44 volser-prototype-include-fix-20080414
LICENSE IPL10

so tvolser can build again
2008-04-14 21:25:41 +00:00
Jeffrey Altman
7bfe889eb2 windows-freelance-20080411
LICENSE MIT

Do not set the DV on the rootSCachep because doing so disables
the use of MergeStatus().

Do not remove the rootSCachep from the hash table because doing
so makes causes a second cm_scache_t object for that fid to be created
that is not the root.
2008-04-11 18:44:47 +00:00
Jeffrey Altman
40d41c191b vos-noresolve-option-20080410
LICENSE MIT

Add a -noresolve option to all vos commands.  This permits the display
of servers by IP address instead of DNS name.  Very useful when 127.0.0.1
is registered as the server address or when trying to eliminate
multi-homed addresses.
2008-04-10 18:50:49 +00:00
Simon Wilkinson
fab6653cf7 void-return-casts-20080409
LICENSE IPL10

do apporpriate casts for void returns to placate irix cc
2008-04-09 17:39:36 +00:00
Jeffrey Hutzelman
7faf596b43 linux-nfstrans-avoid-access-deadlock-20080409
LICENSE IPL10

avoid deadlocking in access while we're already holding locks as filldir is doing its work
2008-04-09 14:38:47 +00:00
Asanka Herath
494568ea92 windows-nsis-vs2005-20080409
LICENSE MIT

Add support for building with VS2005 Runtime Libraries.
For the release build use the vcredist_<arch>.exe package.
For the debug build, build an msi from the merge modules
and then install that package.
2008-04-09 05:34:22 +00:00
Simon Wilkinson
1495088e41 redhat-spec-updates-20080408
LICENSE IPL10
FIXES 93616

update to correctly fill in specfile from source tree
2008-04-08 19:35:51 +00:00
Jeffrey Altman
0d2e36cac8 windows-strlwr-cellname-20080407
LICENSE MIT

cellnames are case insensitive and by convention they are lowercased.
2008-04-07 15:19:10 +00:00
Jeffrey Altman
c108d606f5 windows-freelance-three-20080407
LICENSE MIT

deliver notification events to watchers when adding mount points or
symlinks to the freelance root.afs volume.
2008-04-07 15:16:48 +00:00
Jeffrey Altman
8f57819a99 windows-freelance-two-20080407
LICENSE MIT

do not add the scp into the hash table twice.
2008-04-07 07:00:16 +00:00
Jeffrey Altman
a642541b96 windows-freelance-20080407
LICENSE MIT

When freelance symlinks and mountpoints were modified the target string
value was not being updated and the old data was not being invalidated.
2008-04-07 06:42:44 +00:00
Marc Dionne
c7ee4828e0 linux-no-syscall-probe-with-no-init-mm-20080406
LICENSE IPL10
FIXES 88000

no better idea for this, got to do something... push this for now
2008-04-07 04:48:45 +00:00
Jeffrey Altman
ef19cea44c windows-fid-hash-20080406
LICENSE MIT

1. During the conversion to hash based FID comparisons the cm_GetSCache()
   lookups from the cm_ioctl.c (CM_IOCTL_QOPTS_HAVE_FID) and from FIDs
   returned by cm_LookupSearchProc() were broken.

2. In cm_LookupInternal(), ensure that an error is returned if rock.found
   is FALSE.  A failure to return an error was resulting in cm_GetSCache()
   producing an object for FIDs with vnode=0,unique=0

3. cm_GetSCache(), remove the warning check for vnode=0,unique=0

4. reapply the synchronization logic to async store requests in cm_SyncOp().
   The lack of synchronization is causing requests to complete out of order
   which is confusing the SMB redirector when under heavy load.
2008-04-06 14:33:12 +00:00
Derrick Brashear
5dd7e65c6f revert-ubik-changes-20080405
LICENSE IPL10

these changes are unneeded; remove them
2008-04-05 19:02:59 +00:00
Kevin McBride
5640c4a1b5 volser-preclude-alternate-partition-clones-20080404
LICENSE IPL10

patch based on work from shadow@dementia.org

the idea is to preclude multiple copies of a volume replica on a server,
as there's nothing to indicate which copy is correct and you can end up serving
stale data when you think you've just released and are serving something good
2008-04-04 20:58:35 +00:00
Derrick Brashear
e62727e328 tubik-more-makefile-fun-20080404
LICENSE IPL10

kill off library name reuse
2008-04-04 16:39:53 +00:00
Derrick Brashear
ece59f688a tubik-head-makefile-compat-20080403
LICENSE IPL10

match new style install stuff
2008-04-03 17:58:11 +00:00