Jeffrey Altman [Fri, 10 Jul 2009 19:47:35 +0000]
bucoord_prototypes.h is a new public header file.
Install bucoord_prototypes.h to the include/afs directory.
LICENSE MIT
Reviewed-on: http://gerrit.openafs.org/43
Verified-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Jeffrey Altman [Fri, 10 Jul 2009 19:33:47 +0000]
afs/vol_prototypes.h is a new public header file.
Add afs/vol_prototypes.h to src/vol/NTMakefile so
it will be installed in the public include directory.
LICENSE MIT
Reviewed-on: http://gerrit.openafs.org/42
Verified-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Russ Allbery [Fri, 10 Jul 2009 15:10:37 +0000]
Clean up uses of strcpy and strcat in src/vol/namei_ops.c
Replace all uses of strcpy and strcat in src/vol/namei_ops.c with either
strlcpy/strlcat or afs_snprintf as appropriate.
Reviewed-on: http://gerrit.openafs.org/29
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Verified-by: Derrick Brashear <shadow@dementia.org>
Simon Wilkinson [Fri, 10 Jul 2009 19:22:18 +0000]
Add prototypes for butc
Prototype, fix warnings, and ansify the butc directory
Reviewed-on: http://gerrit.openafs.org/39
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Simon Wilkinson [Fri, 10 Jul 2009 19:28:06 +0000]
Don't remove ccode, just conditionalise it
The change in
b21015242022872101b9c3c78df511e2a2dc6399 broke
systems without posix regexes by removing, rather than
conditionalising the 'ccode' variable
Reviewed-on: http://gerrit.openafs.org/40
Verified-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Jeffrey Altman [Fri, 10 Jul 2009 19:07:26 +0000]
Add rx_headers build rule on Windows
src/util/netutils.c must include rx/rx.h in order to avoid
warnings due to the lack of prototypes for rx functions.
src/rx depends on src/util being built in order to properly
compile. Add a rx_headers build rule to the top level
NTMakefile to permit rx headers to be installed before
src/util is built.
LICENSE MIT
Reviewed-on: http://gerrit.openafs.org/38
Verified-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Simon Wilkinson [Fri, 10 Jul 2009 12:52:16 +0000]
Roughly prototype the kauth directory
A first pass at prototyping and warning reduction for the kauth
directory. kauth is plagued by the des key type problems, and
no attempt to remedy this has been made. Some other complex
warnings remain - it didn't seem worth the effort to do this
in too much detail, as it's dying soon.
Reviewed-on: http://gerrit.openafs.org/23
Verified-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Simon Wilkinson [Fri, 10 Jul 2009 17:33:38 +0000]
Rework bucoord prototypes for external dlq use
Rework prototyping in the bucoord directory so that bucoord_prototypes.h
can be used by others who need definitions of the dlq_* types.
Add additional prototyping and header includes so these types work correctly
No Windows specific changes are required, as the NTMakefile doesn't have
header dependencies
Reviewed-on: http://gerrit.openafs.org/35
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Simon Wilkinson [Fri, 10 Jul 2009 11:54:10 +0000]
Prototyping for the volser directory
Prototyping and warning message reduction for the volser directory.
Adds physio.h and dumpstuff.h as internal header files,
Many error code variables are changed from being afs_int32, to the
'Error' typedef, to remove signed comparison errors.
Reviewed-on: http://gerrit.openafs.org/19
Reviewed-by: Russ Allbery <rra@stanford.edu>
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Simon Wilkinson [Fri, 10 Jul 2009 16:28:44 +0000]
Prototype viced
Add prototypes, remove warnings, and ANSIfy code in the viced/ directory
Reviewed-on: http://gerrit.openafs.org/33
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Simon Wilkinson [Fri, 10 Jul 2009 12:40:56 +0000]
Remove pr_PrintEntry from public headers
pr_PrintEntry isn't used outside of the ptserver directory, and requires
struct prentry, which is defined internally, so remove it from ptuser.h,
and create a new internal header to hold it.
Also, tidy up some type mismatch warnings by making static strings const
char *
Reviewed-on: http://gerrit.openafs.org/22
Reviewed-by: Russ Allbery <rra@stanford.edu>
Verified-by: Russ Allbery <rra@stanford.edu>
Simon Wilkinson [Fri, 10 Jul 2009 15:44:39 +0000]
ANSIfy ptclient
Change all the function definitions in ptclient to ANSI form
Reviewed-on: http://gerrit.openafs.org/32
Reviewed-by: Russ Allbery <rra@stanford.edu>
Verified-by: Russ Allbery <rra@stanford.edu>
Simon Wilkinson [Fri, 10 Jul 2009 12:30:20 +0000]
Tidy up util
Resolve a number of minor warnings
Prototype the stolower function for use elsewhere
Reviewed-on: http://gerrit.openafs.org/21
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Simon Wilkinson [Fri, 10 Jul 2009 13:25:40 +0000]
Fix return type defaults to int warnings in ubik
Fix "return type defaults to int" warnings in ubik/beacon.c
Reviewed-on: http://gerrit.openafs.org/24
Reviewed-by: Russ Allbery <rra@stanford.edu>
Verified-by: Russ Allbery <rra@stanford.edu>
Simon Wilkinson [Fri, 10 Jul 2009 11:10:46 +0000]
Tidy up libacl
Very small amount of prototyping
Rewrite comment block so it wraps at 80 lines
Make sure there are no implicit ints
Reviewed-on: http://gerrit.openafs.org/18
Reviewed-by: Russ Allbery <rra@stanford.edu>
Verified-by: Russ Allbery <rra@stanford.edu>
Simon Wilkinson [Fri, 10 Jul 2009 12:19:03 +0000]
Prototype the xstat directory
Prototype, ansify, and remove errors in the xstat directory
Reviewed-on: http://gerrit.openafs.org/20
Reviewed-by: Russ Allbery <rra@stanford.edu>
Verified-by: Russ Allbery <rra@stanford.edu>
Jeffrey Altman [Fri, 10 Jul 2009 15:42:17 +0000]
Modify Windows top-level NTMakefile to use "md" instead of "mkdir"
Now that src/config/NTMakefile.<platform> actually uses the
override value. Lets fix the definition of MKDIR to avoid
the Unix style executables.
LICENSE MIT
Reviewed-on: http://gerrit.openafs.org/31
Verified-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Jeffrey Altman [Fri, 10 Jul 2009 15:16:25 +0000]
The Windows Makefiles provide macros for various commands.
The MKDIR macro is current assigned to mkdir which causes
the cygwin/msys mkdir.exe commands to be used instead of
the cmd.exe built-in command. Change this to use "md" instead
so that the built-in will be used by default.
In addition, permit the macros to be overridden by the top
level NTMakefile or the environment.
LICENSE MIT
Reviewed-on: http://gerrit.openafs.org/30
Verified-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Derrick Brashear [Fri, 10 Jul 2009 14:52:27 +0000]
HP-UX 11i compiler will segv on static __inline in the fsbnode-bnode xlator
since this function appeared the compiler on HP-UX 11i started
segving. since it's not necessary, we simply remove it
Reviewed-on: http://gerrit.openafs.org/28
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Verified-by: Derrick Brashear <shadow@dementia.org>
Jeffrey Altman [Fri, 10 Jul 2009 01:25:07 +0000]
Add "PerFileAccessCheck" registry value.
The HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon
"PerFileAccessCheck" registry value (DWORD) is intended for
use only by developers who wish to test how Windows would
behave if a per-file access rights check was performed.
Windows performs all access rights checks using the directory
access rights. There is no support for the VL_DFSFILESET flag.
During CreateFile() processing the requested access rights are
checked against the access rights reported by the file server
for the directory. If the reported rights are more permissive than
the effective access rights for the file, Windows applications
(including the Explorer Shell) will behave quite poorly. In other
words, if the request is for write privilege and the CreateFile()
successfully opens the file with write privilege, subsequently
reporting an access denied on a WriteFile() call will result in
very poor behavior.
The addition of this option is simply to make it easier on
developers to test various prototype solutions for adding per-file
access rights.
LICENSE MIT
Reviewed-on: http://gerrit.openafs.org/15
Reviewed-by: Asanka Herath <asanka@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Verified-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Simon Wilkinson [Fri, 10 Jul 2009 10:58:44 +0000]
Tidy the vol directory
- Remove some further warnings from the vol directory
- Add volutil_PartitionName2_r to afsutil_prototypes.h
- Export vol_prototypes.h so it can be used elsewhere in the tree
Reviewed-on: http://gerrit.openafs.org/17
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Verified-by: Derrick Brashear <shadow@dementia.org>
Simon Wilkinson [Thu, 9 Jul 2009 12:53:33 +0000]
Prototype the vlserver directory
Prototype, ansify, and other do warning cleanups on code in the vlserver
directory.
Reviewed-on: http://gerrit.openafs.org/16
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Aaron M. Ucko [Tue, 7 Jul 2009 00:41:49 +0000]
Always use kbuild for all Linux kernel configure probes
Some Linux kernel probes for the existence of header files were done
with file existence checks (test -f). This breaks if the kernel build
system is stacking multiple directories of headers together with
compile-time -I include path options, as is the case for the current
Debian Linux header packages. Instead, always use kbuild to check
whether a kernel header is available.
Similarly, use AC_TRY_KBUILD instead of AC_TRY_COMPILE when checking
for an SELinux kernel, since AC_TRY_COMPILE doesn't call into kbuild
and won't get the correct kernel header paths.
This is part of the fix for Debian Bug#521745 and has been included in
the Debian package since 1.4.10+dfsg1-1.
Reviewed-on: http://gerrit.openafs.org/5
Verified-by: Russ Allbery <rra@stanford.edu>
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Aaron M. Ucko [Tue, 7 Jul 2009 00:51:00 +0000]
Build shadow header files when necessary on Linux
The current kernel module build infrastructure relies on the ability to
create symlinks from known directory names used in the AFS code to the
actual locations of the kernel header files. This breaks if there is no
single kernel header tree and instead multiple trees are layered together
by kbuild using compile-time -I include paths.
Attempt to detect this case by seeing if linux/types.h is in the kernel
header directory where we expect it. If not, rather than creating
symlinks for h, sys, and netinet, create directories and populate them
with single-line headers that just include the corresponding linux/*.h
header. The list of headers for which to do this is generated dynamically
by analyzing the AFS kernel source code and looking for relevant #include
directives.
This patch has been part of the Debian OpenAFS package since
1.4.10+dfsg1-1. The check for whether we have layered kernel header trees
may be specific to Debian and may require modification later if other
Linux distributions do something similar.
FIXES 124583
Reviewed-on: http://gerrit.openafs.org/6
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Verified-by: Derrick Brashear <shadow@dementia.org>
Simon Wilkinson [Thu, 9 Jul 2009 14:08:32 +0000]
Remove the RCSID macro
The move to git means that we can no longer populate the RCSID
macro in the way that it was used with CVS. This patch simply
removes the macro from every file, except where it contains
information from upstream (and it's in a comment).
Reviewed-on: http://gerrit.openafs.org/14
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Russ Allbery [Tue, 7 Jul 2009 01:41:39 +0000]
Build and install PIC versions of libafsrpc and libafsauthent
To include AFS code in loadable modules such as PAM modules, NSS modules,
or Perl/Python/PHP/Ruby extensions, it needs to be built PIC or one must
link with the AFS shared libraries. Since we haven't historically been
that great about maintaining the shared library ABI, it's nice to have
static libraries built with PIC code that can be linked into such modules.
Based on a patch by Garrett Wollman updated with the build system changes
that happened after 1.4.
Make shlib makefiles have clean rules for PIC libraries.
Make RedHat specfile know how to deal with PIC libraries.
Reviewed-on: http://gerrit.openafs.org/8
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Simon Wilkinson [Thu, 9 Jul 2009 12:17:27 +0000]
Prototype the afsmonitor directory
Prototypes and code cleanup for afsmonitor
Reviewed-on: http://gerrit.openafs.org/13
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Andrew Deason [Tue, 7 Jul 2009 22:34:17 +0000]
Always display vnode accesses in vos output
Vos was not displaying the "N accesses in the past day (i.e., vnode
references)" message when updateDate was unset. Fix that.
FIXES 125064
Reviewed-on: http://gerrit.openafs.org/9
Verified-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Andrew Deason [Wed, 8 Jul 2009 21:15:37 +0000]
Correcting formatting typo in vos addsite manpage
Reviewed-on: http://gerrit.openafs.org/12
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Andrew Deason [Wed, 8 Jul 2009 21:07:58 +0000]
Fixing manpage for vos addsite -valid
The -valid switch to vos addsite doesn't take an argument, and it is
optional. Correcting documentation to reflect that.
Reviewed-on: http://gerrit.openafs.org/11
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Russ Allbery [Tue, 7 Jul 2009 00:19:26 +0000]
Search for the Linux version in the correct header
src/config/linux-version already had support for handling either versioned
or unversioned kernel source directories, but the grep for UTS_RELEASE
was unconditionally done against the versioned source tree, ignoring the
previous determination of where the header file was.
Instead, check instead the header file location that we'd previously
determined.
This patch has been tested in the Debian OpenAFS 1.4.11~pre3+dfsg-1
package.
Reviewed-on: http://gerrit.openafs.org/4
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Jason Edgecombe [Tue, 7 Jul 2009 01:26:30 +0000]
Fixed a minor grammatical error in the voz_zap man page
Reviewed-on: http://gerrit.openafs.org/7
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Simon Wilkinson [Mon, 6 Jul 2009 12:52:21 +0000]
Remove CVS ignore files
Now we're in git we don't need any cvsignore files any more...
Reviewed-on: http://gerrit.openafs.org/1
Verified-by: Derrick Brashear <shadow@gmail.com>
Reviewed-by: Derrick Brashear <shadow@gmail.com>
Simon Wilkinson [Mon, 6 Jul 2009 13:38:42 +0000]
Revise git ignore files
Revise our git ignores to match the current state of the tree, and include
entires in the top level for all of the 'dest' directories for all of the
architectures we claim to support.
Reviewed-on: http://gerrit.openafs.org/2
Reviewed-by: Derrick Brashear <shadow@gmail.com>
Verified-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Jeffrey Altman [Sat, 4 Jul 2009 04:45:37 +0000]
windows-optimizations-
20090703
LICENSE MIT
when performing offline volume checks, do so in most recently used order
if the system is entering suspend state, short circuit the background
daemon operations to avoid extra work that is going to fail when the
network is shutdown behind the back of the service.
Simon Wilkinson [Fri, 3 Jul 2009 14:16:53 +0000]
linux-vnop-return-value-cleanup-
20090703
LICENSE IPL10
rework all linux vnode ops so the vulnerability we previously had can't
recur later just because someone makes a change that would leak a negative
error
Andrew Deason [Fri, 3 Jul 2009 14:03:57 +0000]
viced-ubik-clientdestroy-null-
20090703
LICENSE IPL10
FIXES 125020
null ubik client point when it's freed in hpr_End to avoid a null deref later
Derrick Brashear [Fri, 3 Jul 2009 13:56:43 +0000]
redhat-spec-manpage-updates-
20090703
LICENSE IPL10
add missing manpages to srpm
Jeffrey Altman [Wed, 1 Jul 2009 22:14:42 +0000]
wix-manpages-chgrp-chown-
20090701
LICENSE MIT
add fs_chgrp.html and fs_chown.html man pages
Jeffrey Altman [Wed, 1 Jul 2009 22:12:10 +0000]
manpages-fs-chown-chgrp-
20090701
LICENSE BSD
Add new man pages for fs chown and chgrp on Windows.
Update titles for Windows only commands to indicate they are Windows only.
Marc Dionne [Wed, 1 Jul 2009 21:56:48 +0000]
linux-keyring-export-check-
20090701
LICENSE IPL10
FIXES 125001
check for key_type_keyring being exported; only use it if so
Jeffrey Altman [Wed, 1 Jul 2009 21:25:28 +0000]
windows-fs-chown-chgrp-
20090701
LICENSE MIT
On Windows there is no chown or chgrp command that can be used to
change the owner or group of an object in AFS. Therefore we
add them to the fs command.
Usage: fs chown -owner <user name or id> [-path <dir/file path>+] [-literal] [-help]
Where: -literal literal evaluation of mountpoints and symlinks
Usage: fs chgrp -group <user/group name or id> [-path <dir/file path>+] [-literal] [-help]
Where: -literal literal evaluation of mountpoints and symlinks
Jeffrey Altman [Wed, 1 Jul 2009 02:44:05 +0000]
windows-cellconfig-
20090630
LICENSE MIT
nul terminate the correct variable
Jeffrey Altman [Tue, 30 Jun 2009 19:11:28 +0000]
windows-dfs-file-set-warning-
20090630
LICENSE MIT
Add a debug log warning if the target volume is a DFS File Set.
If so, the client will not properly protect against information
leakage or properly deal with directory name caching, symlinks,
and other behavioral differences between AFS and DFS.
Jeffrey Altman [Tue, 30 Jun 2009 18:59:43 +0000]
windows-smb-
20090630
LICENSE MIT
Be sure to call smb_ReleaseVCNoLock before we drop the smb_rctLock.
christof.hanke@rzg.mpg.de [Mon, 29 Jun 2009 21:24:23 +0000]
rpmlint-try2-
20090629
LICENSE IPL10
FIXES 124951
remove unneeded return; fix iob initialization for curpag pioctl
Jeffrey Altman [Mon, 29 Jun 2009 20:38:17 +0000]
windows-dcache-prefer-xdata-error-
20090629
LICENSE MIT
FIXES 125018
Fix issue reported by Marc Dionne. RXAFS_FetchData and RXAFS_StoreData
return access denied errors that are not reported by the subsequent
call to rx_EndCall which should be preferred.
Derrick Brashear [Mon, 29 Jun 2009 16:19:59 +0000]
revert-voldump-v-tag-generation-
20090629
LICENSE IPL10
FIXES 18349
generating v tags is currently incompatible. revert this for now
Marc Dionne [Mon, 29 Jun 2009 14:58:58 +0000]
rcu-patch-fallout-
20090629
LICENSE IPL10
FIXES 124996
massaging this for 1.5.x/head caused some fallout. fix doubled endif, and
install_session_keyring arguments
Jeffrey Hutzelman [Mon, 29 Jun 2009 07:03:09 +0000]
cellservdb-
20090629
CellServDB from central.org dated 29 Jun 2009
Jeffrey Altman [Mon, 29 Jun 2009 04:27:41 +0000]
windows-shutdown-
20090628
LICENSE MIT
short circuit on-going offline volume checks once a shutdown has begun.
Jeffrey Altman [Mon, 29 Jun 2009 04:25:16 +0000]
windows-hard-link-count-
20090628
LICENSE MIT
cm_Link() is used to create hard links. It did not apply the updated
link target status info to the target cm_scache_t object. As a result
the linkCount would be incorrect.
cm_Unlink() did not take linkCount into account. It did not reduce the
locally known linkCount, nor did it invalidate any currently known
callback. As a result the linkCount would be incorrect.
Jeffrey Altman [Sun, 28 Jun 2009 05:15:31 +0000]
windows-multi-homed-callbacks-
20090627
LICENSE MIT
Properly handle callbacks from multi-homed file servers.
Comparing cm_server_t pointers is insufficient. For a multi-homed
server there will be multiple entries. The UUID for all of the
equivalent entries will be the same. What matters is not that
the pointers are the same but whether in the case of UUID labeled
servers that the UUIDs match.
Add cm_ServerEqual() to perform the comparison.
Jeffrey Altman [Fri, 26 Jun 2009 15:11:10 +0000]
windows-callback-server-tracking-for-readonly-vols-
20090626
LICENSE MIT
Readonly volume callbacks apply to every cm_scache_t from the
same volume. We were already tracking the cbExpires time in
the cm_volume_t. We need to also track the cbServerp in the
cm_volume_t so that the cm_scache_t objects can be assigned
the correct server from which the callback was issued.
Add cbServerpRO field to the cm_volume_t. Bump the memory
map version to force a rebuild of the cache data.
Jeffrey Altman [Fri, 26 Jun 2009 14:14:47 +0000]
windows-cell-config-clones-
20090626
LICENSE MIT
Add support for parsing clones from the CellServDB file.
Derrick Brashear [Thu, 25 Jun 2009 13:13:14 +0000]
allow-gcpags-disabling--at-compile-
20090624
LICENSE IPL10
put this back as was for now; if we want to undef, we can do it later, completely
christof.hanke@rzg.mpg.de [Thu, 25 Jun 2009 00:14:43 +0000]
pag-get-lint-
20090623
LICENSE IPL10
FIXES 124951
make things happy for rpmlint again (wrong initialization)
Marc Dionne [Wed, 24 Jun 2009 22:53:40 +0000]
linux-rcu-read-lock-export-
20090623
LICENSE IPL10
FIXES 124986
deal with rcu_read_lock() becoming GPLONLY
Harald Barth [Wed, 24 Jun 2009 22:44:56 +0000]
fbsd61-stdlib-proto-define-
20090623
LICENSE IPL10
FIXES 124952
add define to make stdlib have malloc prototype
Andrew Deason [Wed, 24 Jun 2009 22:38:15 +0000]
osol-solookup-
20090624
LICENSE IPL10
FIXES 124924
update for new opensolaris solookup function signature
Jeffrey Altman [Wed, 24 Jun 2009 16:15:39 +0000]
util-snprintf-replacement-
20090624
LICENSE BSD
1. Add a test program for *printf functionality. util/tests/snprintf_test.c
2. Replace OpenAFS implementation of afs_*printf() with Heimdal's version.
3. Add support to Heimdal's version to support:
- floating point
- OpenAFS %I ipv4 address formatting (dotted notation and hostname lookup)
- Microsoft's I32 and I64 integer size modifiers
With these changes OpenAFS gains:
- output that is compliant with standard *printf implementations.
the previous implementation had justification, padding and case
errors.
- support for a NULL buffer which computes the required size based
upon the input format and arguments. the previous implementation
would crash.
- support for additional format types.
- OpenAFS specific implementations of vasnprintf(), vasprintf(),
asprintf(), and asnprintf().
Jeffrey Altman [Wed, 24 Jun 2009 15:47:29 +0000]
windows-config-amd64-
20090624
LICENSE MIT
amd64 uses 64-bit pointers. Define AFS_64BITPOINTER_ENV.
Marc Dionne [Mon, 22 Jun 2009 16:25:23 +0000]
linux-call-inode-setattr-op-
20090622
LICENSE IPL10
FIXES 124942
call inode's setattr op instead of just inode_setattr, when one is available.
needed for xfs, notably also will cause truncates to be journalled for ext3,
which may solve some existing issues
Jeffrey Altman [Fri, 19 Jun 2009 04:08:08 +0000]
cellconfig-gethostbyname-
20090618
LICENSE MIT
The CellServDB processing in auth/cellconfig and WINNT/afsd/cm_config
differ in one important way. cellconfig uses the IP addresses specified
in the CellServDB file and ignores the host name; whereas cm_config
calls gethostbyname() on the host name and falls back to the specified
address only if gethostbyname() fails.
This commit modifies cellconfig to use gethostbyname() calls on the
host names when the client CellServDB file is being used. The server
CellServDB file is left alone because ubik servers need to be given
the exact list of ip addresses specified by the administrator and
there is no method of indicating clones to other servers using DNS.
This change permits a greater resilency to cell server configuration
changes due to IP address renumbering as the DNS names in the CellServDB
file can be CNAME or A records.
A host name can be resolved to multiple IP addresses and all of the
addresses will be added to the hostAddr list for the cell provided
that they do not exceed the maximum number of hosts. If the same
host name is listed multiple times the duplicate IP addresses will
be ignored.
The behavior of all tools that use CellServDB files on Windows will now
be consistent.
Jeffrey Altman [Thu, 18 Jun 2009 06:04:29 +0000]
windows-netidmgr-
20090617
LICENSE MIT
permit building with a broader range of visual studio versions
Jeffrey Altman [Thu, 18 Jun 2009 00:45:36 +0000]
windows-testcellconf-
20090617
LICENSE MIT
make testcellconf work on Windows
Jeffrey Altman [Tue, 16 Jun 2009 23:40:38 +0000]
windows-kauth-cell-search-registry-
20090616
LICENSE MIT
add registry based cell search to ka_UserAuthenticateGeneral2()
which is used by klog() and afslogon.dll when no kerberos support
is available.
Jeffrey Altman [Tue, 16 Jun 2009 23:37:49 +0000]
windows-client-config-cell-search-registry-
20090616
LICENSE MIT
Add registry based cell search functionality to afs_config.exe
even though the tool is close to useless at this point.
Jeffrey Altman [Tue, 16 Jun 2009 22:57:08 +0000]
windows-netidmgr-cell-search-registry-
20090616
LICENSE MIT
Forgot to update the afs provider to support registry based cellservdb
lookups
Andrew Deason [Tue, 16 Jun 2009 19:09:43 +0000]
ubik-fix-allbetter-loglevels-
20090616
LICENSE IPL10
FIXES 124938
make allBetter log more sensibly; right now it's very loud. move it to level 25
Derrick Brashear [Tue, 16 Jun 2009 19:08:11 +0000]
afs-snrpintf-support-percentp-for-ptrs-
20090616
LICENSE IPL10
so we can portably log pointers
Jeffrey Altman [Tue, 16 Jun 2009 05:59:22 +0000]
windows-conn-analyze-
20090615
LICENSE MIT
When processing RX_CALL_TIMEOUT, if there is no fid specified its a vldb
rpc and we should retry. If there is a fid and the volume is a readonly
volume then we should also retry. Only fail if the request has no alternate
server to look at.
When processing RX_CALL_DEAD, log the fact that the call is dead.
When processing any other RX error between -2 and -64, do not force
a new connection to the same server. Mark the server down and retry
with a new server if possible.
Jeffrey Altman [Tue, 16 Jun 2009 05:56:19 +0000]
windows-cellservdb-rank-
20090615
LICENSE MIT
When inserting a new vldb server, if the rank is 0 (unknown), do not
override the default rank assigned by cm_NewServer(). Doing so erases
the randomized ranking.
Simon Wilkinson [Mon, 15 Jun 2009 23:29:29 +0000]
gitignore-
20090615
LICENSE IPL10
make gitignore files
Jeffrey Altman [Mon, 15 Jun 2009 14:47:00 +0000]
windows-installer-nsis-
20090615
LICENSE MIT
reorder some operations and make sure that directories are created
before the installer attempts to generate files into them.
Jeffrey Altman [Mon, 15 Jun 2009 02:57:17 +0000]
windows-callback-handling-
20090614
LICENSE MIT
Turn SRXAFSCB_InitCallBackState3() into the primary function for
processing InitCallBackStateX RPCs. InitCallBackState3 accepts an
optional server uuid which can be used instead of the IP address
to locate a matching server object. If the RPC comes from a server
that we know of, we can restrict the calback state initialization
to cm_scache_t objects on that file server. If the request comes
from a server that we know nothing about and a uuid was specified,
we can ignore it.
During callback revocation, make use of the cell associated with
the server to restrict the revocation to cm_scache_t objects in
the one cell. This is especially important for readonly volume
callbacks since volume ids are shared across multiple cells.
Add a missing case where the cm_volume_t cbExpiresRO time should
be set to the cm_scache_t cbExpires time.
Jeffrey Altman [Mon, 15 Jun 2009 02:02:59 +0000]
windows-server-find-by-uuid-
20090614
LICENSE MIT
Add cm_FindServerByUuid(). This function is similar to cm_FindServerByIP()
but uses the server's known uuid instead which is constant across multi-
homed systems.
Jeffrey Altman [Mon, 15 Jun 2009 01:56:22 +0000]
windows-server-xdr-free-
20090614
LICENSE MIT
when releasing the capabilities memory allocation use xdr_free() not
the free() of the afsd_service.exe module.
Derrick Brashear [Thu, 11 Jun 2009 20:39:53 +0000]
vnode-disk-object-name-hi-length-field-
20090611
LICENSE IPL10
reserved6 is used for the high portion of the 64 bit length. make the
structure reflect it.
Andrew Deason [Thu, 11 Jun 2009 15:25:15 +0000]
dafs-create-volumes-online-
20090611
LICENSE IPL10
FIXES 124492
newly created volumes were not marked "not in use" by the volserver, so the
fileserver would not take them. fix it.
Andrew Deason [Thu, 11 Jun 2009 15:19:15 +0000]
bosserver-invoke-salvager-fully-specifying-force-
20090611
LICENSE IPL10
FIXES 124916
bos salvage can invoke salvager with -f (instead of -force) which is no
longer unique. fix that.
Jeffrey Altman [Wed, 10 Jun 2009 18:08:19 +0000]
windows-cache-validation-
20090610
LICENSE MIT
correct cell validation to avoid false detection of infinite loops
if a cm_cell_t object had to be freed.
add newlines to output of volumeHashTableSize and cellHashTableSize
Derrick Brashear [Tue, 9 Jun 2009 22:34:54 +0000]
aix-dest-make-audit-object-dir-
20090609
LICENSE IPL10
now make dest works on aix 6 again
Derrick Brashear [Tue, 9 Jun 2009 22:30:28 +0000]
aix6-no-vprintf-but-strict-kernel-prototypes-
20090609
LICENSE IPL10
alas, we can't use varargs style prototypes since we can't handle the args!
Derrick Brashear [Tue, 9 Jun 2009 22:10:54 +0000]
excise-cplusplus-comments-from-kernel-
20090609
LICENSE IPL10
aix6 compiler doesn't allow // style comments
Derrick Brashear [Tue, 9 Jun 2009 22:05:20 +0000]
aix6-kernel-varargs-prototypes-ok-
20090609
LICENSE IPL10
varargs style prototypes are ok in the aix6 kernel env
Jeffrey Altman [Tue, 9 Jun 2009 21:11:04 +0000]
windows-freelance-default-cell-
20090609
LICENSE MIT
If a freelance mount point does not specify a cell name, default to
the workstation cell.
Derrick Brashear [Tue, 9 Jun 2009 20:25:47 +0000]
aix6-tsm41-makefile-flub-
20090609
LICENSE IPL10
add missing quoting
Derrick Brashear [Tue, 9 Jun 2009 14:46:51 +0000]
tsm41-makefile-fix-
20090609
LICENSE IPL10
fix form of case statement in makefile for tsm41
Jeffrey Altman [Tue, 9 Jun 2009 00:58:10 +0000]
windows-dirty-buffers-
20090608
LICENSE MIT
In the buf_IncrSync thread, if the volume is known to be unavailable
do not attempt to write the buffer. Just skip it.
In buf_Sync(), if we are shutting down and a buffer is left dirty,
log a message to the Windows Event Log indicating that the dirty buffer
was lost.
Mike Meffie [Mon, 8 Jun 2009 23:39:51 +0000]
man-page-xstat-fs-test-
20090608
LICENSE IPL10
FIXES 124905
Document xstat_fs_test collection 3, which returns callback statistics
from the file server (useful for tuning).
Jeffrey Altman [Mon, 8 Jun 2009 23:09:19 +0000]
windows-cell-locking-
20090608
LICENSE MIT
FIXES 124910
cm_cellLock protects the cm_cell_t fields allNextp, nameNextp, idNextp,
and freeNextp. Therefore, a write lock must be obtained whenever those
items may change. This patch makes that consistent.
This patch also fixes an out of order lock acquisition and removes
cm_cell_t objects from the id and name hash tables before freeing them.
Jeffrey Altman [Mon, 8 Jun 2009 22:42:01 +0000]
windows-search-cell-registry-
20090608
LICENSE MIT
do not clear the newCellNamep buffer on error.
that is inconsistent with the other SearchCell functions
and breaks "fs newcell".
Derrick Brashear [Mon, 8 Jun 2009 20:47:14 +0000]
aix-kopenafs-also-correct-directory-
20090608
LICENSE IPL10
also make this include syscall.s from the right place.
Derrick Brashear [Mon, 8 Jun 2009 05:44:23 +0000]
kopenafs-set-sflags-
20090607
LICENSE IPL10
make kopenafs build on aix
Jeffrey Altman [Mon, 8 Jun 2009 03:34:28 +0000]
windows-notes-
20090607
LICENSE MIT
synchronize with the 1.5 branch
Jeffrey Altman [Mon, 8 Jun 2009 03:15:12 +0000]
windows-sync-head-with-1_5-
20090607
LICENSE MIT
Synchronize the build system from 1.5 branch to the head
Jeffrey Altman [Mon, 8 Jun 2009 03:08:33 +0000]
doc-man-pages-windows-
20090607
LICENSE MIT
dpass and package docs removed from repository.
do not attempt to build them.
Jeffrey Altman [Mon, 8 Jun 2009 02:22:09 +0000]
windows-buf-infinite-looping-on-dirty-buffers-
20090607
LICENSE MIT
If there are dirty buffers when the file server becomes unresponsive,
the cache manager will attempt to write them repeatedly resulting in
use of 100% of the cpu of the machine until the file server becomes
responsive.
This patch reduces the cpu utilization by ensuring that only the first
in a list of buffers on the same file needs to fail with timed out,
all down, all busy, all offline, or clock skew. The other dirty buffers
will just be skipped. A small delay is enforced in the buf_IncrSync
thread between invocation.
This patch is not a complete fix for the problem. The buf_IncrSync
thread needs to become more intelligent in order to avoid attempts to
write to volumes that are known to be inaccessible.
Derrick Brashear [Sat, 6 Jun 2009 01:10:46 +0000]
viced-cblater-unmark-
20090605
LICENSE IPL10
make things match 1.5.x: unmark entries FE_LATER when they get unchained