Commit Graph

4704 Commits

Author SHA1 Message Date
Jeffrey Altman
ae9dc9ad4d windows-callback-getcellservdb-20080111
LICENSE MIT

Add support for RXAFS_GetCellServDB.  Implemented by generalizing
RXAFS_GetCellByNum and special casing the index values to do the
right thing.

Conditionalize grabbing the callp->lock in the callback functions.
The race conditions in rx have long since been fixed and the potential
for deadlocks are too great.

Add a new flag CM_FLAG_NOPROBE for use in calls to cm_GetCell.  When
set the newly discovered servers will not be immediately probed.  Useful
when setting tokens, setting server preferences, or responding to cmdebug
callbacks.
2008-01-11 19:09:20 +00:00
Jeffrey Altman
8b82cbeef7 windows-smb-synchronization-20080110
LICENSE MIT

1. prevent stopping the smb_Listeners due to an ip addr change when the
LANA is determined either by registry assignment or loopback detection

2. add synchronization logic to prevent smb_Listener restarts prior to
   smb_Listener thread stoppage

3. no longer permit panics from smb_Listener threads

4. move the probe logic from cm_IPAddrDaemon thread to the cm_Daemon
   thread in order to avoid the loss of ip addr change events.  If an
   adapter stops and restarts fast enough there might not be anything
   for us to do.
2008-01-10 23:48:02 +00:00
Matt Benjamin
8569f67aee linux-2624-rc5-updates-20080110
LICENSE IPL10
FIXES 80463


Include linux/key-type.h in osi_groups.c, if it exists. Fix
do_sync_read test for recent kbuild (maybe break it for [some older 2.6]).
2008-01-10 16:58:30 +00:00
Simon Wilkinson
5011ea88ba redhat-make-srpm-script-20080109
LICENSE IPL10

srpm builder script
2008-01-09 19:36:59 +00:00
Jeffrey Altman
a1b7be4ac3 windows-smb-name-deleted-20080109
LICENSE MIT

if the smb_Listener receives NRC_NAMERR (name deleted) it must be because
an smb shutdown has occurred.  do not panic.
2008-01-09 15:25:07 +00:00
Jeffrey Altman
845fb28de6 windows-pioctl-follow-mountpoints-registry-20080108
LICENSE MIT

Add a registry value "PioctlFollowMountPoint" to permit the use of the
old pioctl path evaluation behavior that always followed mountpoints
and symlinks.
2008-01-09 06:03:10 +00:00
Jeffrey Altman
f2fd97bfb0 smb-even-less-chatty-20080108
LICENSE MIT

remove the smb_RestartListeners message entirely
2008-01-08 22:28:39 +00:00
Jeffrey Altman
110f74bcb8 windows-daemon-20080108
LICENSE MIT

sleep 10 seconds between cycles.  should make this configurable.
2008-01-08 22:03:12 +00:00
Jeffrey Altman
05e5b9129f windows-smb-logging-20080108
LICENSE MIT

Be less chatty
2008-01-08 21:59:28 +00:00
Jeffrey Altman
69c9ab66a4 windows-callback-missing-bang-20080108
LICENSE MIT

Insert a missing bang that results in a null pointer dereference
when processing a callback from an unrecognized server.
2008-01-08 21:26:46 +00:00
Jim Rees
a731801899 obsd-more-stack-20080108
make stack bigger in volserver and fileserver
eliminates overflow in k5 library
2008-01-08 17:18:57 +00:00
Jim Rees
2927287f13 obsd-lock-no-interlock-20080108
restore lock vnode op, but without vnode interlock for obsd 4.2
2008-01-08 17:04:30 +00:00
Asanka Herath
521f139a89 windows-nim-afscred-identity-initialization-20080108
LICENSE MIT

One of the challenges to deploying NIM has been the configuration of
AFS token acquisition.  This patch adds a new registry key hierarchy

  HKLM\SOFTWARE\OpenAFS\Client\Realms

which is used to configure the AFS Provider for a new identity based
upon the realm of the identity.  The Realms key contains subkeys for
each realm for which configuration data is being provided

  HKLM\SOFTWARE\OpenAFS\Client\Realms\"RealmName"

"RealmName" contains one optional value, "AFSEnabled", and subkeys for
each Cell that is to be added to the configuration.  "AFSEnabled" defaults
to 0x01.

   HKLM\SOFTWARE\OpenAFS\Client\Realms\"RealmName"\"CellName"

In "CellName", there are two optional values, "Realm" and "MethodName".
If the values are not specified, the automatic realm and method determination
algorithms are used.

These values can be added to an MSI transform or deployed via Group Policy.
2008-01-08 17:04:19 +00:00
Jeffrey Altman
5979a37e4e windows-smb-started-synchronization-20080108
LICENSE MIT

Add a new mutex "smb_StartedMutex" which is used to protect the
transitions between the various smb_ListenerState values.
2008-01-08 07:04:51 +00:00
Jeffrey Altman
a05df91550 windows-printf-format-string-protection-20080108
LICENSE MIT

Do not pass strings generated from incoming network data to ??printf
as the format string.  Instead use a format string of "%s".  This protects
against %? expansions being inserted in the string.
2008-01-08 06:27:36 +00:00
Derrick Brashear
be4da54fa0 viced-hpr-error-handling-20080107
LICENSE IPL10

fix ubik reinit issue reported by jhutz@cs
2008-01-07 20:22:10 +00:00
Derrick Brashear
777a284087 sys-syscall-object-dependency-20080107
LICENSE IPL10

make syscall.o always be created, some makes don't deal with the implicit requirement
2008-01-07 20:10:27 +00:00
Russ Allbery
58efc5029c linux-probe-warning-case-20080107
LICENSE MIT

Some older Linux kernels prefix warnings with "Warning:" rather than
"WARNING:", so do the grep case-insensitively when finding missing symbols.
2008-01-07 18:14:54 +00:00
Jeffrey Altman
b19c56edfa windows-bkg-prefetch-buf-refcount-leak-20080107
LICENSE MIT

Close a refcount leak in bkg prefetch.

Do not stop prefetching simply because a buffer we want is already being
fetched.  Instead skip the buffer and try to fetch the next one we require.
2008-01-07 17:54:06 +00:00
Jeffrey Altman
049bc4a637 windows-ipaddr-change-server-deadlock-20080106
LICENSE MIT

avoid a deadlock during server probes initiated by the ipaddr change
daemon thread.
2008-01-06 23:11:01 +00:00
Derrick Brashear
342595b2aa viced-threadquota-release-holds-20080106
LICENSE IPL10

release a hold when we decline to service a host
2008-01-06 15:57:05 +00:00
Jeffrey Altman
6887c0e5b2 windows-power-mgmt-20080105
LICENSE MIT

Log more power mgmt events.

Do not permit a smb reinitialization when in a suspended state

Periodically check to see if the LAN adapter is -1.  If so, try to
reinitialize the smb stack.
2008-01-06 06:25:08 +00:00
Jeffrey Altman
d27e82c8e2 windows-follow-backup-path-20080105
LICENSE MIT

parens are required in order to get the desired behavior
2008-01-05 22:19:12 +00:00
Jeffrey Altman
f789f943f6 windows-nim-afscred-referrals-two-20080105
LICENSE MIT

compatibility with Visual Studio 2005/2008
2008-01-05 18:55:55 +00:00
Jeffrey Altman
f970985bc3 windows-vista-network-change-20080105
LICENSE MIT

After a network change, test to see if the desired LAN adapter to bind
the Netbios Name to has changed.  If so, stop the Netbios Network and
restart with the new LAN adapter.

This can happen on Vista after a suspend if the service wakes up before
the Loopback adapter re-initializes.
2008-01-05 17:55:20 +00:00
Jeffrey Altman
53acd2042d windows-nim-afscred-referrals-20080105
LICENSE MIT

If the requestd realm name is the empty string, copy the realm from the
resulting ticket for use in pts registration.
2008-01-05 17:28:59 +00:00
Derrick Brashear
8e3940c461 windows-aklog-referrals-20080105
LICENSE IPL10

If the realm name of the requested ticket is the empty string, decode
the actual service ticket to determine the actual realm.  Obtaining the
actual realm prevents unnecessary pts registration failures.
2008-01-05 16:59:56 +00:00
Marc Horowitz
2d15ac7934 aklog-referral-support-20080104
LICENSE IPL10

with updates and configure support from Simon Wilkinson.

make aklog able to cope with referrals.
2008-01-05 04:43:09 +00:00
Derrick Brashear
02dc91892c pag-allocation-dont-throttle-when-time-reverses-20080104
LICENSE IPL10
avoid pag allocation throttling when time is set back by e.g. ntpd to avoid starving everyone.
2008-01-04 18:37:28 +00:00
Jim Rees
5d453a9875 xbsd-include-systmh-20080104
include systm.h for xbsd
2008-01-04 18:07:35 +00:00
Jim Rees
034f698ebf obsd-resid-type-20080104
use correct type for resid when calling vn_rdwr()
2008-01-04 17:56:11 +00:00
Jim Rees
e192814db3 setuuid-return-20080104
return success (0) from setuuid()
2008-01-04 17:39:05 +00:00
Jim Rees
d2c62877eb obsd-time-20080104
update kernel time functions for OpenBSD 4.2
2008-01-04 17:27:23 +00:00
Jeffrey Altman
068233cf4a windows-fs-test_volstat-20080103
LICENSE MIT

Add a hidden command that can be used to test volume status handlers.
fs test_volstat.
2008-01-04 07:56:45 +00:00
Jeffrey Altman
23318f425c windows-fs-path-avail-20080103
LICENSE MIT

fix the reporting of volume status as a result of the VIOC_PATH_AVAIL
pioctl call. Switch on errno instead of the pioctl return value.
2008-01-04 07:51:31 +00:00
Jeffrey Altman
d851dda5b7 windows-fs-prototype-20080103
LICENSE

Fix types in prototypes to be consistent with function definitions
2008-01-04 07:48:37 +00:00
Jeffrey Altman
6034868e79 windows-smb-20080103
LICENSE MIT

ensure type consistency between 32-bit and 64-bit processes by replacing
'long' with 'afs_uint32'
2008-01-04 07:46:29 +00:00
Jeffrey Altman
ae8e701952 windows-volume-status-20080103
LICENSE MIT

when performing offline volume status checks handle CM_ERROR_NOACCESS
conditions by restoring the volume status to vl_unknown.
2008-01-04 07:44:10 +00:00
Derrick Brashear
3a541eb11d aix-lam-aklog-update-20080103
LICENSE IPL10

make the aklog lam plugin work correctly in e.g. the CDE screenlocker, which is
part of the long-running and not-run-by-user dtsession; this means we do wackiness to
1) not pag ourselves in that case
2) setuid to the user to set uid tokens if we got a username and are root
3) do not use pr_mumble get the the AFS ID to put in the tokens, as multiple
   initializations of Rx in the process space of dtsession crashes it
2008-01-03 18:02:30 +00:00
Jim Rees
dbb3f1d0b6 obsd-buf-fixes-20080103
use new b_data field in struct buf
2008-01-03 17:46:08 +00:00
Jim Rees
7793d4e518 obsd-lock-vnops-20080103
use generic vnops for lock/unlock (for obsd 4.2)
2008-01-03 17:12:21 +00:00
Jim Rees
b2a34dd35f obsd-uvm-1-20080103
long overdue fixes for uvm on openbsd
2008-01-03 17:11:22 +00:00
Jim Rees
ff21ae91b2 use-k5-klog-20080102
use k5 klog for OpenBSD
2008-01-03 02:28:29 +00:00
Jeffrey Altman
5baef6f6fe windows-64bit-20080102
LICENSE MIT

do not disable the signature verification of binaries when using
large cache sizes on 64-bit systems

cm_config_data values are unsigned and some are 64-bit.  when logging
them use the correct data format types.
2008-01-02 15:53:46 +00:00
Derrick Brashear
558acfe359 redhat-spec-cvsignore-20080101
LICENSE IPL10

as reported by mdw@umich.edu
2008-01-02 15:10:08 +00:00
Jeffrey Altman
d59d1db605 windows-nim-afscred-supports-krb4-20080102
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.
2008-01-02 14:58:35 +00:00
Jeffrey Altman
cfcaa0be3c windows-nim-afs-krb524-20080102
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.
2008-01-02 07:06:58 +00:00
Derrick Brashear
2e135307b5 vgetvnode-debuglog-vio-20071228
LICENSE IPL10

provide a way to log otherwise unlogged VIO error cause
2007-12-28 22:13:42 +00:00
Jeffrey Altman
4d2c1d532b windows-syncop-20071228
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.
2007-12-28 15:46:05 +00:00
Jeffrey Altman
33aeecd83f windows-get-buffer-20071228
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.
2007-12-28 07:24:48 +00:00