# Systype-specific items
LINUX_KERNEL_PATH=@LINUX_KERNEL_PATH@
LINUX_VERSION=@LINUX_VERSION@
+DARWIN_INFOFILE=@DARWIN_INFOFILE@
# Other items
LIB_AFSDB=@LIB_AFSDB@
vfsck: vol
set -x; \
case ${SYS_NAME} in \
- sgi_* | *linux* | rs_aix42 | ppc_darwin* | hp_ux* | *fbsd* ) \
+ sgi_* | *linux* | rs_aix42 | ppc_darwin* | hp_ux* | *fbsd* | *_obsd* ) \
echo skip vfsck for ${SYS_NAME} ;; \
* ) \
${COMPILE_PART1} vfsck ${COMPILE_PART2} ;; \
${COMPILE_PART1} login ${COMPILE_PART2} ;; \
sun4x_* | hp_ux11* | *linux* | *fbsd* ) \
${COMPILE_PART1} pam ${COMPILE_PART2} ;; \
- ppc_darwin* ) \
+ ppc_darwin* | *_obsd* ) \
echo Skipping login for ${SYS_NAME} ;; \
* ) \
${COMPILE_PART1} login ${COMPILE_PART2} ;; \
[ -d libafs_tree/$$d ] || mkdir -p libafs_tree/$$d; \
done
for f in `cd src/libafs; find . -name '*.[ch]'` \
- Makefile.common Makefile.extradefs \
+ Makefile.common Makefile.extradefs ${DARWIN_INFOFILE} \
afs.shutdown afs.startup redhat.sh sgi_master sgi_system \
; do \
${INSTALL} -c -f src/libafs/$$f libafs_tree/$$f; \
libuafs: libuafs_setup ${UKERNELDIR}
set -x; \
case ${SYS_NAME} in \
- hp_ux102* ) \
+ hp_ux102* | *_obsd* ) \
echo Skipping libuafs for ${SYS_NAME} ;; \
* ) \
${COMPILE_PART1} libuafs ${COMPILE_PART2} ;; \
#include <afsconfig.h>
#include "../afs/param.h"
-RCSID("$Header: /tmp/cvstemp/openafs/src/afs/LINUX/osi_vnodeops.c,v 1.9 2001/09/11 15:47:37 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/afs/LINUX/osi_vnodeops.c,v 1.10 2001/09/20 06:47:38 hartmans Exp $");
#include "../afs/sysincludes.h"
#include "../afs/afsincludes.h"
ObtainWriteLock(&vcp->lock, 530);
vcp->m.Date = osi_Time(); /* set modification time */
afs_FakeClose(vcp, credp);
+ if (code>=0)
+ code2 = afs_DoPartialWrite(vcp, &treq);
+ if (code2 && code >=0)
+ code = (ssize_t) -code2;
ReleaseWriteLock(&vcp->lock);
afs_Trace4(afs_iclSetp, CM_TRACE_WRITEOP, ICL_TYPE_POINTER, vcp,
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
-<plist version="0.9">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>afs</string>
- <key>CFBundleIdentifier</key>
- <string>org.openafs.filesystems.afs</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>afs</string>
- <key>CFBundlePackageType</key>
- <string>KEXT</string>
- <key>CFBundleShortVersionString</key>
- <string>@VERSION@</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>@VERSION@</string>
- <key>OSBundleLibraries</key>
- <dict>
- <key>com.apple.kernel.bsd</key>
- <string>1.0.0b1</string>
- <key>com.apple.kernel.mach</key>
- <string>1.0.0b1</string>
- </dict>
-</dict>
-</plist>
+++ /dev/null
-{
- Description = "OpenAFS network file system";
- Provides = ("AFS");
- Requires = ("Resolver");
- OrderPreference = "None";
- Messages =
- {
- start = "Starting OpenAFS file system";
- stop = "Stopping OpenAFS file system";
- };
-}
+++ /dev/null
-{
- Description = "OpenAFS network file system";
- Provides = ("AFS");
- Requires = ("Resolver");
- OrderPreference = "None";
- Messages =
- {
- start = "Starting OpenAFS file system";
- stop = "Stopping OpenAFS file system";
- };
-}
--- /dev/null
+{
+ Description = "OpenAFS network file system";
+ Provides = ("AFS");
+ Requires = ("Resolver");
+ OrderPreference = "None";
+ Messages =
+ {
+ start = "Starting OpenAFS file system";
+ stop = "Stopping OpenAFS file system";
+ };
+}
MV=mv
RANLIB=ranlib
RM=rm
-
+INSTALL=${TOP_SRCDIR}/pinstall/pinstall
+#
# Other OS specific requirements
#
YACC = bison -y
if [ "$$m" = "MP" ] ; then \
SMP_DEF="-DAFS_SMP @RHCONFIG_MP@ ${LOCAL_SMP_DEF}" ; \
TARG="libafs.mp" ; \
+ elif [ "$$m" = "EP" ] ; then \
+ SMP_DEF="-DAFS_SMP @RHCONFIG_MP@ ${LOCAL_SMP_DEF}" ; \
+ TARG="libafs.ep" ; \
else \
SMP_DEF="@RHCONFIG_SP@ ${LOCAL_SMP_DEF}" ; \
TARG=libafs ; \
linux_compdirs_libafs: libafs
linux_compdirs_libafs.mp: libafs.mp
+linux_compdirs_libafs.ep: libafs.ep
linux_instdirs_libafs: install_libafs
linux_instdirs_libafs.mp: install_libafs.mp
+linux_instdirs_libafs.ep: install_libafs.ep
linux_destdirs_libafs: dest_libafs
linux_destdirs_libafs.mp: dest_libafs.mp
+linux_destdirs_libafs.ep: dest_libafs.ep
# Below this line are targets when in the COMMON directory:
# For Linux there is no kernel NFS server.
LIBAFS = libafs-${CLIENT}.o
LIBAFS_MP = libafs-${CLIENT}.mp.o
+LIBAFS_EP = libafs-${CLIENT}.ep.o
INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS}
INST_LIBAFS_MP = ${DESTDIR}${afskerneldir}/${LIBAFS_MP}
+INST_LIBAFS_EP = ${DESTDIR}${afskerneldir}/${LIBAFS_EP}
DEST_LIBAFS = ${DEST}/root.client/usr/vice/etc/modload/openafs.o
DEST_LIBAFS_MP = ${DEST}/root.client/usr/vice/etc/modload/openafs.mp.o
libafs.mp: $(LIBAFS_MP)
echo MP Build Complete
+libafs.ep: $(LIBAFS_EP)
+ echo EP Build Complete
+
${LIBAFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
$(RM) -f $@
$(LD) -r -o $@ $(AFSAOBJS) $(AFSNONFSOBJS)
$(RM) -f $@
$(LD) -r -o $@ $(AFSAOBJS) $(AFSNONFSOBJS)
+${LIBAFS_EP}: $(AFSAOBJS) $(AFSNONFSOBJS)
+ $(RM) -f $@
+ $(LD) -r -o $@ $(AFSAOBJS) $(AFSNONFSOBJS)
+
install_libafs: $(INST_LIBAFS)
echo SP Install Complete
install_libafs.mp: $(INST_LIBAFS_MP)
echo MP Install Complete
+install_libafs.ep: $(INST_LIBAFS_EP)
+ echo EP Install Complete
+
dest_libafs: $(DEST_LIBAFS)
echo SP Install Complete
dest_libafs.mp: $(DEST_LIBAFS_MP)
echo MP Install Complete
+dest_libafs.ep: $(DEST_LIBAFS_EP)
+ echo EP Install Complete
+
$(INST_LIBAFS): $(LIBAFS)
${INSTALL} -f $? $@
$(INST_LIBAFS_MP): $(LIBAFS_MP)
${INSTALL} -f $? $@
+$(INST_LIBAFS_EP): $(LIBAFS_EP)
+ ${INSTALL} -f $? $@
+
$(DEST_LIBAFS): $(LIBAFS)
${INSTALL} -f $? $@
$(DEST_LIBAFS_MP): $(LIBAFS_MP)
${INSTALL} -f $? $@
+$(DEST_LIBAFS_EP): $(LIBAFS_EP)
+ ${INSTALL} -f $? $@
+
# Linux specific objects
osi_alloc.o: $(AFS)/osi_alloc.c
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/lwp/preempt.c,v 1.8 2001/09/11 15:48:27 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/lwp/preempt.c,v 1.9 2001/09/20 06:47:46 hartmans Exp $");
-#if defined(AFS_LINUX20_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_DJGPP_ENV)
+#if defined(AFS_LINUX20_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV) || defined(AFS_DJGPP_ENV)
int PRE_Block = 0;
#else
#include <sys/time.h>
-/* $Id: pt_util.c,v 1.4 2001/07/15 07:22:30 hartmans Exp $ */
+/* $Id: pt_util.c,v 1.5 2001/09/20 06:47:46 hartmans Exp $ */
/*
*
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/ptserver/pt_util.c,v 1.4 2001/07/15 07:22:30 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/ptserver/pt_util.c,v 1.5 2001/09/20 06:47:46 hartmans Exp $");
#include <lock.h>
#include <netinet/in.h>
}
Initdb();
- initialize_pt_error_table();
+ initialize_PT_error_table();
if (wflag) {
struct usr_list *u;
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/ptserver/ptserver.c,v 1.5 2001/09/11 15:48:32 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/ptserver/ptserver.c,v 1.6 2001/09/20 06:47:47 hartmans Exp $");
#include <afs/stds.h>
#ifdef AFS_AIX32_ENV
#endif
struct afsconf_cell info;
int kerberosKeys; /* set if found some keys */
- afs_int32 i,j;
int lwps = 3;
char clones[MAXHOSTSPERCELL];
}
#endif
else if (*arg == '-') {
- usage:
-
/* hack in help flag support */
#ifndef AFS_NT40_ENV
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/viced/afsfileprocs.c,v 1.4 2001/09/11 15:48:55 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/viced/afsfileprocs.c,v 1.5 2001/09/20 06:47:47 hartmans Exp $");
#include <stdio.h>
#include <stdlib.h>
#include <rx/rx.h>
#include <rx/rx_globals.h>
#include <sys/stat.h>
-#if ! defined(AFS_SGI_ENV) && ! defined(AFS_AIX32_ENV) && ! defined(AFS_NT40_ENV) && ! defined(AFS_LINUX20_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_FBSD_ENV)
+#if ! defined(AFS_SGI_ENV) && ! defined(AFS_AIX32_ENV) && ! defined(AFS_NT40_ENV) && ! defined(AFS_LINUX20_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_XBSD_ENV)
#include <sys/map.h>
#endif
#if !defined(AFS_NT40_ENV)
#include <sys/statfs.h>
#include <sys/lockf.h>
#else
-#if !defined(AFS_SUN5_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_FBSD_ENV)
+#if !defined(AFS_SUN5_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_XBSD_ENV)
#include <sys/dk.h>
#endif
#endif
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/vol/partition.c,v 1.7 2001/07/15 07:22:32 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/vol/partition.c,v 1.8 2001/09/20 06:47:48 hartmans Exp $");
#include <ctype.h>
#ifdef AFS_NT40_ENV
#if AFS_HAVE_STATVFS
#include <sys/statvfs.h>
#endif /* AFS_HAVE_STATVFS */
-#if defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
+#if defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
#include <sys/mount.h>
#endif
#ifdef AFS_SUN5_ENV
#include <sys/fs/ufs_fs.h>
#else
-#if defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
+#if defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
#include <ufs/ufs/dinode.h>
#include <ufs/ffs/fs.h>
#else
#endif
#endif
#else /* AFS_VFSINCL_ENV */
-#if !defined(AFS_AIX_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_FBSD_ENV)
+#if !defined(AFS_AIX_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_XBSD_ENV)
#include <sys/fs.h>
#endif
#endif /* AFS_VFSINCL_ENV */
}
#endif
-#if defined(AFS_DUX40_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
+#if defined(AFS_DUX40_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
int VAttachPartitions(void)
{
int errors = 0;
void VAdjustDiskUsage_r(Error *ec, Volume *vp, afs_int32 blocks, afs_int32 checkBlocks)
{
- afs_int32 rem, minavail;
*ec = 0;
/* why blocks instead of checkBlocks in the check below? Otherwise, any check
for less than BlocksSpare would skip the error-checking path, and we
blocks. */
if (blocks > 0) {
#ifdef AFS_AIX32_ENV
+ afs_int32 rem, minavail;
+
if ((rem = vp->partition->free - checkBlocks) <
(minavail = (vp->partition->totalUsable * aixlow_water) / 100))
#else
int VDiskUsage_r(Volume *vp, afs_int32 blocks)
{
- afs_int32 rem, minavail;
if (blocks > 0) {
#ifdef AFS_AIX32_ENV
+ afs_int32 rem, minavail;
+
if ((rem = vp->partition->free - blocks) <
(minavail = (vp->partition->totalUsable * aixlow_water) / 100))
#else