Commit Graph

3489 Commits

Author SHA1 Message Date
Russ Allbery
ad207ee113 sparc64-linux-typo-20060114
XLDFLAGS64, not XLDFLAG64.
2006-01-14 08:19:19 +00:00
Troy Benjegerdes
0b24f2d91a sparc64-linux-20060113
Hopefully fix sparc64 Linux support with 2.6 kernels.
2006-01-14 08:00:01 +00:00
Asanka Herath
6cf662ca52 windows-lock-data-versions-20060112
Add a lockDataVersion field to cm_scache_t.  This data version is
compared to the cm_scache_t dataVersion field in the following
circumstances:

 * lock upgrades from read to write in which the lock must be released
   given current file server rpcs

 * lock downgrades from write to read in which the lock must be released
   given current file server rpcs

 * lost locks due to network disconnect.  if the data version has not
   changed then re-obtaining the lock is safe to do
2006-01-12 18:45:16 +00:00
Jeffrey Altman
af202cac55 windows-cmfinduserbyname-20060112
FIXES 25347

Fix invalid access after freeing newly allocated data structure
2006-01-12 05:54:23 +00:00
Chas Williams
3e8b96cfc4 linux-clean-up-stupidity-20060111
get some of an inadvertant misapplied patch, and get rid of a redundant check
2006-01-11 21:37:06 +00:00
Jeffrey Altman
fb6d1dacfc afs-sysnames-20060110
move allocations for SYS_NAME_ID_amd64_w2k and  SYS_NAME_ID_i64_w2k to avoid
conflicts
2006-01-11 04:44:49 +00:00
Chaskiel M Grundman
29924c8302 macos-reclaim-20060110
FIXES 25165

avoid a vnode cleaning pnaic during recycle
2006-01-11 04:23:22 +00:00
Chaskiel M Grundman
ab7cfe62ec macos-avoid-ref-leak-20060110
FIXES 25302

fix for the earlier fix
2006-01-11 04:21:11 +00:00
Derrick Brashear
8a1d347b2e remove-vnop-mem-leak-20060110
avoid leaking mvid when we use .__afsXXXX renaming in remove
2006-01-10 15:09:55 +00:00
Derrick Brashear
39b23a0dc1 remove-vnop-lock-order-20060110
FIXES 25118

finegrained dcache lock order not obeyed
2006-01-10 15:03:26 +00:00
Jeffrey Altman
a9df3ca715 windows-smb-username-refcount-20060110
the smb_username_t objects are reference counted but they were never
released on their own accord.  Instead the smb_uid_t objects when
released were also cleaning up the smb_username_t.  Since the smb_username_t
is reused, now that smb_user_t objects are being cleaned up, this was
a problem.
2006-01-10 13:26:41 +00:00
Asanka Herath
5deb4e521b windows-tests-winflock-20060108
Updates to locking tests
2006-01-09 05:44:19 +00:00
Asanka Herath
78c40badbd windows-byte-range-locking-20060108
When SMB sessions are prematurely terminated as part of the tear down
of the virtual circuit we must clean up any remaining file handles,
tree connections, and user sessions.
2006-01-09 04:43:36 +00:00
Jeffrey Altman
36596b93e0 windows-byte-range-locks-fix-20060107
fix the SERVERLOCKS_ENABLED macro
2006-01-08 04:17:18 +00:00
Jeffrey Altman
7d912795aa windows-enable-byte-range-locking-20060107
re-enable byte range locking
2006-01-08 00:42:52 +00:00
Jeffrey Altman
f057d9515c windows-byte-range-locking-20060107
* Update architectural documentation

* Allow locks to be obtained as soon as it is possible instead of
  enforcing a requirement that locks be granted in order.

* Fix other bugs

* Disable byte range lock processing
2006-01-08 00:38:32 +00:00
Jeffrey Altman
57e5d7c2ae windows-eventlog-20051219
For afsd_service.exe, properly use the Event Log by constructing
message strings stored in a MESSAGETEXT resource.  This patch also
removes a large number of debugging related event messages that
should never have been seen by an end user.   That data is now
logged to the trace.log where it should have been logged initially.

Similar changes need to be implemented for afslogon.dll and afscreds.exe

The afsd_eventlog.[ch] files should be broken out into its own library
so that it can be reused efficiently.

The afsreg.h header was cleaned up to ensure name consistency and to
remove the last vestiges of "IBM AFS".

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

Do not change "AFS Client" to "OpenAFS Client" unless the installers
are also updated.

====================

remove temporary files upon clean
2006-01-08 00:30:40 +00:00
Derrick Brashear
e07a781b20 macos-104-change-access-enforcement-20060105
don't improperly enforce read attribute restriction on child instead of parent
when it's a directory

avoid screwing ourselves on mode 0 files, also
2006-01-06 02:54:40 +00:00
Chaskiel M Grundman
8b015a5e32 macos-vnode-get-fixes-20060105
The afs_pioctl.c change should fix a real crash (panic), but fs flushv isn't
that common an operation.
Other changes:
don't GUNLOCK() around vnode_get(). we weren't consistent about it, and it
doesn't appear to be strictly required.
handle vnode_get() failures in more cases
darwin_vn_hold will panic if vnode is terminating rather than mess up the
refcounts.
2006-01-05 05:31:34 +00:00
Horst Birthelmer
b361719072 fbsd-vnode-includes-20060103
Generate vnode_if_newproto.h and vnode_if_typedef.h in case they aren't in
the kernel build directory, for example if the kernel has been configed but
not built.
2006-01-03 21:26:40 +00:00
Asanka Herath
40f151f5c4 windows-vista-wix-install-20051230
Update the MSI to install the network provider without impersonation
2005-12-30 22:40:15 +00:00
Russ Allbery
8863143052 man-page-rxgen-cmdebug-20051227
Add man pages for rxgen and cmdebug.  The cmdebug man page was written from
scratch based on the source code.  The rxgen man page is a conversion of an
old TeX document to POD.
2005-12-27 23:30:22 +00:00
Jeffrey Altman
dc694b3360 windows-ptc-rc-20051227
for ptclient.exe
2005-12-27 20:00:10 +00:00
Jeffrey Altman
3875eec844 windows-process-detach-20051227
The procmgmt library replaces the C RunTime Library's signal handlers
but does not restore them on process detachment.  This leaves the
process with signal handlers pointing to invalid code that generates
an invalid access error during process termination if the library
was previously unloaded.
2005-12-27 16:17:11 +00:00
Chas Williams
5a23812553 solaris-uniqtime32-20051223
FIXES 24445

afs really wants the 32 bit timeval/uniqtime stuff
2005-12-24 01:07:43 +00:00
Chaskiel M Grundman
518bebb032 darwin-dnlc-cache-purge-20051223
FIXES 22644

cache_purge() to hint to darwin that we changed something instead of letting it cache invalid data
2005-12-24 00:28:10 +00:00
Chaskiel M Grundman
97ebc77671 tiger-fixes-20051215
potential reclaim in progress fix, and per Chaskiel,
"I don't remember why I put it there, but the fact that
it gets triggered means that we're leaking a vcache object lock. It looks
like the "rename to .__afsXXXX" codepath is responsible (as afsrename does
not use the fact that adp (or aodp) is locked by afs_remove, and locks it
again. I'm surprised it's not deadlocking)" so i coded up a fix

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

chaskiel says
The RHS shouldn't be a double negative...
       There's no bug (other than the assert itself)
2005-12-24 00:20:18 +00:00
Chaskiel M Grundman
856f5288e7 darwin-lost-wakeups-20051223
FIXES 24492

rewrite for tiger to avoid losing wakeups
2005-12-24 00:08:32 +00:00
Russ Allbery
90bc5c0092 man-page-misc-improvements-20051221
Add new man pages for livesys and voldump.  Fix the man page for sys to say
what it actually does, rather than implying that it works like livesys, and
to recommend livesys instead.  Fix a path error in the NetInfo
documentation.  Update the README for the current status, including
listing all installed commands that don't have man pages.  (There may still
be some subcommands that don't have man pages but aren't listed.)
2005-12-22 07:34:49 +00:00
Russ Allbery
5fde299434 man-page-installation-20051221
On installation, substitute the configured paths into the man pages,
replacing the Transarc paths.  Also fix a problem with the way that
pinstall was being used to install man pages.  (Silly me, I was assuming
it had the same behavior as install.)

This is just a quick first pass.  Longer term, it's probably better to
replace all paths in the man pages with unambiguous tokens and then
replace those tokens instead of assuming that the man pages use Transarc
paths and replacing those paths specifically.  The current method has a
few minor problems, such as not being able to distinguish between the
various paths that make up /usr/afs/bin.  Still, the results of this method
are good enough to start with.
2005-12-22 07:29:52 +00:00
Jim Rees
f874f6691b aklog-obsd-20051221
make aklog build on OpenBSD
2005-12-21 18:41:47 +00:00
Ken Hornstein
b2b051fab1 aklog-fix-install-Makefile-target-20051221
Fixed the install target so it installs asetkey instead of running it.
2005-12-21 18:22:08 +00:00
Russ Allbery
160854bd2b man-page-whitespace-20051220
Remove all trailing whitespace while we have the chance and there are no
merge issues yet.
2005-12-21 00:41:17 +00:00
Russ Allbery
0b21e24d0a man-page-generation-20051220
Move man page generation out into a separate script that's just invoked
from regen.sh, so that someone can run that separate script later if they
wish.  Make that script more robust against problems such as empty podN
directories.  Diagnose a missing pod2man and warn about old versions of
Pod::Man.

Also, remove the old programs used to do the initial conversion from HTML.
Enough post-conversion editing was done that they're no longer necessary
except for historical curiosity, and for that purpose they can be pulled
out of CVS.
2005-12-21 00:37:16 +00:00
Jeffrey Altman
2de17470f0 windows-bg-fcrypt-20051219
use the faster bg-fcrypt
2005-12-19 16:12:16 +00:00
Jeffrey Altman
1b73452ba8 windows-64-bit-type-safety-20051105
SIZE_MAX should be UINT_MAX if not defined

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

64-bit type safety changes required for successful compilation
on Windows 64-bit systems with the VS 2005 compiler
2005-12-19 15:51:28 +00:00
Jeffrey Altman
065f9e1196 windows-uninit-20051219
initialize the variable containing the afs id in case the pts lookup
fails
2005-12-19 12:36:48 +00:00
Jeffrey Altman
02a6d180f3 windows-rx-debug-disable-20051219
Provide a method to enable/disable rx debugging along as a part
of "fs trace -on/-off"
2005-12-19 12:35:15 +00:00
Björn Torkelsson
37147a406e linux-writepage-rename-20051218
The ocfs2 patch renames WRITEPAGE_ACTIVE to AOP_WRITEPAGE_ACTIVE, and
Ubuntu has applied that patch to their version of the kernel.  Allow for
either.
2005-12-19 03:27:21 +00:00
Jeffrey Altman
376a5dd834 separate-capabilities-by-source-20051217
This patch separates the client and viced capabilties;
adds a viced capabilities for 64bit files;
and modifies the Windows client to probe the viced capabilities
the first time the client discovers the server and uses the capabilities
RPC instead of the GetTime RPC to probe for Up/Down status

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

define the capabilities constants
2005-12-18 05:41:19 +00:00
Jeffrey Altman
8c3cf4b894 windows-no-fds-20051217
when collecting rx statistics in response to an RPC query, the rx library
attempts to enumerate the number file descriptors in use.  This is fine
except that file descriptors are a C Run Time Library concept on Windows
and are not related to networking.  In Visual Studio 8, the run time library
will assert() if an invalid file descriptor is passed to fstat() which is
the test used to determine if a file descriptor is valid.

This patch simply returns 0 for the number of file descriptors in use
because that is what would have been returned anyway with the existing
code.  What we probably want to return is the number of open socket
handles.
2005-12-17 17:26:57 +00:00
Jeffrey Hutzelman
e5c8042e72 vos-restore-parent-id-patch-20051215
avoid making broken readonlies when when you restore them
2005-12-16 04:25:48 +00:00
Chas Williams
1fe17bc365 linux-dentry-multiple-mounts-20051215
avoid triggering BUG() when a volume is multiply mounted
2005-12-16 03:36:16 +00:00
Tom Keiser
914ac92048 freedatabufs-mark-free-20051215
avoid an error with marking data packets free
2005-12-16 03:31:18 +00:00
Tom Keiser
b34223345b multibreak-rework-avoiding-race-20051215
avoid a potential race finding the correct connection during
MultiBreakCallBack_r
2005-12-16 03:27:17 +00:00
Rainer Toebbicke
d00359b241 rx-osi_alloc-prototype-20051215
FIXES 24267

must provide prototype for osi_Alloc() on systems with 64-bit pointers
and 32-bit int
2005-12-15 15:15:30 +00:00
Rainer Toebbicke
f75b0075a7 rx-osi_alloc-prototype-20051214
FIXES 24267

include rx.h in order to safely include rx_prototypes.h in order
to obtain a prototype for osi_Alloc() in order to prevent pointer
truncation on systems with 64-bit pointers and 32-bit int.
2005-12-15 05:55:10 +00:00
Jeffrey Altman
544dedb6ed multiple-local-realms-20051208
This patch extends the krb.conf file allowing the specification of
multiple realms which should be treated as equivalents to the local
cell authentication domain.  Additional realms are specified on the
first line of the krb.conf file and are separated by white space.

In addition, the patch adds a new file stored in the same directory
as the krb.conf file called krb.excl.  This file contains a list of
principal names, one per line, that must not be treated as local
identities.

The purpose of this patch is to allow organizations that are supporting
multiple realms with synchronized user principal databases to allow
their users to login with any of the realms and treat the principal
names as equivalent to the local PTS identity.   The exclusion is
to allow certain names, such as those for administrative IDs, to be
restricted to a subset of the realms.

Further optimization of the afs_krb_exclusion() should be performed to
remove the need to re-read the file.  This patch should be considered
a temporary solution until a more permanent set of extensions to the
PT database and RPCs allow for the assignment of mechanism specific
aliases for PT IDs.

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

correction to exclusion list parsing
2005-12-15 05:51:24 +00:00
Jeffrey Altman
f9f9894a2c windows-ansification-20051214
use modern function declarations
2005-12-14 05:39:56 +00:00
Jeffrey Altman
8204b5968c windows-rpc-warning-20051214
If osi_InitDebug() fails due to RPC_S_NO_PROTSEQS, log to the afsd_init.log
file a warning indicating that the registry should be examined for a
misconfiguration of Windows.
2005-12-14 05:32:55 +00:00