4821 Commits

Author SHA1 Message Date
Jeffrey Altman
64bd0006d6 DEVEL15-windows-version-20080109
LICENSE MIT

1.5.30 == 1.5.3000.0
2008-01-09 14:50:36 +00:00
Jeffrey Altman
ae138fd9d5 DEVEL15-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.


(cherry picked from commit 845fb28de656d9886dd44cbf335833985ffc7d3b)
2008-01-09 06:05:00 +00:00
Jeffrey Altman
81efaf0969 DEVEL15-smb-even-less-chatty-20080108
LICENSE MIT

remove the smb_RestartListeners message entirely


(cherry picked from commit f2fd97bfb02d1d2ed46304b5864d71a8759892a4)
2008-01-08 22:30:00 +00:00
Jeffrey Altman
10abd58f4e DEVEL15-windows-daemon-20080108
LICENSE MIT

sleep 10 seconds between cycles.  should make this configurable.


(cherry picked from commit 110f74bcb85928d274ad2608662434304ff4ffae)
2008-01-08 22:04:09 +00:00
Jeffrey Altman
31ca4ccc9a DEVEL15-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.


(cherry picked from commit 69c9ab66a41236e987b44af9a3cb141adb1c2817)
2008-01-08 21:27:54 +00:00
Asanka Herath
238fc1d858 DEVEL15-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.


(cherry picked from commit 521f139a89c2f078888b8bad37a495d23723a789)
2008-01-08 17:06:39 +00:00
Jeffrey Altman
2e4a7c47a1 DEVEL15-windows-notes-20080108
LICENSE MIT

1.5.30
2008-01-08 16:32:31 +00:00
Jeffrey Altman
9bf47e5a32 DEVEL15-windows-release-notes-20080108
LICENSE MIT

updates for 1.5.30
2008-01-08 16:15:45 +00:00
Jeffrey Altman
6c1c8a85d4 DEVEL15-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.


(cherry picked from commit 5979a37e4e361bd9d2c52b6f6ef4bcce20a3124c)
2008-01-08 07:05:39 +00:00
Jeffrey Altman
0d94d0921b DEVEL15-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.


(cherry picked from commit a05df915505ab3e77e46e39a5b232086c43fc8bf)
2008-01-08 06:29:47 +00:00
Derrick Brashear
0ac284821f DEVEL15-openafs-1-5-30-20080109
LICENSE IPL10

make 1.5.30
openafs-devel-1_5_30
2008-01-09 16:04:55 +00:00
Derrick Brashear
e9a27dd73d DEVEL15-viced-hpr-error-handling-20080107
LICENSE IPL10

fix ubik reinit issue reported by jhutz@cs


(cherry picked from commit be4da54fa06c0a6f43c0be09e1339d29cc4b5e5a)
2008-01-07 20:23:50 +00:00
Derrick Brashear
859c9d11e2 DEVEL15-sys-syscall-object-dependency-20080107
LICENSE IPL10

make syscall.o always be created, some makes don't deal with the implicit requirement


(cherry picked from commit 777a2840878af313e062c4885ae7002bad62bdf4)
2008-01-07 20:10:39 +00:00
Russ Allbery
6658bbe543 DEVEL15-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.


(cherry picked from commit 58efc5029c832e6b1456c36b599e7e33d62cd9c6)
2008-01-07 18:33:15 +00:00
Jeffrey Altman
72af898c0a DEVEL15-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.


(cherry picked from commit b19c56edfa5f0e3ff95f32b006b9403f53dd406f)
2008-01-07 17:56:37 +00:00
Jeffrey Altman
16481e5181 DEVEL15-windows-ipaddr-change-server-deadlock-20080106
LICENSE MIT

avoid a deadlock during server probes initiated by the ipaddr change
daemon thread.


(cherry picked from commit 049bc4a637334c6e94661a60067ff6a27e5ad481)
2008-01-06 23:12:59 +00:00
Derrick Brashear
909efa4b7d DEVEL15-viced-threadquota-release-holds-20080106
LICENSE IPL10

release a hold when we decline to service a host


(cherry picked from commit 342595b2aa712ca7c0f2c160f9cba304dd27d574)
2008-01-06 15:57:40 +00:00
Jeffrey Altman
9e4dd65c39 DEVEL15-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.


(cherry picked from commit 6887c0e5b2b766b06c7e76a5ce28b84ed52df1d5)
2008-01-06 06:26:04 +00:00
Jeffrey Altman
91531d52c2 DEVEL15-windows-follow-backup-path-20080105
LICENSE MIT

parens are required in order to get the desired behavior


(cherry picked from commit d27e82c8e2dcdf81ce8e8e6e849828881256f5fc)
2008-01-05 22:20:30 +00:00
Jeffrey Altman
9018182031 DEVEL15-windows-nim-afscred-referrals-two-20080105
LICENSE MIT

compatibility with Visual Studio 2005/2008


(cherry picked from commit f789f943f6967094f921b1b1b232be22925e3849)
2008-01-05 18:57:12 +00:00
Jeffrey Altman
21d6a34773 DEVEL15-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.


(cherry picked from commit f970985bc35ade50371a9299ad580d96ad04e979)
2008-01-05 17:56:29 +00:00
Jeffrey Altman
10375cf8f4 DEVEL15-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.


(cherry picked from commit 53acd2042d53d947b213ba4ee58378c89555a868)
2008-01-05 17:29:56 +00:00
Derrick Brashear
ecf6ff7b2c DEVEL15-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.


(cherry picked from commit 8e3940c461f29483dcd71a5ba7cc59db89ea38e1)
2008-01-05 17:01:24 +00:00
Marc Horowitz
16f664eb2b DEVEL15-aklog-referral-support-20080104
LICENSE IPL10

with updates and configure support from Simon Wilkinson.

make aklog able to cope with referrals.


(cherry picked from commit 2d15ac79349678e025f407b863f2911cd20e6f4e)
2008-01-05 04:46:52 +00:00
Derrick Brashear
29dfd4eebc DEVEL15-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.


(cherry picked from commit 02dc91892c41163f24c818615d13271b074df3ca)
2008-01-04 18:38:34 +00:00
Jeffrey Altman
cbf08d13ec DEVEL15-windows-fs-test_volstat-20080103
LICENSE MIT

Add a hidden command that can be used to test volume status handlers.
fs test_volstat.


(cherry picked from commit 068233cf4ab90a173e04de94605490e651d2f686)
2008-01-04 07:58:40 +00:00
Jeffrey Altman
2e407ae9be DEVEL15-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.


(cherry picked from commit 23318f425ca8ccdc9b67bfc1be0a28c0f724f52a)
2008-01-04 07:53:55 +00:00
Jeffrey Altman
839358af6e DEVEL15-windows-fs-prototype-20080103
LICENSE

Fix types in prototypes to be consistent with function definitions


(cherry picked from commit d851dda5b7a84fa1acf5ccc93313df90922ce6b1)
2008-01-04 07:49:30 +00:00
Jeffrey Altman
c3a0d7a80b DEVEL15-windows-smb-20080103
LICENSE MIT

ensure type consistency between 32-bit and 64-bit processes by replacing
'long' with 'afs_uint32'


(cherry picked from commit 6034868e79f85e0143caa40669244cb8e442587b)
2008-01-04 07:47:31 +00:00
Jeffrey Altman
4b19efc23b DEVEL15-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.


(cherry picked from commit ae8e701952ae029672f2d7acfaf94cd44c1e4df4)
2008-01-04 07:44:40 +00:00
Derrick Brashear
6cb037254b DEVEL15-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


(cherry picked from commit 3a541eb11d1bc7bd05b85635315214218d3b5d6f)
2008-01-03 18:03:45 +00:00
Jeffrey Altman
5cb091e6bc DEVEL15-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.


(cherry picked from commit 5baef6f6fe55ca81a28bc22023b06ee6c50d453d)
2008-01-02 15:55:00 +00:00
Jeffrey Altman
ef6917ff9d DEVEL15-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.


(cherry picked from commit d59d1db605280bfa9b2234f5272d61152ca7d7de)
2008-01-02 15:02:29 +00:00
Jeffrey Altman
ba37e97f8a DEVEL15-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.


(cherry picked from commit cfcaa0be3cc22fce97737ae4f6387a8200de770d)
2008-01-02 07:08:00 +00:00
Derrick Brashear
68f0d6a331 DEVEL15-hpux11-sys-no-syscall-object-20071230
LICENSE IPL10
2007-12-31 03:23:48 +00:00
Derrick Brashear
b26f4c7b91 DEVEL15-vgetvnode-debuglog-vio-20071228
LICENSE IPL10

provide a way to log otherwise unlogged VIO error cause


(cherry picked from commit 2e135307b52b04003a22aa9985807a70b407accc)
2007-12-28 22:15:02 +00:00
Jeffrey Altman
3eca2f7e0b DEVEL15-windows-notes-20071228
LICENSE MIT
openafs-devel-1_5_29
2007-12-28 20:25:41 +00:00
Jeffrey Altman
c171eff70c DEVEL15-windows-version-20071228
LICENSE MIT

1.5.2900.0 == 1.5.29
2007-12-28 20:19:10 +00:00
Derrick Brashear
86a4eaadf3 DEVEL15-openafs-1-5-29-20071228
LICENSE IPL10

make 1.5.29
2007-12-28 20:14:49 +00:00
Jeffrey Altman
f03bcb3e92 DEVEL15-windows-release-notes-20071228
LICENSE MIT

update version number to 1.5.29
2007-12-28 19:47:11 +00:00
Jeffrey Altman
0558536b55 DEVEL15-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.


(cherry picked from commit 4d2c1d532bb44320afcf4debfee9ded403647e1e)
2007-12-28 15:47:43 +00:00
Jeffrey Altman
2ba19804b9 DEVEL15-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.


(cherry picked from commit 33aeecd83f8ce670269868145648ae6e277cf3cb)
2007-12-28 07:26:00 +00:00
Jeffrey Altman
3f8a21aaf8 DEVEL15-windows-cell-aliases-20071228
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)
2007-12-28 07:13:15 +00:00
Jeffrey Altman
c963b262fb DEVEL15-windows-bkg-daemon-threads-20071228
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)
2007-12-28 07:09:11 +00:00
Jeffrey Altman
b5af8893b4 DEVEL15-windows-default-chunksize-20071227
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)
2007-12-27 21:00:41 +00:00
Jeffrey Altman
557fc12e45 DEVEL15-windows-callback-restore-multi-cell-servers-20071226
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)
2007-12-26 16:22:19 +00:00
Jeffrey Altman
4961bbbe67 DEVEL15-windows-pthread-20071225
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)
2007-12-25 23:06:14 +00:00
Jeffrey Altman
5f52934c18 DEVEL15-rx-event-handler-20071225
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)
2007-12-25 22:59:46 +00:00
Jason Edgecombe
d8998f30b0 DEVEL15-man-page-license-change-20071225
LICENSE BSD

Update man pages submitted by Jason Edgecombe to the BSD license.


(cherry picked from commit 7dc4925cd35036e7f7b448d15a291791cd025e86)
2007-12-25 22:29:58 +00:00
Jason Edgecombe
0ee2915063 DEVEL15-man-page-misc-updates-20071225
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)
2007-12-25 22:26:43 +00:00