5785 Commits

Author SHA1 Message Date
Chas Williams
dd76e75b7c DEVEL15-xml-docbook-documentation-first-pass-20060915
needs more massaging to make it fit the tree, but, get it here first


(cherry picked from commit 52557c982e1ed65c694c5c1387ac2b385356438d)
2009-05-11 16:12:58 +00:00
Simon Wilkinson
3b21ae6002 DEVEL15-linux26-defer-cred-changing-20090511
LICENSE IPL10
FIXES 124737

Newer Linux kernels differentiate between the real and effective
credentials of a process, and prevent a process's credentials from being
change when the effective credentials have been set to a different value.
When AFS notices a keyring PAG exists but no group-based PAG does, the
attempt to rectify this, if done in a VFS call (which changes effective creds)
triggers this issue. We defer the change to the groups to avoid it.


(cherry picked from commit 7d530b9080f6dd4d7f7e4555ed6ce855ff81bcaa)
2009-05-11 15:55:02 +00:00
Jeffrey Altman
1c7cc29971 DEVEL15-windows-hard-and-idle-dead-timeouts-20090511
LICENSE MIT

Fix conditional test that assigns value to idleDeadTimeout

Modify event log message to indicate timeout could be either a
hard or an idle timeout.

As described in the source comments, do not retry on a hard or
idle timeout.


(cherry picked from commit f5a97a145e09a16a9b2d3ab485f33f520235b7e9)
2009-05-11 15:16:32 +00:00
Jeffrey Altman
62d40b40c9 DEVEL15-windows-fs-getfid-20090511
LICENSE MIT

Implement "fs getfid +<path> [-literal]" on Windows.
Same as the first line of output as "fs examine ...".


(cherry picked from commit 5520747790b599bc10013dc78efb81b5d50a3f52)
2009-05-11 15:04:52 +00:00
Marc Dionne
7f5b86916d DEVEL15-linux-fh-based-cache-20090511
LICENSE IPL10
FIXES 123620

rework previous fh-based cache support. now allows use of
arbitrarily large file handles, and build correctly for UKERNEL.

we now just use this if there's no iget, instead of providing a configure
switch.

because this relies on the somewhat invasive patch from 124184 it is not
currently pulled up to 1.4.x


(cherry picked from commit 326ffcc108e1db32fa2071b66ac9dbf2321ae71d)
2009-05-11 14:40:23 +00:00
Simon Wilkinson
fa73954d8b DEVEL15-abstract-cache-inode-ops-20090511
LICENSE IPL10
FIXES 124184

previous versions had abstract functions for linux (use_fh) and osx/solaris
(cache_vnode_path) cache file access, which was contributing to code bloat

switch to a union for disk/memory cache objects, and provide functions to
convert these into something appropriate for each system


(cherry picked from commit 8747236d54742c1c2fb8788c1f6aee4e657b3e89)
2009-05-11 14:28:04 +00:00
Jeffrey Altman
cabac6deaa DEVEL15-windows-fs-path-in-afs-20090507
LICENSE MIT

Switch the PathInAfs test to use VIOCGETFID instead of VIOC_GET_CELL_NAME
so that the literal option can be used.


(cherry picked from commit fd0f1f49f27b5f92547a0d15e23efd3b2e46376d)
2009-05-07 16:03:07 +00:00
Jeffrey Altman
0960de1c58 DEVEL15-windows-shellext-path-in-afs-20090507
LICENSE MIT
FIXES 124742

Change the PathInAfs test to use VIOCGETFID instead of VIOC_GET_CELL_NAME.
VIOCGETFID permits a literal test of the specified object.   This is needed
for testing the validity of a symlink to a msdfs: or non-existent path.
Otherwise, the AFS Shell Extension context menu will not be displayed.


(cherry picked from commit 621719905806a5883be5a17ca1af0d1929b874e3)
2009-05-07 15:53:25 +00:00
Derrick Brashear
8f6f2e1525 DEVEL15-man-pages-allow-dots-consistent-20090505
LICENSE IPL10

make all server man pages list -allow-dotted-principals (rather than
-allow-dotted-principal)


(cherry picked from commit c8ac7d1c499150b3f82a6566e9bbdb7478ddd469)
2009-05-05 13:30:34 +00:00
Mike Meffie
3653ba4349 DEVEL15-dafs-vol-offline-20090428
LICENSE IPL10
FIXES 124582

fix a logic error in the dafs vos offline support


(cherry picked from commit 5958aa0c4b0a9279a918cda1f37cb7e6c5666d44)
2009-04-28 15:37:51 +00:00
Jeffrey Altman
82058ac32b DEVEL15-windows-smb-disable-loopback-check-20090427
LICENSE MIT

Now that BackConnectionHostNames can be set each time the smb listener
threads are stopped and restarted, we need to make sure that we do not
clear the DisableLoopbackCheck value if it was set during the same
service session because BackConnectionHostName value changes only take
effect on a reboot.


(cherry picked from commit c4006edf4022e4f80cda5afd427d43997299c890)
2009-04-28 00:37:26 +00:00
Steven Jenkins
8fb1f48cfa DEVEL15-rename-residency-from-mrafs-to-osd-20090427
LICENSE IPL10
FIXES 124130

rename mrafs commands into their equivalent osd versions; structures etc are the
 same.


(cherry picked from commit 8655541d1eb6ea7d935f50d9256e12bf90db5045)
2009-04-28 00:04:29 +00:00
Jeffrey Altman
73fb33b19a DEVEL15-vos-reveal-hidden-cmds-20090427
LICENSE IPL10

vos hides "online", "offline", "delentry -noexecute", and "addsite -valid".
All of these are currently documented in the man pages without warning.
Reveal them.


(cherry picked from commit 4836fd1e374c30b5e3be72e73b3dbd21c0c98548)
2009-04-27 21:18:12 +00:00
Simon Wilkinson
3f46c3bef4 DEVEL15-dprintf-rename-20090427
LICENSE IPL10
FIXES 124657

make dprintf be afs_dprintf to fix for fedora 11 and probably others


(cherry picked from commit 2f5ac61b0a8775c58536ee954f2208ab88d0b225)
2009-04-27 20:17:25 +00:00
Jason Edgecombe
8e71ae4a4b DEVEL15-netinfo-fake-address-text-20090427
LICENSE IPL10
FIXES 124699

explain fake address support for NetInfo files


(cherry picked from commit 758366c26a0d1b2e97449ab858e15da8cc0d73f0)
2009-04-27 19:37:34 +00:00
Matt Benjamin
611868a378 DEVEL15-dragonfly-bsd-userland-20090427
LICENSE IPL10
FIXES 124702

add support for dragonflyBSD's userland


(cherry picked from commit 25f13f38064bf38ed89332b38c53c740475db87d)
2009-04-27 19:31:52 +00:00
Marc Dionne
fff37d7334 DEVEL15-linux-2-6-30-support-for-head-20090407
LICENSE IPL10
FIXES 124592

make proc dir entry owner field only be initialized when it exists


(cherry picked from commit aea52af634dd20c1cff1a6347ac24770ae727328)
2009-04-07 17:16:59 +00:00
Jeffrey Altman
a3707d68dc DEVEL15-windows-smb-registry-config-20090407
LICENSE MIT

Move configureBackConnectionHostNames() to smb_StartListeners()
so that when the NetbiosName changes while the service is running
the new values can be set.

Add configureExtendedSMBSessionTimeouts() which configures new
SMB functionality added in a Win2003 post-SP2 hot fix.


(cherry picked from commit b4b61821081d809bb3a737f9e23964f4f99b3c58)
2009-04-07 15:05:44 +00:00
Simon Wilkinson
82feffaa95 DEVEL15-linux-avoid-returning-invalid-pointers-on-error-20090402
LICENSE IPL10
FIXES 124580

avoid returning a positive error as it will look like a pointer.
openafs-devel-1_5_59
2009-04-07 13:25:52 +00:00
Derrick Brashear
698eb2ef20 DEVEL15-openafs-1-5-59-20090406
LICENSE IPL10

make 1.5.59
2009-04-06 23:57:09 +00:00
Simon Wilkinson
c0ff1f2429 DEVEL15-avoid-buffer-overflow-on-rx-fixed-size-array-return-20090402
LICENSE IPL10
FIXES 124579

avoid potentially writing beyond allocated memory if a return is larger than expected


(cherry picked from commit 62bca1123fb471ca1eec58b448fd39f7f797638a)
2009-04-06 23:53:02 +00:00
Simon Wilkinson
b7ead91b2c DEVEL15-linux-avoid-returning-invalid-pointers-on-error-20090402
LICENSE IPL10
FIXES 124580

avoid returning a positive error as it will look like a pointer.
2009-04-06 23:50:32 +00:00
Jeffrey Altman
2cf8bc9e88 DEVEL15-windows-pioctl-subst-unc-20090407
LICENSE MIT

Add code to support determining if a drive substitution refers to
a UNC path.


(cherry picked from commit 9a0b3da255032f177dfedb650c7a0b65cff24fba)
2009-04-06 22:47:59 +00:00
Jeffrey Altman
8c862a64e2 DEVEL15-windows-smb-trace-20090406
LICENSE MIT

include the correct function name in a
trace message


(cherry picked from commit aad7a2c5858a94672db6c23f508e404e236e4142)
2009-04-06 18:25:16 +00:00
Jeffrey Altman
93700152af DEVEL15-windows-release-notes-20090406
LICENSE MIT

1.5.59
2009-04-06 18:20:52 +00:00
Jeffrey Altman
977c2702d5 DEVEL15-windows-version-20090406
LICENSE MIT

1.5.59 == 1.5.5900.0
2009-04-06 18:17:32 +00:00
Jeffrey Altman
9851c01a1a DEVEL15-windows-notes-20090406
LICENSE MIT

1.5.59
2009-04-06 18:15:12 +00:00
Jeffrey Altman
0cce65056a DEVEL15-windows-test-torture-stack-overflow-20090405
LICENSE MIT

avoid stack overflow.


(cherry picked from commit ac199c845e6771c627dfb5e7efc0cdd8c5356df9)
2009-04-05 13:54:40 +00:00
Jeffrey Altman
bedc8eedaf DEVEL15-windows-tests-torture-20090405
LICENSE MIT

replace the VOLSTAT online test with the PATH_AVAILABILITY
online test.  We do not care of the volume is offline on the file
server if the cache manager has current data to serve.


(cherry picked from commit 59945d1cb5f14baf9ab0008990079e1dde9a796d)
2009-04-05 06:25:20 +00:00
Jeffrey Altman
4d444392b0 DEVEL15-windows-smb-error-map-20090404
LICENSE MIT

For CM_ERROR_BADSHARENAME return BAD_NETWORK_PATH instead
of BAD_NETWORK_NAME.  The latter refers to the server name
and the former to the share name.   Returning BAD_NETWORK_NAME
will causes the smb redirector to break its connection to \\AFS.

For CM_ERROR_ALLOFFLINE and CM_ERROR_ALLDOWN return PATH_NOT_FOUND
instead of BAD_NETWORK_PATH.  We don't want the smb redirector
to tear down all open files just because some volume in the path
is inaccessible at the moment.


(cherry picked from commit ffe04f710b41120f1bbd843c73ee2d95bc179d9c)
2009-04-04 21:16:36 +00:00
Simon Wilkinson
4410712f6d DEVEL15-linux-key-alloc-no-pointer-arith-20090404
LICENSE IPL10

make the key_alloc configure test work


(cherry picked from commit 4ecaeaac97a48c36df3866f1f71eb8a95c8f6e51)
2009-04-04 17:44:02 +00:00
Jeffrey Altman
23d74b48ae DEVEL15-windows-afsd-no-more-ods-20090402
LICENSE MIT

Any use of OutputDebugString() in production can result in serious
delays in the execution of the thread that issues the call.  Remove
the last of the unprotected calls within afsd_service.


(cherry picked from commit f6b4902daeb731eb01de44464476cb0a3edb26b1)
2009-04-03 03:57:13 +00:00
Jeffrey Altman
e530a9a726 DEVEL15-windows-rx-xmit-20090402
LICENSE IPL10

permit compilation with Windows SDK v6.0/6.1 which hides
previously exposed XP symbols unless _WINNT_WIN32 is at
least 0x0501


(cherry picked from commit fc408da993e753d33336ab408167383a75ed97f0)
2009-04-02 08:45:00 +00:00
Jeffrey Altman
64e45102e8 DEVEL15-windows-src-makefile-two-20090402
LICENSE MIT

get the i386 case right


(cherry picked from commit 0700567eef0c52b1b8892454b72c5123fe0514b1)
2009-04-02 08:41:50 +00:00
Jeffrey Altman
13a83ff7d9 DEVEL15-windows-src-makefile-20090402
LICENSE MIT

remove extraneous echo command output

do not attempt to build NSIS target on non-x86 platforms
since support is not implemented


(cherry picked from commit 27aedf7a2cfb04f49b6b8f3c9cabc3d6cdb91c78)
2009-04-02 06:06:54 +00:00
Jeffrey Altman
e95508698c DEVEL15-windows-config-clean-20090402
LICENSE MIT

permit "nmake -f ntmakefile clean" to complete on a
clean source tree.


(cherry picked from commit 8673c0de48140b8cd148bf3ea47094968ffbda8b)
2009-04-02 06:04:57 +00:00
Asanka Herath
0f39a2e8cb DEVEL15-windows-install-loopback-20090401
LICENSE MIT

Define INCLUDE variable and reorder binary link order
to ensure compatibility with latest WDK/SDK combinations.


(cherry picked from commit d86247619136d3080eb6be08fd8c077bc2afc68b)
2009-04-01 23:56:29 +00:00
Jeffrey Altman
e3fcaa1e37 DEVEL15-windows-talocale-20090401
LICENSE MIT

perform proper casting to avoid a warning


(cherry picked from commit d8a8bfb5c3b49980135b9da26082fa668640ec0f)
2009-04-01 18:36:39 +00:00
Jeffrey Altman
d005729cb4 DEVEL15-windows-afsd-smb-logging-20090401
LICENSE MIT

Add more info about the smb request to the log entry
that is written to afsd_init.log if the request took
longer than 45 seconds to complete.


(cherry picked from commit 520fef4278bd43073782e1c75f67900f96fa6ddf)
2009-04-01 18:30:37 +00:00
Jeffrey Altman
f6bd0a22c2 DEVEL15-windows-afsd-priority-class-20090401
LICENSE MIT

Change the default priority class for afsd_service.exe to High.
This matches the priority class assigned to other system processes
that generate requests to afsd_service.exe.

Permit the ..\TransarcAFSDaemon\Parameters "PriorityClass"
registry value to be used to change the default.


(cherry picked from commit 37f582326c1c5d5363a988f7038af0b62d0fb3ea)
2009-04-01 18:29:24 +00:00
Jeffrey Altman
d8b3d2cb94 DEVEL15-windows-afsd-xdr-free-20090401
LICENSE MIT

make use of xdr_free() to release memory allocated within afsrpc.dll.
this prevents crashes when the library is built with a different
runtime library version than the application.

fix signed/unsigned warnings in the same code snippet


(cherry picked from commit 3d81394f9106b187c28e35328676e11b662025c6)
2009-04-01 17:39:08 +00:00
Jeffrey Altman
a4aab1e3a4 DEVEL15-xdr-free-20090401
LICENSE MIT

add xdr_free() and export it from afsrpc.dll.  This permits applications
to free memory allocated within the xdr routines with the same run time
library memory management routines as was used to allocate it.

This is necessary on Windows to prevent memory corruption.

VL_GetAddrsU() is an example where a xdr array is allocated in the
library and must be freed by the application.


(cherry picked from commit d7749751df230d919188546106b61bd2dbb8974c)
2009-04-01 17:38:13 +00:00
Derrick Brashear
da94bd9e0f DEVEL15-dynamic-vcache-no-printf-20090331
LICENSE IPL10

no printf in 1.4.9


(cherry picked from commit 84871adb4bb3f8d1d50127255da75629e2167977)
2009-03-31 13:41:37 +00:00
Marc Dionne
5eaf9017bd DEVEL15-linux-2630-maybe-20090331
LICENSE IPL10
FIXES 124560

hopefully support 2.6.30 when it's released


(cherry picked from commit d0a166bdffce2d2498cab54cc458d9489d05c299)
2009-03-31 13:16:30 +00:00
Jeffrey Altman
66fe37746e DEVEL15-windows-version-20090329
LICENSE MIT

1.5.58
2009-03-29 18:16:07 +00:00
Jeffrey Altman
fc2a798003 DEVEL15-windows-release-notes-20090329
LICENSE MIT

1.5.58
2009-03-29 18:13:04 +00:00
Jeffrey Altman
0975d5a9f7 DEVEL15-windows-notes-20090329
LICENSE MIT

1.5.58
2009-03-29 18:09:10 +00:00
Jeffrey Altman
0b7daceafd DEVEL15-windows-afsd-log-smb-mid-20090328
LICENSE MIT

For each SMB transation log the 'mid' field of the smb packet.
The 'mid' field can be used as a reference against the mrxsmb request
logging for debugging purposes.


(cherry picked from commit 07c187c84384635413e6353dc9913a8826f25bb5)
2009-03-28 23:26:17 +00:00
Jeffrey Altman
4e07b9d6b2 DEVEL15-windows-remove-reset-all-vcs-event-20090328
LICENSE MIT

remove the smb reset all VCs message.  duplicates the
reportSessionStartups functionality.


(cherry picked from commit 4bc36a697fffe78cc0ec93cb9cf98772aeadfcb6)
2009-03-28 23:17:44 +00:00
Jeffrey Altman
512b04457e DEVEL15-windows-afsd-symlink-20090327
LICENSE MIT

Increase max symlink limit to 64 and remove the repeated fid
recursion test.  Breaks too many things.


(cherry picked from commit 27609fe288eb20f30e1f17a709a07468a74372eb)
2009-03-27 17:58:19 +00:00