--- /dev/null
+#
+# This is the root .gitignore for OpenAFS.
+#
+# Please don't add files that are generated in specific subdirectories
+# here. This file should only contain rules for the entire tree,
+# and entries specific to the top level directory.
+#
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+# General rules
+
+.*
+*.orig
+*.rej
+*.o
+*.a
+*.so
+*.sl
+*.so.*
+*.xdr.c
+*.cs.c
+*.ss.c
+*~
+lex.yy.c
+y.tab.c
+y.tab.h
+Makefile
+RX_component_version_number.c
+AFS_component_version_number.c
+AFS_component_version_number.h
+
+!.gitignore
+!.cvsignore
+!.splintrc
+
+# Top level files
+/aclocal.m4
+/config.log
+/config.cache
+/config.status
+/configure
+/configure-libafs
+/include
+/lib
+/autom4te.cache
+/ID
+/TAGS
+/NTLang.bat
+/NTMakefile
+/golast.bat
+
+# Destination build directories
+/amd64_linux26
+/hp_ux102
+/hp_ux110
+/i386_linux22
+/i386_linux24
+/i386_linux26
+/i386_umlinux22
+/i386_umlinux24
+/parisc_linux24
+/sgi_65
+/sun4x_56
+/sun4x_57
+
SOLARIS_UFSVFS_HAS_DQRWLOCK
SOLARIS_PROC_HAS_P_COREFILE
SOLARIS_FS_HAS_FS_ROLLED
+ SOLARIS_SOLOOKUP_TAKES_SOCKPARAMS
;;
*-sunos*)
MKAFS_OSTYPE=SUNOS
LINUX_KERNEL_PAGE_FOLLOW_LINK
LINUX_KERNEL_HLIST_UNHASHED
LINUX_KEY_TYPE_H_EXISTS
+ LINUX_EXPORTS_KEY_TYPE_KEYRING
LINUX_NEED_RHCONFIG
LINUX_RECALC_SIGPENDING_ARG_TYPE
LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_PARENT
m4_include([src/cf/solaris-dqrwlock.m4])
m4_include([src/cf/solaris-fs-rolled.m4])
m4_include([src/cf/solaris-pcorefile.m4])
+m4_include([src/cf/solaris-solookup.m4])
m4_include([acinclude.m4])
# Define the identity of the package.
PACKAGE=openafs
- VERSION=1.4.11pre1
+ VERSION=1.4.11pre3
cat >>confdefs.h <<_ACEOF
ac_config_headers="$ac_config_headers src/config/afsconfig.h"
-MACOS_VERSION=1.4.11fc1
+MACOS_VERSION=1.4.11fc3
LINUX_PKGVER=1.4.11
#LINUX_PKGREL=1.1
-LINUX_PKGREL=0.pre1
+LINUX_PKGREL=0.pre3
#define STRUCT_FS_HAS_FS_ROLLED 1
_ACEOF
+fi
+
+
+{ echo "$as_me:$LINENO: checking whether solookup takes a sockparams" >&5
+echo $ECHO_N "checking whether solookup takes a sockparams... $ECHO_C" >&6; }
+if test "${ac_cv_solaris_solookup_takes_sockparams+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#define _KERNEL
+#include <sys/systm.h>
+#include <sys/socketvar.h>
+int
+main ()
+{
+struct sockparams *sp;
+(void) solookup(AF_INET, SOCK_DGRAM, 0, &sp);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_solaris_solookup_takes_sockparams=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_solaris_solookup_takes_sockparams=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+{ echo "$as_me:$LINENO: result: $ac_cv_solaris_solookup_takes_sockparams" >&5
+echo "${ECHO_T}$ac_cv_solaris_solookup_takes_sockparams" >&6; }
+if test "$ac_cv_solaris_solookup_takes_sockparams" = "yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define SOLOOKUP_TAKES_SOCKPARAMS 1
+_ACEOF
+
fi
;;
cat >>confdefs.h <<\_ACEOF
#define KEY_TYPE_H_EXISTS 1
+_ACEOF
+
+ fi
+
+ { echo "$as_me:$LINENO: checking for exported key_type_keyring" >&5
+echo $ECHO_N "checking for exported key_type_keyring... $ECHO_C" >&6; }
+ if test "${ac_cv_linux_exports_key_type_keyring+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+
+ if test $AFS_SYSKVERS -ge 26 ; then
+ rm -fr conftest.dir
+ if test "x$ac_linux_kbuild_requires_extra_cflags" = "xyes" ; then
+ CFLAGS_PREFIX='EXTRA_'
+ fi
+ if mkdir conftest.dir &&
+ cat >conftest.dir/Makefile <<_ACEOF &&
+${CFLAGS_PREFIX}CFLAGS += $CPPFLAGS
+
+obj-m += conftest.o
+_ACEOF
+ cat >conftest.dir/conftest.c <<\_ACEOF &&
+/* confdefs.h */
+_ACEOF
+ cat confdefs.h >>conftest.dir/conftest.c &&
+ cat >>conftest.dir/conftest.c <<\_ACEOF &&
+/* end confdefs.h */
+#include <linux/module.h>
+
+#ifdef KEY_TYPE_H_EXISTS
+#include <linux/key-type.h>
+#endif
+#include <linux/key.h>
+
+void conftest(void)
+{
+
+printk("%s", key_type_keyring.name);
+
+}
+
+MODULE_LICENSE("http://www.openafs.org/dl/license10.html");
+_ACEOF
+ echo make -C $LINUX_KERNEL_BUILD M=$SRCDIR_PARENT/conftest.dir modules KBUILD_VERBOSE=1 >&5 &&
+ make -C $LINUX_KERNEL_BUILD M=$SRCDIR_PARENT/conftest.dir modules KBUILD_VERBOSE=1 >&5 2>conftest.err &&
+ ! grep -i "WARNING: .* undefined!$" conftest.err >/dev/null 2>&1
+ then ac_cv_linux_exports_key_type_keyring=yes
+ else
+ sed '/^ *+/d' conftest.err >&5
+ echo "$as_me: failed using Makefile:" >&5
+ sed 's/^/| /' conftest.dir/Makefile >&5
+ echo "$as_me: and program was:" >&5
+ sed 's/^/| /' conftest.dir/conftest.c >&5
+ ac_cv_linux_exports_key_type_keyring=no
+ fi; rm -fr conftest.err conftest.dir
+ else
+
+ ac_save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="-I$LINUX_KERNEL_PATH/include -D__KERNEL__ -Werror-implicit-function-declaration $CPPFLAGS"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+#include <linux/kernel.h>
+
+#ifdef KEY_TYPE_H_EXISTS
+#include <linux/key-type.h>
+#endif
+#include <linux/key.h>
+int
+main ()
+{
+
+printk("%s", key_type_keyring.name);
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_linux_exports_key_type_keyring=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_linux_exports_key_type_keyring=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CPPFLAGS="$ac_save_CPPFLAGS"
+ fi
+fi
+
+ { echo "$as_me:$LINENO: result: $ac_cv_linux_exports_key_type_keyring" >&5
+echo "${ECHO_T}$ac_cv_linux_exports_key_type_keyring" >&6; }
+ if test "x$ac_cv_linux_exports_key_type_keyring" = "xyes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define EXPORTED_KEY_TYPE_KEYRING 1
_ACEOF
fi
# Define the identity of the package.
PACKAGE=openafs-libafs
- VERSION=1.4.11pre1
+ VERSION=1.4.11pre3
cat >>confdefs.h <<_ACEOF
ac_config_headers="$ac_config_headers src/config/afsconfig.h"
-MACOS_VERSION=1.4.11fc1
+MACOS_VERSION=1.4.11fc3
LINUX_PKGVER=1.4.11
#LINUX_PKGREL=1.1
-LINUX_PKGREL=0.pre1
+LINUX_PKGREL=0.pre3
#define STRUCT_FS_HAS_FS_ROLLED 1
_ACEOF
+fi
+
+
+{ echo "$as_me:$LINENO: checking whether solookup takes a sockparams" >&5
+echo $ECHO_N "checking whether solookup takes a sockparams... $ECHO_C" >&6; }
+if test "${ac_cv_solaris_solookup_takes_sockparams+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#define _KERNEL
+#include <sys/systm.h>
+#include <sys/socketvar.h>
+int
+main ()
+{
+struct sockparams *sp;
+(void) solookup(AF_INET, SOCK_DGRAM, 0, &sp);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_solaris_solookup_takes_sockparams=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_solaris_solookup_takes_sockparams=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+{ echo "$as_me:$LINENO: result: $ac_cv_solaris_solookup_takes_sockparams" >&5
+echo "${ECHO_T}$ac_cv_solaris_solookup_takes_sockparams" >&6; }
+if test "$ac_cv_solaris_solookup_takes_sockparams" = "yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define SOLOOKUP_TAKES_SOCKPARAMS 1
+_ACEOF
+
fi
;;
cat >>confdefs.h <<\_ACEOF
#define KEY_TYPE_H_EXISTS 1
+_ACEOF
+
+ fi
+
+ { echo "$as_me:$LINENO: checking for exported key_type_keyring" >&5
+echo $ECHO_N "checking for exported key_type_keyring... $ECHO_C" >&6; }
+ if test "${ac_cv_linux_exports_key_type_keyring+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+
+ if test $AFS_SYSKVERS -ge 26 ; then
+ rm -fr conftest.dir
+ if test "x$ac_linux_kbuild_requires_extra_cflags" = "xyes" ; then
+ CFLAGS_PREFIX='EXTRA_'
+ fi
+ if mkdir conftest.dir &&
+ cat >conftest.dir/Makefile <<_ACEOF &&
+${CFLAGS_PREFIX}CFLAGS += $CPPFLAGS
+
+obj-m += conftest.o
+_ACEOF
+ cat >conftest.dir/conftest.c <<\_ACEOF &&
+/* confdefs.h */
+_ACEOF
+ cat confdefs.h >>conftest.dir/conftest.c &&
+ cat >>conftest.dir/conftest.c <<\_ACEOF &&
+/* end confdefs.h */
+#include <linux/module.h>
+
+#ifdef KEY_TYPE_H_EXISTS
+#include <linux/key-type.h>
+#endif
+#include <linux/key.h>
+
+void conftest(void)
+{
+
+printk("%s", key_type_keyring.name);
+
+}
+
+MODULE_LICENSE("http://www.openafs.org/dl/license10.html");
+_ACEOF
+ echo make -C $LINUX_KERNEL_BUILD M=$SRCDIR_PARENT/conftest.dir modules KBUILD_VERBOSE=1 >&5 &&
+ make -C $LINUX_KERNEL_BUILD M=$SRCDIR_PARENT/conftest.dir modules KBUILD_VERBOSE=1 >&5 2>conftest.err &&
+ ! grep -i "WARNING: .* undefined!$" conftest.err >/dev/null 2>&1
+ then ac_cv_linux_exports_key_type_keyring=yes
+ else
+ sed '/^ *+/d' conftest.err >&5
+ echo "$as_me: failed using Makefile:" >&5
+ sed 's/^/| /' conftest.dir/Makefile >&5
+ echo "$as_me: and program was:" >&5
+ sed 's/^/| /' conftest.dir/conftest.c >&5
+ ac_cv_linux_exports_key_type_keyring=no
+ fi; rm -fr conftest.err conftest.dir
+ else
+
+ ac_save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="-I$LINUX_KERNEL_PATH/include -D__KERNEL__ -Werror-implicit-function-declaration $CPPFLAGS"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+#include <linux/kernel.h>
+
+#ifdef KEY_TYPE_H_EXISTS
+#include <linux/key-type.h>
+#endif
+#include <linux/key.h>
+int
+main ()
+{
+
+printk("%s", key_type_keyring.name);
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_linux_exports_key_type_keyring=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_linux_exports_key_type_keyring=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CPPFLAGS="$ac_save_CPPFLAGS"
+ fi
+fi
+
+ { echo "$as_me:$LINENO: result: $ac_cv_linux_exports_key_type_keyring" >&5
+echo "${ECHO_T}$ac_cv_linux_exports_key_type_keyring" >&6; }
+ if test "x$ac_cv_linux_exports_key_type_keyring" = "xyes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define EXPORTED_KEY_TYPE_KEYRING 1
_ACEOF
fi
AC_INIT(src/libafs/Makefile.common.in)
-AM_INIT_AUTOMAKE(openafs-libafs,1.4.11pre1)
+AM_INIT_AUTOMAKE(openafs-libafs,1.4.11pre3)
AC_CONFIG_HEADER(src/config/afsconfig.h)
-MACOS_VERSION=1.4.11fc1
+MACOS_VERSION=1.4.11fc3
LINUX_PKGVER=1.4.11
#LINUX_PKGREL=1.1
-LINUX_PKGREL=0.pre1
+LINUX_PKGREL=0.pre3
AC_SUBST(MACOS_VERSION)
AC_SUBST(LINUX_PKGVER)
AC_INIT(src/config/stds.h)
-AM_INIT_AUTOMAKE(openafs,1.4.11pre1)
+AM_INIT_AUTOMAKE(openafs,1.4.11pre3)
AC_CONFIG_HEADER(src/config/afsconfig.h)
-MACOS_VERSION=1.4.11fc1
+MACOS_VERSION=1.4.11fc3
LINUX_PKGVER=1.4.11
#LINUX_PKGREL=1.1
-LINUX_PKGREL=0.pre1
+LINUX_PKGREL=0.pre3
AC_SUBST(MACOS_VERSION)
AC_SUBST(LINUX_PKGVER)
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+html
+install-man
+man1
+man5
+man8
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+*.html
+*.pdf
+version.xml
+
+!Makefile
--- /dev/null
+Makefile
+*.html
+*.pdf
+version.xml
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+*.html
+*.pdf
+version.xml
+
+!Makefile
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+*.html
+*.pdf
+version.xml
+
+!Makefile
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/helper-splint.sh
+/dauth
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+!.classpath
+!.project
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/afs_trace.h
+/afs_trace.msf
+/afszcm.cat
+/unified_afs.c
+/unified_afs.h
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/osi_vfs.h
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/LINUX/osi_file.c,v 1.19.2.19 2009/01/15 13:27:43 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/LINUX/osi_file.c,v 1.19.2.20 2009/06/22 15:25:43 shadow Exp $");
#ifdef AFS_LINUX24_ENV
#include "h/module.h" /* early to avoid printf->printk mapping */
code = inode_change_ok(inode, &newattrs);
if (!code)
#ifdef INODE_SETATTR_NOT_VOID
- code = inode_setattr(inode, &newattrs);
+#if defined(AFS_LINUX26_ENV)
+ if (inode->i_op && inode->i_op->setattr)
+ code = inode->i_op->setattr(afile->filp->f_dentry, &newattrs);
+ else
+#endif
+ code = inode_setattr(inode, &newattrs);
#else
- inode_setattr(inode, &newattrs);
+ inode_setattr(inode, &newattrs);
#endif
unlock_kernel();
if (!code)
#endif
RCSID
- ("$Header: /cvs/openafs/src/afs/LINUX/osi_groups.c,v 1.25.2.20 2009/03/23 15:17:02 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/LINUX/osi_groups.c,v 1.25.2.22 2009/07/01 20:57:15 shadow Exp $");
#include "afs/sysincludes.h"
#include "afsincludes.h"
static struct key_type *__key_type_keyring = &key_type_keyring;
static int
-install_session_keyring(struct task_struct *task, struct key *keyring)
+install_session_keyring(struct key *keyring)
{
struct key *old;
char desc[20];
/* create an empty session keyring */
not_in_quota = KEY_ALLOC_IN_QUOTA;
- sprintf(desc, "_ses.%u", task->tgid);
+ sprintf(desc, "_ses.%u", current->tgid);
#if defined(KEY_ALLOC_NEEDS_STRUCT_TASK)
keyring = key_alloc(__key_type_keyring, desc,
- task_uid(task), task_gid(task), task,
+ current_uid(), current_gid(), current,
(KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL,
not_in_quota);
#elif defined(KEY_ALLOC_NEEDS_CRED)
keyring = key_alloc(__key_type_keyring, desc,
- task_uid(task), task_gid(task), current_cred(),
+ current_uid(), current_gid(), current_cred(),
(KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL,
not_in_quota);
#else
keyring = key_alloc(__key_type_keyring, desc,
- task_uid(task), task_gid(task),
+ current_uid(), current_gid(),
(KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL,
not_in_quota);
#endif
}
/* install the keyring */
- spin_lock_irq(&task->sighand->siglock);
- old = task_session_keyring(task);
+ spin_lock_irq(¤t->sighand->siglock);
+ old = task_session_keyring(current);
smp_wmb();
- task_session_keyring(task) = keyring;
- spin_unlock_irq(&task->sighand->siglock);
+ task_session_keyring(current) = keyring;
+ spin_unlock_irq(¤t->sighand->siglock);
if (old)
key_put(old);
#ifdef LINUX_KEYRING_SUPPORT
if (code == 0) {
- (void) install_session_keyring(current, NULL);
+ (void) install_session_keyring(NULL);
if (current_session_keyring()) {
struct key *key;
void osi_keyring_init(void)
{
+#if !defined(EXPORTED_KEY_TYPE_KEYRING)
struct task_struct *p;
/* If we can't lock the tasklist, either with its explicit lock,
rcu_read_unlock();
# endif
}
+#endif
#endif
register_key_type(&key_type_afs_pag);
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/LINUX/osi_vnodeops.c,v 1.81.2.82 2009/06/03 05:41:59 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/LINUX/osi_vnodeops.c,v 1.81.2.83 2009/07/03 13:18:32 shadow Exp $");
#include "afs/sysincludes.h"
#include "afsincludes.h"
extern int afs_notify_change(struct dentry *dp, struct iattr *iattrp);
+
+/* This function converts a positive error code from AFS into a negative
+ * code suitable for passing into the Linux VFS layer. It checks that the
+ * error code is within the permissable bounds for the ERR_PTR mechanism.
+ *
+ * _All_ error codes which come from the AFS layer should be passed through
+ * this function before being returned to the kernel.
+ */
+
+static inline int afs_convert_code(int code) {
+ if ((code >= 0) && (code <= MAX_ERRNO))
+ return -code;
+ else
+ return -EIO;
+}
+
static ssize_t
afs_linux_read(struct file *fp, char *buf, size_t count, loff_t * offp)
{
code = afs_VerifyVCache(vcp, &treq);
if (code)
- code = -code;
+ code = afs_convert_code(code);
else {
osi_FlushPages(vcp, credp); /* ensure stale pages are gone */
AFS_GUNLOCK();
afs_FakeOpen(vcp);
ReleaseWriteLock(&vcp->lock);
if (code)
- code = -code;
+ code = afs_convert_code(code);
else {
AFS_GUNLOCK();
#ifdef DO_SYNC_READ
code = afs_InitReq(&treq, credp);
crfree(credp);
- if (code)
+ if (code) {
+ code = afs_convert_code(code);
goto out1;
+ }
afs_InitFakeStat(&fakestat);
code = afs_EvalFakeStat(&avc, &fakestat, &treq);
- if (code)
+ if (code) {
+ code = afs_convert_code(code);
goto out;
+ }
/* update the cache entry */
tagain:
code = afs_VerifyVCache(avc, &treq);
- if (code)
+ if (code) {
+ code = afs_convert_code(code);
goto out;
+ }
/* get a reference to the entire directory */
tdc = afs_GetDCache(avc, (afs_size_t) 0, &treq, &origOffset, &tlen, 1);
return code;
out_err:
- code = -code;
+ code = afs_convert_code(code);
goto out;
}
#endif
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
static int
#endif
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
static int
unlock_kernel();
#endif
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
flp->fl_end = flock.l_start + flock.l_len;
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
#ifdef STRUCT_FILE_OPERATIONS_HAS_FLOCK
flp->fl_pid = flock.l_pid;
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
#endif
AFS_GUNLOCK();
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
#if !defined(AFS_LINUX24_ENV)
#endif
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
#if defined(AFS_LINUX26_ENV)
unlock_kernel();
#endif
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
/* afs_linux_lookup */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,10)
if (code == ENOENT)
return ERR_PTR(0);
- else if ((code >= 0) && (code <= MAX_ERRNO))
- return ERR_PTR(-code);
- else
- return ERR_PTR(-EIO);
+ else
+ return ERR_PTR(afs_convert_code(code));
#else
if (code == ENOENT)
code = 0;
- return -code;
+ return afs_convert_code(code);
#endif
}
AFS_GUNLOCK();
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
static int
unlock_kernel();
#endif
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
code = afs_symlink(VTOAFS(dip), name, &vattr, target, credp);
AFS_GUNLOCK();
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
static int
unlock_kernel();
#endif
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
static int
}
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
#endif
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
if (!code)
return maxlen - tuio.uio_resid;
else
- return -code;
+ return afs_convert_code(code);
}
#if !defined(USABLE_KERNEL_PAGE_SYMLINK_CACHE)
}
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
if (!afs_InitReq(&treq, credp))
code = afs_DoPartialWrite(vcp, &treq);
}
- code = code ? -code : count - tuio.uio_resid;
+ code = code ? afs_convert_code(code) : count - tuio.uio_resid;
vcp->states &= ~CPageWrite;
ReleaseWriteLock(&vcp->lock);
ReleaseWriteLock(&vcp->lock);
}
- code = code ? -code : count - tuio.uio_resid;
+ code = code ? afs_convert_code(code) : count - tuio.uio_resid;
afs_Trace4(afs_iclSetp, CM_TRACE_UPDATEPAGE, ICL_TYPE_POINTER, vcp,
ICL_TYPE_POINTER, pp, ICL_TYPE_INT32, page_count(pp),
ICL_TYPE_INT32, code);
AFS_GUNLOCK();
crfree(credp);
- return -code;
+ return afs_convert_code(code);
}
#if defined(AFS_LINUX24_ENV) && !(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) && defined(HAVE_WRITE_BEGIN))
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_create.c,v 1.16.2.11 2008/12/29 21:26:25 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_create.c,v 1.16.2.12 2009/06/24 21:30:19 shadow Exp $");
#include "afs/sysincludes.h" /* Standard vendor system headers */
#include "afsincludes.h" /* Afs-based standard headers */
afs_int32 origCBs, origZaps, finalZaps;
struct vrequest treq;
register afs_int32 code;
- register struct conn *tc;
+ register struct afs_conn *tc;
struct VenusFid newFid;
struct AFSStoreStatus InStatus;
struct AFSFetchStatus OutFidStatus, OutDirStatus;
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_dirops.c,v 1.14.2.6 2007/12/08 18:00:45 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_dirops.c,v 1.14.2.7 2009/06/24 21:30:19 shadow Exp $");
#include "afs/sysincludes.h" /* Standard vendor system headers */
#include "afsincludes.h" /* Afs-based standard headers */
{
struct vrequest treq;
register afs_int32 code;
- register struct conn *tc;
+ register struct afs_conn *tc;
struct VenusFid newFid;
register struct dcache *tdc;
afs_size_t offset, len;
register struct dcache *tdc;
register struct vcache *tvc = NULL;
register afs_int32 code;
- register struct conn *tc;
+ register struct afs_conn *tc;
afs_size_t offset, len;
struct AFSFetchStatus OutDirStatus;
struct AFSVolSync tsync;
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_flock.c,v 1.24.2.11 2009/06/03 18:26:02 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_flock.c,v 1.24.2.12 2009/06/24 21:30:19 shadow Exp $");
#include "afs/sysincludes.h" /* Standard vendor system headers */
#include "afsincludes.h" /* Afs-based standard headers */
HandleFlock(register struct vcache *avc, int acom, struct vrequest *areq,
pid_t clid, int onlymine)
{
- struct conn *tc;
+ struct afs_conn *tc;
struct SimpleLocks *slp, *tlp, **slpp;
afs_int32 code;
struct AFSVolSync tsync;
static int
GetFlockCount(struct vcache *avc, struct vrequest *areq)
{
- register struct conn *tc;
+ register struct afs_conn *tc;
register afs_int32 code;
struct AFSFetchStatus OutStatus;
struct AFSCallBack CallBack;
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_link.c,v 1.15.2.5 2007/12/08 18:00:45 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_link.c,v 1.15.2.6 2009/06/24 21:30:19 shadow Exp $");
#include "afs/sysincludes.h" /* Standard vendor system headers */
#include "afsincludes.h" /* Afs-based standard headers */
struct vrequest treq;
register struct dcache *tdc;
register afs_int32 code;
- register struct conn *tc;
+ register struct afs_conn *tc;
afs_size_t offset, len;
struct AFSFetchStatus OutFidStatus, OutDirStatus;
struct AFSVolSync tsync;
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_lookup.c,v 1.50.2.24 2009/04/06 22:53:16 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_lookup.c,v 1.50.2.25 2009/06/24 21:30:19 shadow Exp $");
#include "afs/sysincludes.h" /* Standard vendor system headers */
#include "afsincludes.h" /* Afs-based standard headers */
AFSCBFids fidParm; /* file ID parm for bulk stat */
AFSBulkStats statParm; /* stat info parm for bulk stat */
int fidIndex = 0; /* which file were stating */
- struct conn *tcp = 0; /* conn for call */
+ struct afs_conn *tcp = 0; /* conn for call */
AFSCBs cbParm; /* callback parm for bulk stat */
struct server *hostp = 0; /* host we got callback from */
long startTime; /* time we started the call,
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_remove.c,v 1.31.2.17 2007/12/19 20:59:48 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_remove.c,v 1.31.2.18 2009/06/24 21:30:19 shadow Exp $");
#include "afs/sysincludes.h" /* Standard vendor system headers */
#include "afsincludes.h" /* Afs-based standard headers */
struct vrequest *treqp)
{
register afs_int32 code;
- register struct conn *tc;
+ register struct afs_conn *tc;
struct AFSFetchStatus OutDirStatus;
struct AFSVolSync tsync;
XSTATS_DECLS;
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_rename.c,v 1.16.2.12 2007/12/08 18:00:45 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_rename.c,v 1.16.2.13 2009/06/24 21:30:19 shadow Exp $");
#include "afs/sysincludes.h" /* Standard vendor system headers */
#include "afsincludes.h" /* Afs-based standard headers */
afsrename(struct vcache *aodp, char *aname1, struct vcache *andp,
char *aname2, struct AFS_UCRED *acred, struct vrequest *areq)
{
- register struct conn *tc;
+ register struct afs_conn *tc;
register afs_int32 code;
afs_int32 returnCode;
int oneDir, doLocally;
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_symlink.c,v 1.19.2.7 2008/06/09 03:30:59 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_symlink.c,v 1.19.2.8 2009/06/24 21:30:19 shadow Exp $");
#include "afs/sysincludes.h" /* Standard vendor system headers */
#include "afsincludes.h" /* Afs-based standard headers */
afs_uint32 now = 0;
struct vrequest treq;
afs_int32 code;
- struct conn *tc;
+ struct afs_conn *tc;
struct VenusFid newFid;
struct dcache *tdc;
afs_size_t offset, len;
struct afs_exporter *exporter; /* more info about the exporter for the remote user */
};
-struct conn {
+struct afs_conn {
/* Per-connection block. */
- struct conn *next; /* Next dude same server. */
+ struct afs_conn *next; /* Next dude same server. */
struct unixuser *user; /* user validated with respect to. */
struct rx_connection *id; /* RPC connid. */
struct srvAddr *srvr; /* server associated with this conn */
struct srvAddr *next_bkt; /* next item in hash bucket */
struct srvAddr *next_sa; /* another interface on same host */
struct server *server; /* back to parent */
- struct conn *conns; /* All user connections to this server */
+ struct afs_conn *conns; /* All user connections to this server */
afs_int32 sa_ip; /* Host addr in network byte order */
u_short sa_iprank; /* indiv ip address priority */
u_short sa_portal; /* port addr in network byte order */
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/afs_analyze.c,v 1.22.2.8 2008/10/27 23:54:06 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/afs_analyze.c,v 1.22.2.9 2009/06/24 21:30:14 shadow Exp $");
#include "afs/stds.h"
#include "afs/sysincludes.h" /* Standard vendor system headers */
VLDB_Same(struct VenusFid *afid, struct vrequest *areq)
{
struct vrequest treq;
- struct conn *tconn;
+ struct afs_conn *tconn;
int i, type = 0;
union {
struct vldbentry tve;
* if this is a temporary or permanent error.
*------------------------------------------------------------------------*/
int
-afs_Analyze(register struct conn *aconn, afs_int32 acode,
+afs_Analyze(register struct afs_conn *aconn, afs_int32 acode,
struct VenusFid *afid, register struct vrequest *areq, int op,
afs_int32 locktype, struct cell *cellp)
{
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/afs_conn.c,v 1.13.2.5 2008/10/20 16:41:00 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/afs_conn.c,v 1.13.2.6 2009/06/24 21:30:14 shadow Exp $");
#include "afs/stds.h"
#include "afs/sysincludes.h" /* Standard vendor system headers */
unsigned int VNOSERVERS = 0;
-struct conn *
+struct afs_conn *
afs_Conn(register struct VenusFid *afid, register struct vrequest *areq,
afs_int32 locktype)
{
u_short fsport = AFS_FSPORT;
struct volume *tv;
- struct conn *tconn = NULL;
+ struct afs_conn *tconn = NULL;
struct srvAddr *lowp = NULL;
struct unixuser *tu;
int notbusy;
} /*afs_Conn */
-struct conn *
+struct afs_conn *
afs_ConnBySA(struct srvAddr *sap, unsigned short aport, afs_int32 acell,
struct unixuser *tu, int force_if_down, afs_int32 create,
afs_int32 locktype)
{
- struct conn *tc = 0;
+ struct afs_conn *tc = 0;
struct rx_securityClass *csec; /*Security class object */
int isec; /*Security index */
int service;
* gets set, marking the time of its ``birth''.
*/
UpgradeSToWLock(&afs_xconn, 37);
- tc = (struct conn *)afs_osi_Alloc(sizeof(struct conn));
- memset((char *)tc, 0, sizeof(struct conn));
+ tc = (struct afs_conn *)afs_osi_Alloc(sizeof(struct afs_conn));
+ memset((char *)tc, 0, sizeof(struct afs_conn));
tc->user = tu;
tc->port = aport;
* Having force... true and UTokensBad true simultaneously means that the tokens
* went bad and we're supposed to create a new, unauthenticated, connection.
*/
-struct conn *
+struct afs_conn *
afs_ConnByHost(struct server *aserver, unsigned short aport, afs_int32 acell,
struct vrequest *areq, int aforce, afs_int32 locktype)
{
struct unixuser *tu;
- struct conn *tc = 0;
+ struct afs_conn *tc = 0;
struct srvAddr *sa = 0;
AFS_STATCNT(afs_ConnByHost);
} /*afs_ConnByHost */
-struct conn *
+struct afs_conn *
afs_ConnByMHosts(struct server *ahosts[], unsigned short aport,
afs_int32 acell, register struct vrequest *areq,
afs_int32 locktype)
{
register afs_int32 i;
- register struct conn *tconn;
+ register struct afs_conn *tconn;
register struct server *ts;
/* try to find any connection from the set */
void
-afs_PutConn(register struct conn *ac, afs_int32 locktype)
+afs_PutConn(register struct afs_conn *ac, afs_int32 locktype)
{
AFS_STATCNT(afs_PutConn);
ac->refCount--;
void
ForceNewConnections(struct srvAddr *sap)
{
- struct conn *tc = 0;
+ struct afs_conn *tc = 0;
if (!sap)
return; /* defensive check */
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/afs_dcache.c,v 1.42.2.24 2008/08/26 14:02:10 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/afs_dcache.c,v 1.42.2.25 2009/06/24 21:30:14 shadow Exp $");
#include "afs/sysincludes.h" /*Standard vendor system headers */
#include "afsincludes.h" /*AFS-based standard headers */
struct tlocal1 *tsmall = 0;
register struct dcache *tdc;
register struct osi_file *file;
- register struct conn *tc;
+ register struct afs_conn *tc;
int downDCount = 0;
struct server *newCallback = NULL;
char setNewCallback;
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/afs_init.c,v 1.28.2.9 2009/03/20 02:32:59 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/afs_init.c,v 1.28.2.10 2009/06/24 21:30:14 shadow Exp $");
#include "afs/stds.h"
#include "afs/sysincludes.h" /* Standard vendor system headers */
*/
{
struct server *ts, *nts;
- struct conn *tc, *ntc;
+ struct afs_conn *tc, *ntc;
register struct afs_cbr *tcbrp, *tbrp;
for (i = 0; i < NSERVERS; i++) {
AFS_GUNLOCK();
rx_DestroyConnection(tc->id);
AFS_GLOCK();
- afs_osi_Free(tc, sizeof(struct conn));
+ afs_osi_Free(tc, sizeof(struct afs_conn));
tc = ntc;
}
}
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/afs_osi.c,v 1.48.2.21 2009/05/12 13:03:47 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/afs_osi.c,v 1.48.2.22 2009/06/24 21:54:51 shadow Exp $");
#include "afs/sysincludes.h" /* Standard vendor system headers */
#include "afsincludes.h" /* Afs-based standard headers */
void
afs_osi_TraverseProcTable()
{
-#if !defined(LINUX_KEYRING_SUPPORT)
+#if !defined(LINUX_KEYRING_SUPPORT) && (!defined(STRUCT_TASK_HAS_CRED) || defined(EXPORTED_RCU_READ_LOCK))
struct task_struct *p;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) && defined(EXPORTED_TASKLIST_LOCK)
return rv;
}
#elif defined(AFS_LINUX22_ENV)
+#if !defined(LINUX_KEYRING_SUPPORT) && (!defined(STRUCT_TASK_HAS_CRED) || defined(EXPORTED_RCU_READ_LOCK))
const struct AFS_UCRED *
afs_osi_proc2cred(AFS_PROC * pr)
{
return rv;
}
+#endif
#else
const struct AFS_UCRED *
afs_osi_proc2cred(AFS_PROC * pr)
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/afs_pioctl.c,v 1.81.2.36 2009/06/03 15:14:38 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/afs_pioctl.c,v 1.81.2.39 2009/06/29 20:24:47 shadow Exp $");
#include "afs/sysincludes.h" /* Standard vendor system headers */
#ifdef AFS_OBSD_ENV
DECL_PIOCTL(PSetAcl)
{
register afs_int32 code;
- struct conn *tconn;
+ struct afs_conn *tconn;
struct AFSOpaque acl;
struct AFSVolSync tsync;
struct AFSFetchStatus OutStatus;
struct AFSVolSync tsync;
struct AFSFetchStatus OutStatus;
afs_int32 code;
- struct conn *tconn;
+ struct afs_conn *tconn;
struct AFSFid Fid;
XSTATS_DECLS;
char volName[32];
char *offLineMsg = afs_osi_Alloc(256);
char *motd = afs_osi_Alloc(256);
- register struct conn *tc;
+ register struct afs_conn *tc;
register afs_int32 code = 0;
struct AFSFetchVolumeStatus volstat;
register char *cp;
char volName[32];
char *offLineMsg = afs_osi_Alloc(256);
char *motd = afs_osi_Alloc(256);
- register struct conn *tc;
+ register struct afs_conn *tc;
register afs_int32 code = 0;
struct AFSFetchVolumeStatus volstat;
struct AFSStoreVolumeStatus storeStat;
{
int i;
struct srvAddr *sa;
- struct conn *tc;
+ struct afs_conn *tc;
struct unixuser *tu;
afs_int32 retValue;
DECL_PIOCTL(PRemoveCallBack)
{
- register struct conn *tc;
+ register struct afs_conn *tc;
register afs_int32 code = 0;
struct AFSCallBack CallBacks_Array[1];
struct AFSCBFids theFids;
char *bufp;
struct sysname_info sysState;
afs_size_t offset, len;
- register struct conn *tc;
+ register struct afs_conn *tc;
register struct dcache *tdc;
register struct vcache *tvc;
struct AFSFetchStatus OutDirStatus;
{
register afs_int32 code, code1;
afs_int32 bytes;
- struct conn *tc;
+ struct afs_conn *tc;
struct rx_call *tcall;
struct AFSVolSync tsync;
struct AFSFetchStatus OutStatus;
DECL_PIOCTL(PFsCmd)
{
register afs_int32 code;
- struct conn *tc;
+ struct afs_conn *tc;
struct vcache *tvc;
struct FsCmdInputs *Inputs;
struct FsCmdOutputs *Outputs;
int srvAddrCount;
struct server *ts;
struct srvAddr *sa;
- struct conn *tc;
+ struct afs_conn *tc;
afs_int32 i, j;
struct unixuser *tu;
struct srvAddr **addrs;
/* afs_analyze.c */
extern void init_et_to_sys_error(void);
extern void afs_FinalizeReq(struct vrequest *areq);
-extern int afs_Analyze(register struct conn *aconn, afs_int32 acode,
+extern int afs_Analyze(register struct afs_conn *aconn, afs_int32 acode,
struct VenusFid *afid, register struct vrequest *areq,
int op, afs_int32 locktype, struct cell *cellp);
extern int afs_CheckCode(afs_int32 acode, struct vrequest *areq, int where);
extern afs_int32 cryptall;
extern afs_rwlock_t afs_xinterface;
extern afs_rwlock_t afs_xconn;
-extern struct conn *afs_Conn(register struct VenusFid *afid,
+extern struct afs_conn *afs_Conn(register struct VenusFid *afid,
register struct vrequest *areq,
afs_int32 locktype);
-extern struct conn *afs_ConnBySA(struct srvAddr *sap, unsigned short aport,
+extern struct afs_conn *afs_ConnBySA(struct srvAddr *sap, unsigned short aport,
afs_int32 acell, struct unixuser *tu,
int force_if_down, afs_int32 create,
afs_int32 locktype);
-extern struct conn *afs_ConnByMHosts(struct server *ahosts[],
+extern struct afs_conn *afs_ConnByMHosts(struct server *ahosts[],
unsigned short aport, afs_int32 acell,
register struct vrequest *areq,
afs_int32 locktype);
-extern struct conn *afs_ConnByHost(struct server *aserver,
+extern struct afs_conn *afs_ConnByHost(struct server *aserver,
unsigned short aport, afs_int32 acell,
struct vrequest *areq, int aforce,
afs_int32 locktype);
-extern void afs_PutConn(register struct conn *ac, afs_int32 locktype);
+extern void afs_PutConn(register struct afs_conn *ac, afs_int32 locktype);
extern void ForceNewConnections(struct srvAddr *sap);
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/afs_segments.c,v 1.16.2.7 2009/05/12 16:42:48 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/afs_segments.c,v 1.16.2.8 2009/06/24 21:30:14 shadow Exp $");
#include "afs/sysincludes.h" /*Standard vendor system headers */
#include "afsincludes.h" /*AFS-based standard headers */
int
afs_StoreMini(register struct vcache *avc, struct vrequest *areq)
{
- register struct conn *tc;
+ register struct afs_conn *tc;
struct AFSStoreStatus InStatus;
struct AFSFetchStatus OutStatus;
struct AFSVolSync tsync;
int nomore;
unsigned int first = 0;
int *shouldwake;
- struct conn *tc;
+ struct afs_conn *tc;
struct osi_file *tfile;
struct rx_call *tcall;
XSTATS_DECLS;
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/afs_server.c,v 1.33.2.13 2008/06/29 03:26:04 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/afs_server.c,v 1.33.2.14 2009/06/24 21:30:14 shadow Exp $");
#include "afs/stds.h"
#include "afs/sysincludes.h" /* Standard vendor system headers */
CheckVLServer(register struct srvAddr *sa, struct vrequest *areq)
{
register struct server *aserver = sa->server;
- register struct conn *tc;
+ register struct afs_conn *tc;
register afs_int32 code;
AFS_STATCNT(CheckVLServer);
struct vrequest treq;
struct server *ts;
struct srvAddr *sa;
- struct conn *tc;
+ struct afs_conn *tc;
afs_int32 i, j;
afs_int32 code;
afs_int32 start, end = 0, delta;
char tbuffer[CVBS];
int srvAddrCount;
struct srvAddr **addrs;
- struct conn **conns;
+ struct afs_conn **conns;
int nconns;
struct rx_connection **rxconns;
afs_int32 *conntimer, *deltas, *results;
AFS_STATCNT(afs_CheckServers);
- conns = (struct conn **)0;
+ conns = (struct afs_conn **)0;
rxconns = (struct rx_connection **) 0;
conntimer = 0;
nconns = 0;
ReleaseReadLock(&afs_xsrvAddr);
ReleaseReadLock(&afs_xserver);
- conns = (struct conn **)afs_osi_Alloc(j * sizeof(struct conn *));
+ conns = (struct afs_conn **)afs_osi_Alloc(j * sizeof(struct afs_conn *));
rxconns = (struct rx_connection **)afs_osi_Alloc(j * sizeof(struct rx_connection *));
conntimer = (afs_int32 *)afs_osi_Alloc(j * sizeof (afs_int32));
deltas = (afs_int32 *)afs_osi_Alloc(j * sizeof (afs_int32));
}
afs_osi_Free(addrs, srvAddrCount * sizeof(*addrs));
- afs_osi_Free(conns, j * sizeof(struct conn *));
+ afs_osi_Free(conns, j * sizeof(struct afs_conn *));
afs_osi_Free(rxconns, j * sizeof(struct rx_connection *));
afs_osi_Free(conntimer, j * sizeof(afs_int32));
afs_osi_Free(deltas, j * sizeof(afs_int32));
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/afs_user.c,v 1.15.2.1 2006/12/20 20:09:06 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/afs_user.c,v 1.15.2.4 2009/06/25 12:13:34 shadow Exp $");
#include "afs/stds.h"
#include "afs/sysincludes.h" /* Standard vendor system headers */
register int i;
register struct server *ts;
register struct srvAddr *sa;
- register struct conn *tc, **lc;
+ register struct afs_conn *tc, **lc;
AFS_STATCNT(RemoveUserConns);
for (i = 0; i < NSERVERS; i++) {
AFS_GUNLOCK();
rx_DestroyConnection(tc->id);
AFS_GLOCK();
- afs_osi_Free(tc, sizeof(struct conn));
+ afs_osi_Free(tc, sizeof(struct afs_conn));
break; /* at most one instance per server */
} /*Found unreferenced connection for user */
} /*For each connection on the server */
{
int i;
struct srvAddr *sa;
- struct conn *tc;
+ struct afs_conn *tc;
AFS_STATCNT(afs_ResetUserConns);
ObtainReadLock(&afs_xsrvAddr);
/*
* LOCKS: afs_GCPAGs_perproc_func requires write lock on afs_xuser
*/
+#if !defined(LINUX_KEYRING_SUPPORT) && (!defined(STRUCT_TASK_HAS_CRED) || defined(EXPORTED_RCU_READ_LOCK))
void
afs_GCPAGs_perproc_func(AFS_PROC * pproc)
{
}
}
}
+#endif
/*
* Go through the process table, find all unused PAGs
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/afs_util.c,v 1.17.2.3 2006/03/09 06:41:33 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/afs_util.c,v 1.17.2.4 2009/06/24 21:30:14 shadow Exp $");
#include "afs/stds.h"
#include "afs/sysincludes.h" /* Standard vendor system headers */
{
struct srvAddr *sa;
struct server *ts;
- struct conn *tc;
+ struct afs_conn *tc;
for (i = 0; i < NSERVERS; i++) {
for (ts = afs_servers[i]; ts; ts = ts->next) {
if (ts->flags & SRVR_ISDOWN)
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/afs_vcache.c,v 1.65.2.55 2009/03/31 12:41:47 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/afs_vcache.c,v 1.65.2.56 2009/06/24 21:30:14 shadow Exp $");
#include "afs/sysincludes.h" /*Standard vendor system headers */
#include "afsincludes.h" /*AFS-based standard headers */
struct server *tsp;
int i;
struct vrequest treq;
- struct conn *tc;
+ struct afs_conn *tc;
int safety1, safety2, safety3;
XSTATS_DECLS;
if ((code = afs_InitReq(&treq, afs_osi_credp)))
{
register struct vcache *tvc;
register int i;
- register struct conn *tc;
+ register struct afs_conn *tc;
register afs_int32 code;
register struct AFS_UCRED *cred = NULL;
struct vrequest treq, ureq;
struct vrequest *areq)
{
afs_int32 code;
- struct conn *tc;
+ struct afs_conn *tc;
struct AFSFetchStatus OutStatus;
struct AFSVolSync tsync;
XSTATS_DECLS;
{
afs_int32 code;
afs_uint32 start;
- register struct conn *tc;
+ register struct afs_conn *tc;
struct AFSFetchStatus OutDirStatus;
XSTATS_DECLS;
if (!name)
{
int code;
afs_uint32 start = 0;
- register struct conn *tc;
+ register struct afs_conn *tc;
struct AFSCallBack CallBack;
struct AFSVolSync tsync;
struct volume *volp;
void
afs_StuffVcache(register struct VenusFid *afid,
struct AFSFetchStatus *OutStatus,
- struct AFSCallBack *CallBack, register struct conn *tc,
+ struct AFSCallBack *CallBack, register struct afs_conn *tc,
struct vrequest *areq)
{
register afs_int32 code, i, newvcache = 0;
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/afs/afs_volume.c,v 1.26.2.7 2007/01/25 11:24:30 shadow Exp $");
+ ("$Header: /cvs/openafs/src/afs/afs_volume.c,v 1.26.2.8 2009/06/24 21:30:14 shadow Exp $");
#include "afs/stds.h"
#include "afs/sysincludes.h" /* Standard vendor system headers */
struct uvldbentry *utve;
struct cell *tcell;
char *tbuffer, *ve;
- struct conn *tconn;
+ struct afs_conn *tconn;
struct vrequest treq;
if (strlen(aname) > VL_MAXNAMELEN) /* Invalid volume name */
struct cell *tcell, struct vrequest *areq)
{
register struct server *ts;
- struct conn *tconn;
+ struct afs_conn *tconn;
struct cell *cellp;
register int i, j;
afs_uint32 serverid;
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/afs.ppc_darwin.plist
+/afsd
+/vsys
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/afsmonitor
};
-typedef struct conn_rec conn_rec;
+typedef struct afs_conn_rec conn_rec;
typedef struct server_rec server_rec;
typedef struct request_rec request_rec;
typedef struct listen_rec listen_rec;
/* Things which are per connection
*/
-struct conn_rec {
+struct afs_conn_rec {
pool *pool;
server_rec *server;
const struct htaccess_result *next;
};
- typedef struct conn_rec conn_rec;
+ typedef struct afs_conn_rec conn_rec;
typedef struct server_rec server_rec;
typedef struct request_rec request_rec;
typedef struct listen_rec listen_rec;
/* Things which are per connection
*/
- struct conn_rec {
+ struct afs_conn_rec {
ap_pool *pool;
server_rec *server;
const struct htaccess_result *next;
};
- typedef struct conn_rec conn_rec;
+ typedef struct afs_conn_rec conn_rec;
typedef struct server_rec server_rec;
typedef struct request_rec request_rec;
typedef struct listen_rec listen_rec;
/* Things which are per connection
*/
- struct conn_rec {
+ struct afs_conn_rec {
ap_pool *pool;
server_rec *server;
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/aklog
+/asetkey
+/klog
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/acfg_errors.c
+/auth.h
+/cellconfig.h
+/copyauth
+/ktc_errors.c
+/setkey
#endif
RCSID
- ("$Header: /cvs/openafs/src/auth/ktc.c,v 1.15.2.13 2009/06/04 20:51:57 shadow Exp $");
+ ("$Header: /cvs/openafs/src/auth/ktc.c,v 1.15.2.14 2009/06/29 20:24:49 shadow Exp $");
#if defined(UKERNEL)
#include "afs/sysincludes.h"
afs_int32 pag;
/* now setup for the pioctl */
- iob.in = -1;
+ iob.in = NULL;
iob.in_size = 0;
iob.out = &pag;
iob.out_size = sizeof(afs_int32);
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/bnode.h
+/bos
+/bos_util
+/boserr.c
+/bosint.h
+/bosserver
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/fms
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/bumon.h
+/butc.h
+/butc_errs.c
+/butm.h
+/butm_errs.c
+/butx.h
+/butx_errs.c
+/tcdata.h
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/backup
+/bc.h
+/bucoord_errs.c
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/budb.h
+/budb_client.h
+/budb_errs.c
+/budb_errs.h
+/budb_server
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/butc
+/read_tape
if test "x$ac_cv_linux_struct_proc_dir_entry_has_owner" = "xyes"; then
AC_DEFINE([STRUCT_PROC_DIR_ENTRY_HAS_OWNER], 1, [define if struct proc_dir_entry has an owner member])
fi])
+
+AC_DEFUN([LINUX_EXPORTS_KEY_TYPE_KEYRING], [
+ AC_MSG_CHECKING([for exported key_type_keyring])
+ AC_CACHE_VAL([ac_cv_linux_exports_key_type_keyring], [
+ AC_TRY_KBUILD(
+[
+#ifdef KEY_TYPE_H_EXISTS
+#include <linux/key-type.h>
+#endif
+#include <linux/key.h>],
+[
+printk("%s", key_type_keyring.name);
+],
+ ac_cv_linux_exports_key_type_keyring=yes,
+ ac_cv_linux_exports_key_type_keyring=no)])
+ AC_MSG_RESULT($ac_cv_linux_exports_key_type_keyring)
+ if test "x$ac_cv_linux_exports_key_type_keyring" = "xyes"; then
+ AC_DEFINE([EXPORTED_KEY_TYPE_KEYRING], 1, [define if key_type_keyring is exported])
+ fi])
+
--- /dev/null
+AC_DEFUN([SOLARIS_SOLOOKUP_TAKES_SOCKPARAMS], [
+AC_MSG_CHECKING(whether solookup takes a sockparams)
+AC_CACHE_VAL(ac_cv_solaris_solookup_takes_sockparams,
+[
+AC_TRY_COMPILE(
+[#define _KERNEL
+#include <sys/systm.h>
+#include <sys/socketvar.h>],
+[struct sockparams *sp;
+(void) solookup(AF_INET, SOCK_DGRAM, 0, &sp);],
+ac_cv_solaris_solookup_takes_sockparams=yes,
+ac_cv_solaris_solookup_takes_sockparams=no)])
+AC_MSG_RESULT($ac_cv_solaris_solookup_takes_sockparams)
+if test "$ac_cv_solaris_solookup_takes_sockparams" = "yes"; then
+ AC_DEFINE(SOLOOKUP_TAKES_SOCKPARAMS, 1, [define if solookup takes a sockparams**])
+fi
+])
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/cmd.h
+/cmd_errors.c
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/compile_et
+/et_lex.lex.c
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/Makefile.*_*[0123456789]
+/Makefile.*_*[0123456789].in
+/Makefile.config
+/Makefile.version
+/Makefile.version-NOCML
+/afsconfig.h
+/afsconfig.h.in
+/config
+/mkvers
+/param.h.new
+/shlib-build
+/shlib-install
+/stamp-h1
/* define if your linux kernel exports kallsyms */
#undef EXPORTED_KALLSYMS_SYMBOL
+/* define if key_type_keyring is exported */
+#undef EXPORTED_KEY_TYPE_KEYRING
+
/* define if proc_root_fs is exported */
#undef EXPORTED_PROC_ROOT_FS
/* define if time_t is defined */
#undef SIZEOF_TIME_T
+/* define if solookup takes a sockparams** */
+#undef SOLOOKUP_TAKES_SOCKPARAMS
+
/* define if your statfs takes a dentry argument */
#undef STATFS_TAKES_DENTRY
#endif /* !defined(UKERNEL) */
+/* general user-space compiles */
+
+#if defined(UKERNEL) || !defined(KERNEL)
+#define STDLIB_HAS_MALLOC_PROTOS 1
+#endif
+
#endif /* AFS_PARAM_H */
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/fp.c
+/ip.c
+/key_perm.h
+/make_fp
+/make_ip
+/make_keyperm
+/make_odd
+/make_p
+/make_p_table
+/make_s_table
+/odd.h
+/p.c
+/p_table.h
+/s_table.h
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/dtest
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/cfgafs64
+/cfgexport64
+/export.ext.nonfs
+/export64.ext.nonfs
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/translate_et
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/Kcallback.h
+/Kvice.h
+/Kpagcb.h
+/afscbint.h
+/afsint.h
+/pagcb.h
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/fsprobe_test
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/gtxtest
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/Kkauth.h
+/ka-forwarder
+/kaerrors.c
+/kas
+/kaserver
+/kauth.h
+/kautils.h
+/kdb
+/klog
+/klog.krb
+/klogin
+/klogin.krb
+/knfs
+/kpasswd
+/kpwvalid
+/rebuild
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/test-setpag
+/test-unlog
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/afs_AdminBosErrors.c
+/afs_AdminBosErrors.h
+/afs_AdminCfgErrors.c
+/afs_AdminCfgErrors.h
+/afs_AdminClientErrors.c
+/afs_AdminClientErrors.h
+/afs_AdminCommonErrors.c
+/afs_AdminCommonErrors.h
+/afs_AdminKasErrors.c
+/afs_AdminKasErrors.h
+/afs_AdminMiscErrors.c
+/afs_AdminMiscErrors.h
+/afs_AdminPtsErrors.c
+/afs_AdminPtsErrors.h
+/afs_AdminUtilErrors.c
+/afs_AdminUtilErrors.h
+/afs_AdminVosErrors.c
+/afs_AdminVosErrors.h
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/cm_client_config
+/cm_list_cells
+/cm_local_cell
+/cm_server_prefs
+/rxdebug_basic_stats
+/rxdebug_conns
+/rxdebug_peers
+/rxdebug_rx_stats
+/rxdebug_supported_stats
+/rxdebug_version
+/rxstat_clear_peer
+/rxstat_clear_process
+/rxstat_disable_peer
+/rxstat_disable_process
+/rxstat_enable_peer
+/rxstat_enable_process
+/rxstat_get_peer
+/rxstat_get_process
+/rxstat_get_version
+/rxstat_query_peer
+/rxstat_query_process
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/afscp
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/MODLOAD
+/MODLOAD-*
+/MODLOAD32
+/MODLOAD64
+/Makefile.common
+/MakefileProto.*
+!/MakefileProto.*.in
+/afs
+/afsint
+/asm
+/asm-generic
+/config
+/export.h
+/export.exp
+/export64.exp
+/h
+/linux
+/net
+/netinet
+/rpc
+/sys
+/rx
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/Makefile.common
+/MakefileProto.*
+!/MakefileProto.*.in
+/UAFS
+/JUAFS
+/afs
+/afsint
+/config
+/des
+/h
+/inet
+/linktest
+/net
+/netinet
+/nfs
+/nsapi
+/rpc
+/rx
+/sys
+/ufs
+/export.exp
+/export.h
+/export64.exp
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/kseal
+/tokens
+/tokens.krb
+/unlog
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/rules
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/openafs.spec
-# Openafs Spec $Revision: 1.1.2.30 $
+# Openafs Spec $Revision: 1.1.2.31 $
# TEMPORARY fix for patch fuzz so we can build on Fedora 10
%define _default_patch_fuzz 2
%{pamdir}/pam_afs.so
%{initdir}/openafs-client
%{_mandir}/man1/cmdebug.*
+%{_mandir}/man1/copyauth.*
%{_mandir}/man1/up.*
%{_mandir}/man5/afs*
%{_mandir}/man5/cacheinfo.*
%{_mandir}/man8/afsd.*
+%{_mandir}/man8/rmtsysd.*
+%{_mandir}/man8/vsys.*
%{_mandir}/man5/CellAlias.*
%{_mandir}/man5/afszcm.cat.*
%{_mandir}/man8/prdb_check.*
%{_mandir}/man8/ptserver.*
%{_mandir}/man8/pt_util.*
+%{_mandir}/man8/restorevol.*
%{_mandir}/man8/salvager.*
%{_mandir}/man8/upclient.*
%{_mandir}/man8/upserver.*
%{_libdir}/librxstat.a
%{_libdir}/libubik.a
%{_mandir}/man1/rxgen.*
+%{_mandir}/man1/compile_et.*
%if %{build_dkmspkg}
%files -n dkms-%{name}
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/test_pam
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/fs_conv_sol26
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/Kptint.h
+/db_verify
+/pt_util
+/pterror.c
+/pterror.h
+/ptint.h
+/pts
+/ptserver
+/readgroup
+/readpwd
+/testpt
+/ptclient
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/rxdebug
+/rxdumptrace
+/rxperf
#include "afs/param.h"
RCSID
- ("$Header: /cvs/openafs/src/rx/SOLARIS/rx_knet.c,v 1.19.2.5 2008/07/07 17:15:37 shadow Exp $");
+ ("$Header: /cvs/openafs/src/rx/SOLARIS/rx_knet.c,v 1.19.2.6 2009/06/24 21:38:42 shadow Exp $");
#ifdef AFS_SUN5_ENV
#include "rx/rx_kcommon.h"
/*
* Function pointers for kernel socket routines
*/
+#ifdef SOLOOKUP_TAKES_SOCKPARAMS
+struct sonode *(*sockfs_socreate)
+ (struct sockparams *, int, int, int, int, int *) = NULL;
+int (*sockfs_solookup)
+ (int, int, int, struct sockparams **) = NULL;
+#else
struct sonode *(*sockfs_socreate)
(vnode_t *, int, int, int, int, struct sonode *, int *) = NULL;
struct vnode *(*sockfs_solookup)
(int, int, int, char *, int *) = NULL;
+#endif /* SOLOOKUP_TAKES_SOCKPARAMS */
int (*sockfs_sobind)
(struct sonode *, struct sockaddr *, int, int, int) = NULL;
int (*sockfs_sorecvmsg)
struct sockaddr_in addr;
int error;
int len;
+#ifdef SOLOOKUP_TAKES_SOCKPARAMS
+ struct sockparams *sp;
+#endif
AFS_STATCNT(osi_NewSocket);
if (sockfs_solookup == NULL) {
sockfs_solookup =
+#ifdef SOLOOKUP_TAKES_SOCKPARAMS
+ (int (*)())modlookup("sockfs", "solookup");
+#else
(struct vnode * (*)())modlookup("sockfs", "solookup");
+#endif
if (sockfs_solookup == NULL) {
return NULL;
}
}
#endif
+#ifdef SOLOOKUP_TAKES_SOCKPARAMS
+ error = sockfs_solookup(AF_INET, SOCK_DGRAM, 0, &sp);
+ if (error != 0) {
+ return NULL;
+ }
+
+ so = sockfs_socreate(sp, AF_INET, SOCK_DGRAM, 0, SOV_STREAM, &error);
+#else
accessvp = sockfs_solookup(AF_INET, SOCK_DGRAM, 0, "/dev/udp", &error);
if (accessvp == NULL) {
return NULL;
so = sockfs_socreate(accessvp, AF_INET, SOCK_DGRAM, 0, SOV_STREAM, NULL,
&error);
+#endif /* SOLOOKUP_TAKES_SOCKPARAMS */
+
if (so == NULL) {
return NULL;
}
}
int
-osi_FreeSocket(register osi_socket *asocket)
+osi_FreeSocket(register osi_socket asocket)
{
extern int rxk_ListenerPid;
struct sonode *so = (struct sonode *)asocket;
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/rxdebug
+/rxdumptrace
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/rxgen
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/crypt_conn.c
+/fcrypt.c
+/fcrypt.h
+/rxkad.h
+/rxkad_errs.c
+/sboxes.h
+/fc_test
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/rxstat.h
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/scout
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/pagsh
+/pagsh.krb
+/picobj
+/rmtsys.h
+/rmtsysd
+/afs.exp
+/afsl.exp
+/Krmtsys.h
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/budb.h
+/budb_client.h
+/budb_errs.c
+/budb_errs.h
+/budb_server
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/butc
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/xf_errs.c
+/xf_errs.h
+/OS.pm
+/Dirpath.pm
+/afsdump_dirlist
+/afsdump_extract
+/afsdump_scan
+/append-over-page
+/asu
+/blocks-new-file
+/create-dirs
+/create-files
+/create-remove
+/create-stat
+/create-symlinks
+/dumpscan_errs.c
+/dumpscan_errs.h
+/dumptool
+/dup2-and-unlog
+/echo-n
+/exit-wo-close
+/fchmod
+/fsx
+/hardlink1
+/hardlink2
+/hardlink4
+/hello-world
+/intr-read
+/kill-softer
+/kill-softly
+/large-dir
+/large-dir2
+/large-dir3
+/make-page
+/mkdir2
+/mkdir3
+/mmap-and-read
+/mmap-cat
+/mmap-shared-write
+/mmap-vs-read
+/mmap-vs-read2
+/mountpoint
+/pine
+/read-vs-mmap
+/read-vs-mmap2
+/read-write
+/readdir-vs-lstat
+/rename-under-feet
+/rename5
+/rename6
+/rm-rf
+/run-tests
+/still-there-p
+/strange-characters-c
+/symlink
+/test-parallel1
+/test-parallel2
+/test-setgroups
+/test-setpag
+/truncate
+/truncate-files
+/utime-dir
+/utime-file
+/write-closed
+/write-closed2
+/write-large
+/write-rand
+/write-ro-file
+/write-ucc
+/write3
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/Dirpath.pm
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+!.afs_state
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/db_verify
+/pt_util
+/pterror.c
+/pterror.h
+/ptint.h
+/pts
+/ptserver
+/readgroup
+/readpwd
+/testpt
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/fssync-debug
+/salvageserver
+/salvsync-debug
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/ubik.h
+/ubik_int.h
+/udebug
+/uerrors.c
+/utst_client
+/utst_int.h
+/utst_server
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/fileserver
+/state_analyzer
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/cnvldb
+/vl_errors.c
+/vlclient
+/vldb_check
+/vldbint.h
+/vlserver
+/vlserver.h
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/vl_errors.c
+/vlserver.h
+/volserver
+/vos
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/Kubik_int.h
+/ubik.h
+/ubik_int.h
+/udebug
+/uerrors.c
+/utst_client
+/utst_int.h
+/utst_server
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/upclient
+/update.h
+/upserver
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/uss
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/dirpath.h
+/sys
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/cmdebug
+/fs
+/fstrace
+/kdump-*
+/up
+/kdump
+/kdump64
+/livesys
#include <afs/param.h>
RCSID
- ("$Header: /cvs/openafs/src/venus/kdump.c,v 1.33.2.9 2008/10/03 20:40:05 shadow Exp $");
+ ("$Header: /cvs/openafs/src/venus/kdump.c,v 1.33.2.10 2009/06/24 21:30:20 shadow Exp $");
#include <stdio.h>
#include <errno.h>
T += j;
printf("%20s:\t%8d bytes\t[%d servers/%d bytes each]\n", "Server package",
j, i, sizeof(struct server));
- j = (Nconns * sizeof(struct conn));
+ j = (Nconns * sizeof(struct afs_conn));
T += j;
printf("%20s:\t%8d bytes\t[%d conns/%d bytes each]\n",
- "Connection package", j, Nconns, sizeof(struct conn));
+ "Connection package", j, Nconns, sizeof(struct afs_conn));
i = (AFS_NCBRS * sizeof(struct afs_cbr)) * (j =
afs_cmperfstats.
print_conns(kmem, srv, conns, Con, pnt)
int kmem, Con, pnt;
struct srvAddr *srv;
- struct conn *conns;
+ struct afs_conn *conns;
{
- struct conn *cep, ce, *centry = &ce;
+ struct afs_conn *cep, ce, *centry = &ce;
int i = 1;
- cep = (struct conn *)conns;
+ cep = (struct afs_conn *)conns;
if (pnt && Con != 2) {
if (cep)
printf("\tRPC connections for server %lx:\n", srv);
void
print_conn(kmem, conns, ptr, pnt)
int kmem, pnt;
- struct conn *conns, *ptr;
+ struct afs_conn *conns, *ptr;
{
if (!pnt)
return;
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/fulltest
+/getinitparams
+/idtest
+/owntest
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/vfsck
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/cbd
+/check_sysid
+/fileserver
+/fsprobe
#include <afs/param.h>
RCSID
- ("$Header: /cvs/openafs/src/viced/afsfileprocs.c,v 1.81.2.53 2009/03/25 13:07:27 shadow Exp $");
+ ("$Header: /cvs/openafs/src/viced/afsfileprocs.c,v 1.81.2.54 2009/07/03 13:04:17 shadow Exp $");
#include <stdio.h>
#include <stdlib.h>
/* Is it still necessary to drop this? We hit the net, we should... */
H_UNLOCK;
- if (uclient)
+ if (uclient) {
hpr_End(uclient);
+ uclient = NULL;
+ }
code = hpr_Initialize(&uclient);
if (!code)
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/cnvldb
+/vl_errors.c
+/vlclient
+/vldb_check
+/vldbint.h
+/vlserver
+/vlserver.h
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/salvager
+/volinfo
+/gi
+/fs_conv_sol26
+/fssync-debug
* backup purposes */
afs_int32 group; /* unix group */
afs_int32 vn_ino_hi; /* high part of 64 bit inode. */
- bit32 reserved6;
+ bit32 vn_length_hi; /* high part of 64 bit length */
/* Missing:
* archiving/migration
* encryption key
#define SIZEOF_SMALLVNODE (sizeof (struct Vnode))
#ifdef AFS_LARGEFILE_ENV
-#define VN_GET_LEN(N, V) FillInt64(N, (V)->disk.reserved6, (V)->disk.length)
-#define VNDISK_GET_LEN(N, V) FillInt64(N, (V)->reserved6, (V)->length)
-#define VN_SET_LEN(V, N) SplitInt64(N, (V)->disk.reserved6, (V)->disk.length)
-#define VNDISK_SET_LEN(V, N) SplitInt64(N, (V)->reserved6, (V)->length)
+#define VN_GET_LEN(N, V) FillInt64(N, (V)->disk.vn_length_hi, (V)->disk.length)
+#define VNDISK_GET_LEN(N, V) FillInt64(N, (V)->vn_length_hi, (V)->length)
+#define VN_SET_LEN(V, N) SplitInt64(N, (V)->disk.vn_length_hi, (V)->disk.length)
+#define VNDISK_SET_LEN(V, N) SplitInt64(N, (V)->vn_length_hi, (V)->length)
#else /* !AFS_LARGEFILE_ENV */
#define VN_GET_LEN(N, V) (N) = (V)->disk.length;
#define VNDISK_GET_LEN(N, V) (N) = (V)->length;
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/restorevol
+/volerr.c
+/volint.h
+/volser.h
+/volserver
+/vos
+/voldump
#include <afs/param.h>
RCSID
- ("$Header: /cvs/openafs/src/volser/dumpstuff.c,v 1.25.2.12 2008/10/10 14:43:04 shadow Exp $");
+ ("$Header: /cvs/openafs/src/volser/dumpstuff.c,v 1.25.2.13 2009/06/29 15:28:22 shadow Exp $");
#include <sys/types.h>
#include <ctype.h>
if (!ReadInt32(iodp, (afs_uint32 *) & vol->dayUse))
return VOLSERREAD_DUMPERROR;
break;
+ case 'V':
+ if (!ReadInt32(iodp, &trash/*volUpdateCounter*/))
+ return VOLSERREAD_DUMPERROR;
+ break;
}
}
iod_ungetc(iodp, tag);
--- /dev/null
+# After changing this file, please run
+# git ls-files -i --exclude-standard
+# to check that you haven't inadvertently ignored any tracked files.
+
+/xstat_cm_test
+/xstat_fs_test