Commit Graph

5716 Commits

Author SHA1 Message Date
Felix Frank
5e0e1ea254 linux-mmap-antirecursion-fix-20090512
LICENSE IPL10
FIXES 124627

fix the mmap anti-recursion protection to set and mask CPageWrite appropriately
and with the correct lock protection. this leaves us with an issue to handle
when the mmap'd file is larger (possibly considerably larger) than the
cache
2009-05-12 18:56:30 +00:00
Matt Benjamin
3b6bf1a057 freebsd-kauth-sig-t-20090512
LICENSE IPL10
FIXES 124569

define the old signal type as sig_t on freebsd (e.g. everywhere we prototype as
sig_t)
2009-05-12 18:18:37 +00:00
Rainer Toebbicke
b967654434 rxdebug-print-values-unsigned-20090512
LICENSE IPL10
FIXES 124563

for the values which are unsigned, use %u, not %d
2009-05-12 18:12:20 +00:00
Anders Kaseorg
eb9fff14c7 redhat-use-postinit-in-initscript-20090512
LICENSE IPL10
FIXES 124552

if a postinit script is defined, use it
2009-05-12 17:58:27 +00:00
Felix Frank
214ce7c8b4 memcache-write-on-laststore-20090512
LICENSE IPL10
FIXES 124671

write back dirty pages on last store for memcache, lest we end up
unintentionally discarding the changes.
2009-05-12 17:42:24 +00:00
Steven Jenkins
c6adb0d2f3 tests-generate-dirpath-in-makefile-20090512
LICENSE IPL10
FIXES 124715

fix rmcell to not have hardcoded paths; instead, generate a dirpath shell
script from makefile and use that
2009-05-12 17:22:49 +00:00
Steven Jenkins
c39f38d8c6 tests-no-dirpath-infile-20090512
LICENSE IPL10
FIXES 124716

Dirpath.pm.in is no longer needed
2009-05-12 14:06:14 +00:00
Matt Benjamin
4b9283a30d openbsd-44-45-20090512
LICENSE IPL10
FIXES 124719

add missing osi_free backend, missing param file, modify soreceive for 4.5
2009-05-12 14:02:38 +00:00
Jeffrey Altman
947213da0e windows-dcache-store-data-20090511
LICENSE MIT

The windows dcache module synchronizes store data operations in
order to prevent multiple simultaneous store data operations against
the same file at the same time by multiple threads.  This is performed
using cm_SyncOp(CM_SCACHESYNC_STOREDATA_EXCL).  However, cm_SetupStoreBIOD()
was being processed prior to the synchronization.  As a result a dirty
buffer could be added to two BIOD lists resulting in the same buffer
contents being written to the file server twice.

This patch moves the cm_SetupStoreBIOD() into the synchronization region.
It also adds a new 'locked' parameter to cm_ReleaseBIOD() that indicates
whether or not the cm_scache_t object is locked when called.  This
permits fewer lock state changes to be used in several cases.
2009-05-11 17:22:24 +00:00
Simon Wilkinson
7d530b9080 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.
2009-05-11 15:54:50 +00:00
Jeffrey Altman
f5a97a145e 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.
2009-05-11 15:15:35 +00:00
Jeffrey Altman
5520747790 windows-fs-getfid-20090511
LICENSE MIT

Implement "fs getfid +<path> [-literal]" on Windows.
Same as the first line of output as "fs examine ...".
2009-05-11 15:04:43 +00:00
Marc Dionne
326ffcc108 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
2009-05-11 14:39:58 +00:00
Simon Wilkinson
8747236d54 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
2009-05-11 14:27:42 +00:00
Jeffrey Altman
fd0f1f49f2 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.
2009-05-07 16:02:53 +00:00
Jeffrey Altman
6217199058 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.
2009-05-07 15:53:14 +00:00
Derrick Brashear
c8ac7d1c49 man-pages-allow-dots-consistent-20090505
LICENSE IPL10

make all server man pages list -allow-dotted-principals (rather than
-allow-dotted-principal)
2009-05-05 13:30:24 +00:00
Mike Meffie
5958aa0c4b dafs-vol-offline-20090428
LICENSE IPL10
FIXES 124582

fix a logic error in the dafs vos offline support
2009-04-28 15:37:39 +00:00
Jeffrey Altman
c4006edf40 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.
2009-04-28 00:37:16 +00:00
Steven Jenkins
8655541d1e rename-residency-from-mrafs-to-osd-20090427
LICENSE IPL10
FIXES 124130

rename mrafs commands into their equivalent osd versions; structures etc are the
 same.
2009-04-28 00:03:35 +00:00
Jeffrey Altman
4836fd1e37 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.
2009-04-27 21:17:59 +00:00
Simon Wilkinson
2f5ac61b0a dprintf-rename-20090427
LICENSE IPL10
FIXES 124657

make dprintf be afs_dprintf to fix for fedora 11 and probably others
2009-04-27 20:17:12 +00:00
Jason Edgecombe
758366c26a netinfo-fake-address-text-20090427
LICENSE IPL10
FIXES 124699

explain fake address support for NetInfo files
2009-04-27 19:37:25 +00:00
Matt Benjamin
25f13f3806 dragonfly-bsd-userland-20090427
LICENSE IPL10
FIXES 124702

add support for dragonflyBSD's userland
2009-04-27 19:29:09 +00:00
Marc Dionne
aea52af634 linux-2-6-30-support-for-head-20090407
LICENSE IPL10
FIXES 124592

make proc dir entry owner field only be initialized when it exists
2009-04-07 17:16:43 +00:00
Jeffrey Altman
b4b6182108 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.
2009-04-07 15:05:30 +00:00
Derrick Brashear
473149653e rx-internal-use-static-inline-macro-20090407
LICENSE IPL10

some platforms can't use "static inline"
2009-04-07 14:00:56 +00:00
Simon Wilkinson
62bca1123f 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
2009-04-06 23:52:52 +00:00
Simon Wilkinson
160619505d 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:15 +00:00
Jeffrey Altman
9a0b3da255 windows-pioctl-subst-unc-20090407
LICENSE MIT

Add code to support determining if a drive substitution refers to
a UNC path.
2009-04-06 22:47:49 +00:00
Jeffrey Altman
aad7a2c585 windows-smb-trace-20090406
LICENSE MIT

include the correct function name in a
trace message
2009-04-06 18:24:48 +00:00
Jeffrey Altman
ac199c845e windows-test-torture-stack-overflow-20090405
LICENSE MIT

avoid stack overflow.
2009-04-05 13:54:04 +00:00
Jeffrey Altman
59945d1cb5 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.
2009-04-05 06:25:08 +00:00
Jeffrey Altman
ffe04f710b 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.
2009-04-04 21:16:27 +00:00
Simon Wilkinson
4ecaeaac97 linux-key-alloc-no-pointer-arith-20090404
LICENSE IPL10

make the key_alloc configure test work
2009-04-04 17:43:42 +00:00
Jeffrey Altman
f6b4902dae 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.
2009-04-03 03:56:36 +00:00
Jeffrey Altman
fc408da993 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
2009-04-02 08:44:51 +00:00
Jeffrey Altman
0700567eef windows-src-makefile-two-20090402
LICENSE MIT

get the i386 case right

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

fixup the @echo again
2009-04-02 08:40:06 +00:00
Jeffrey Altman
27aedf7a2c 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
2009-04-02 06:06:44 +00:00
Jeffrey Altman
8673c0de48 windows-config-clean-20090402
LICENSE MIT

permit "nmake -f ntmakefile clean" to complete on a
clean source tree.
2009-04-02 06:04:48 +00:00
Asanka Herath
d862476191 windows-install-loopback-20090401
LICENSE MIT

Define INCLUDE variable and reorder binary link order
to ensure compatibility with latest WDK/SDK combinations.
2009-04-01 23:56:16 +00:00
Jeffrey Altman
d8a8bfb5c3 windows-talocale-20090401
LICENSE MIT

perform proper casting to avoid a warning
2009-04-01 18:36:29 +00:00
Jeffrey Altman
520fef4278 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.
2009-04-01 18:30:29 +00:00
Jeffrey Altman
37f582326c 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.
2009-04-01 18:29:15 +00:00
Jeffrey Altman
d7749751df 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.
2009-04-01 17:37:50 +00:00
Jeffrey Altman
3d81394f91 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
2009-04-01 17:35:29 +00:00
Derrick Brashear
84871adb4b dynamic-vcache-no-printf-20090331
LICENSE IPL10

no printf in releases
2009-03-31 13:41:25 +00:00
Marc Dionne
d0a166bdff linux-2630-maybe-20090331
LICENSE IPL10
FIXES 124560

hopefully support 2.6.30 when it's released
2009-03-31 13:16:17 +00:00
Jeffrey Altman
07c187c843 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.
2009-03-28 23:25:16 +00:00
Jeffrey Altman
4bc36a697f windows-remove-reset-all-vcs-event-20090328
LICENSE MIT

remove the smb reset all VCs message.  duplicates the
reportSessionStartups functionality.
2009-03-28 23:17:29 +00:00