From: Nickolai Zeldovich Date: Mon, 8 Oct 2001 23:19:07 +0000 (+0000) Subject: solaris-9-support-20011008 X-Git-Tag: openafs-devel-1_3_0~239 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=f4b688d9ed75ab429848e2a4cdb7b0f38eae712a solaris-9-support-20011008 support solaris 9 --- diff --git a/src/afs/SOLARIS/osi_file.c b/src/afs/SOLARIS/osi_file.c index 068c1a7..c7709cd 100644 --- a/src/afs/SOLARIS/osi_file.c +++ b/src/afs/SOLARIS/osi_file.c @@ -339,8 +339,13 @@ afs_osi_Write(afile, offset, aptr, asize) osi_Panic("afs_osi_Write called with null param"); if (offset != -1) afile->offset = offset; AFS_GUNLOCK(); +#ifdef AFS_SUN59_ENV + code = gop_rdwr(UIO_WRITE, afile->vnode, (caddr_t) aptr, asize, afile->offset, + AFS_UIOSYS, 0, curproc->p_fsz_ctl.rlim_cur, &afs_osi_cred, &resid); +#else code = gop_rdwr(UIO_WRITE, afile->vnode, (caddr_t) aptr, asize, afile->offset, AFS_UIOSYS, 0, (u.u_rlimit[RLIMIT_FSIZE].rlim_cur), &afs_osi_cred, &resid); +#endif AFS_GLOCK(); if (code == 0) { code = asize - resid; diff --git a/src/afs/SOLARIS/osi_vfsops.c b/src/afs/SOLARIS/osi_vfsops.c index 7da976e..1a92793 100644 --- a/src/afs/SOLARIS/osi_vfsops.c +++ b/src/afs/SOLARIS/osi_vfsops.c @@ -308,7 +308,7 @@ afsinit(struct vfssw *vfsswp, int fstype) if ( !nfs_checkauth ) afs_warn("nfs_checkauth not initialised"); #endif ufs_iallocp = (int (*)()) modlookup("ufs", "ufs_ialloc"); - ufs_iupdatp = (int (*)()) modlookup("ufs", "ufs_iupdat"); + ufs_iupdatp = (void (*)()) modlookup("ufs", "ufs_iupdat"); ufs_igetp = (int (*)()) modlookup("ufs", "ufs_iget"); ufs_itimes_nolockp = (void (*)()) modlookup("ufs", "ufs_itimes_nolock"); udp_infop = (struct streamtab *) modlookup("udp", "udpinfo"); diff --git a/src/afs/SOLARIS/osi_vnodeops.c b/src/afs/SOLARIS/osi_vnodeops.c index 19cebd0..a005ec1 100644 --- a/src/afs/SOLARIS/osi_vnodeops.c +++ b/src/afs/SOLARIS/osi_vnodeops.c @@ -1419,7 +1419,11 @@ afs_seek(vnp, ooff, noffp) return code; } -int afs_frlock(vnp, cmd, ap, flag, off, credp) +int afs_frlock(vnp, cmd, ap, flag, off, +#ifdef AFS_SUN59_ENV + flkcb, +#endif + credp) struct vnode *vnp; int cmd; #if defined(AFS_SUN56_ENV) @@ -1429,6 +1433,9 @@ int afs_frlock(vnp, cmd, ap, flag, off, credp) #endif int flag; offset_t off; +#ifdef AFS_SUN59_ENV + struct flk_callback *flkcb; +#endif struct AFS_UCRED *credp; { register afs_int32 code = 0; @@ -1436,6 +1443,10 @@ int afs_frlock(vnp, cmd, ap, flag, off, credp) * Implement based on afs_lockctl */ AFS_GLOCK(); +#ifdef AFS_SUN59_ENV + if (flkcb) + afs_warn("Don't know how to deal with flk_callback's!\n"); +#endif if ((cmd == F_GETLK) || (cmd == F_O_GETLK) || (cmd == F_SETLK) || (cmd == F_SETLKW)) { #ifdef AFS_SUN53_ENV ap->l_pid = ttoproc(curthread)->p_pid; @@ -1533,9 +1544,16 @@ struct cred *credp; return EINVAL; } -int afs_dumpctl(vp, i) +int afs_dumpctl(vp, i +#ifdef AFS_SUN59_ENV + , blkp +#endif + ) struct vnode *vp; int i; +#ifdef AFS_SUN59_ENV +int *blkp; +#endif { afs_warn("afs_dumpctl: Not implemented\n"); return EINVAL; diff --git a/src/afs/VNOPS/afs_vnop_strategy.c b/src/afs/VNOPS/afs_vnop_strategy.c index 53ab959..ab1ecaa 100644 --- a/src/afs/VNOPS/afs_vnop_strategy.c +++ b/src/afs/VNOPS/afs_vnop_strategy.c @@ -132,8 +132,12 @@ afs_ustrategy(abp) tuio.afsio_offset = (u_int) dbtob(abp->b_blkno); #ifdef AFS_SUN5_ENV tuio._uio_offset._p._u = 0; +#ifdef AFS_SUN59_ENV + tuio.uio_limit = curproc->p_fsz_ctl.rlim_cur; +#else tuio.uio_limit = u.u_rlimit[RLIMIT_FSIZE].rlim_cur; #endif +#endif #else tuio.afsio_offset = DEV_BSIZE * abp->b_blkno; #endif diff --git a/src/afsd/Makefile.in b/src/afsd/Makefile.in index cc5b65b..67bf2fe 100644 --- a/src/afsd/Makefile.in +++ b/src/afsd/Makefile.in @@ -103,6 +103,8 @@ dest: ${DEST}/root.client/usr/vice/etc/afsd ${DEST}/etc/vsys ${INSTALL} -f afs.rc.solaris.2.7 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\ sun4x_58 ) \ ${INSTALL} -f afs.rc.solaris.2.8 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\ + sun4x_59 ) \ + ${INSTALL} -f afs.rc.solaris.2.9 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\ sun4x_5? ) \ ${INSTALL} -f afs.rc.solaris.2_5 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\ alpha_osf* ) \ diff --git a/src/afsd/afs.rc.solaris.2.9 b/src/afsd/afs.rc.solaris.2.9 new file mode 100644 index 0000000..00967eb --- /dev/null +++ b/src/afsd/afs.rc.solaris.2.9 @@ -0,0 +1,188 @@ +#!/bin/sh +# +# afs.rc: rc script for AFS on Solaris 2.x platforms +# +# Install this script as /etc/init.d/afs.rc +# then make links like this: +# ln -s ../init.d/afs.rc /etc/rc0.d/K66afs +# ln -s ../init.d/afs.rc /etc/rc2.d/S70afs +# +CONFIG=/usr/vice/etc/config +AFSDOPT=$CONFIG/afsd.options +PACKAGE=$CONFIG/package.options + +LARGE="-stat 2800 -dcache 2400 -daemons 5 -volumes 128 -afsdb" +MEDIUM="-stat 2000 -dcache 800 -daemons 3 -volumes 70 -afsdb" +SMALL="-stat 300 -dcache 100 -daemons 2 -volumes 50 -afsdb" + +if [ -f $AFSDOPT ]; then + OPTIONS=`cat $AFSDOPT` +else + OPTIONS=$MEDIUM +fi + +# Need the commands ps, awk, kill, sleep +PATH=${PATH}${PATH:+:}/sbin:/bin:/usr/bin + +killproc() { # kill the named process(es) + awkfield2='$2' + pid=`ps -ef | awk "/$1/ && ! /awk/ {print $awkfield2}"` + [ "$pid" != "" ] && kill -KILL $pid +} + +case $1 in +'start') + +# +# Make sure afs exists in /etc/name_to_sysnum +# +if grep -s "afs" /etc/name_to_sysnum > /dev/null; then + echo "Entry for afs already exists in /etc/name_to_sysnum" +else + echo "Creating entry for afs in /etc/name_to_sysnum" + cp /etc/name_to_sysnum /etc/name_to_sysnum.orig + sed '/nfs/i\ +afs 65' /etc/name_to_sysnum > /tmp/name_to_sysnum + mv /tmp/name_to_sysnum /etc/name_to_sysnum + echo "Rebooting now for new /etc/name_to_sysnum to take effect" + reboot +fi + +## Check to see that /bin/isalist exists and is executable +if [ ! -x /bin/isalist ] ;then + echo "/bin/isalist not executable" + exit 1; +fi + +## Determine if we are running the 64 bit OS +## If sparcv9 then the location of the afs and nfs extensions differ + +case `/bin/isalist` in + *sparcv9* ) + nfssrv=/kernel/misc/sparcv9/nfssrv + afs=/kernel/fs/sparcv9/afs ;; + * ) + nfssrv=/kernel/misc/nfssrv + afs=/kernel/fs/afs ;; +esac + + +# +# Load kernel extensions +# +# nfssrv has to be loaded first + + +if [ -f $nfssrv ]; then + echo "Loading NFS server kernel extensions" + modload $nfssrv +else + echo "$nfssrv does not exist. Skipping AFS startup." + exit 1 +fi + +## Load AFS kernel extensions + +if [ -f $afs ]; then + echo "Loading AFS kernel extensions" + modload $afs +else + echo "$afs does not exist. Skipping AFS startup." + exit 1 +fi + +# +# Start the AFS server processes if a bosserver exists +# + +if [ -x /usr/afs/bin/bosserver ]; then + echo "Starting AFS Server processes" + /usr/afs/bin/bosserver & + OPTIONS="$OPTIONS -nosettime" + sleep 30 +fi + +# +# Check that all of the client configuration files exist +# + +for file in /usr/vice/etc/afsd /usr/vice/etc/cacheinfo \ + /usr/vice/etc/ThisCell /usr/vice/etc/CellServDB +do + if [ ! -f ${file} ]; then + echo "${file} does not exist. Not starting AFS client." + exit 1 + fi +done + +# +# Check that the root directory for AFS (/afs) +# and the cache directory (/usr/vice/cache) both exist +# + +for dir in `awk -F: '{print $1, $2}' /usr/vice/etc/cacheinfo` +do + if [ ! -d ${dir} ]; then + echo "${dir} does not exist. Not starting AFS client." + exit 2 + fi +done + +echo "Starting afsd" +/usr/vice/etc/afsd $OPTIONS + +# +# Run package to update the disk +# +if [ -f /usr/afsws/etc/package -a -f $PACKAGE ]; then + /usr/afsws/etc/package -v -o `cat $PACKAGE` > /dev/console 2>&1 +case $? in +0) + (echo "Package completed successfully") > /dev/console 2>&1 + date > /dev/console 2>&1 + ;; +4) + (echo "Rebooting to restart system") > /dev/console 2>&1 + sync + /etc/reboot + ;; +*) + (echo "Package update failed; continuing") > /dev/console 2>&1 + ;; +esac + +fi + +# +# Start AFS inetd services +# (See the AFS Command Ref. for notes on the proper configuration of inetd.afs) +# +if [ -f /usr/sbin/inetd.afs -a -f /etc/inetd.conf.afs ]; then + /usr/sbin/inetd.afs /etc/inetd.conf.afs +fi + +echo ;; + +'stop') + +# +# Stop the AFS inetd and server processes +# Note that the afsd processes cannot be killed +# + +echo "Killing inetd.afs" +killproc inetd.afs + +bosrunning=`ps -ef | awk '/bosserver/ && ! /awk/'` +if [ "${bosrunning}" != "" ]; then + echo "Shutting down AFS server processes" + /usr/afs/bin/bos shutdown localhost -localauth -wait + echo "Killing AFS bosserver" + killproc bosserver +fi + +echo ;; + +*) echo "Invalid option supplied to $0" + exit 1;; +esac diff --git a/src/config/Makefile.sun4x_59.in b/src/config/Makefile.sun4x_59.in new file mode 100644 index 0000000..945a142 --- /dev/null +++ b/src/config/Makefile.sun4x_59.in @@ -0,0 +1,52 @@ +# Keep macros within each section in sorted order for clean diff displays. +# +# AFS_OSTYPE used to indicate suffixes and os specific subdirectories. +AFS_OSTYPE = SOLARIS +# +# compilation and link editor flags +XCFLAGS=-dy -Bdynamic +MT_CFLAGS=-mt -DAFS_PTHREAD_ENV ${XCFLAGS} +PAM_CFLAGS = -KPIC +PAMLIBS= -lc -lpam -lsocket -lnsl -lm +SHARE_LDFLAGS = -G -Bsymbolic +LWP_OPTMZ=-g +OPTMZ=-O +DBG=-g + +## Compilation flags for 64 bit Solaris +XCFLAGS64 = ${XCFLAGS} -xarch=v9 + +# +# libraries +XLIBS=@LIB_AFSDB@ -lsocket -lnsl -lintl -ldl +TXLIBS=-lcurses +MTLIBS=-lpthread -lsocket +XLIBELFA=-lelf +XLIBKVM=-lkvm +# +SHLIB_SUFFIX=so +SHLIB_CFLAGS=-KPIC +# +# programs +AR=/usr/ccs/bin/ar +AS=as +CC=/opt/SUNWspro/bin/cc +MT_CC=/opt/SUNWspro/bin/cc +CP=/bin/cp +LEX=lex +LD= /usr/ccs/bin/ld +LORDER = /usr/ccs/bin/lorder +MV=mv +RANLIB=/bin/true +RM=rm +STRIP= /usr/ccs/bin/strip +INSTALL=${TOP_SRCDIR}/pinstall/pinstall +# +# this is for the vol package +FS_CONV_SOL26 = fs_conv_sol26 +install_FS_CONV_SOL26 = $(DESTDIR)${afssrvsbindir}/fs_conv_sol26 +dest_FS_CONV_SOL26 = $(DEST)/root.server/usr/afs/bin/fs_conv_sol26 +# +# This is the XBSA make flag and pathname to XBSA header files (xbsa.h) +XBSA_FLAGS=-Dxbsa +XBSADIR=/opt/tivoli/tsm/client/api/bin/xopen diff --git a/src/config/afs_sysnames.h b/src/config/afs_sysnames.h index 0323ea6..13045ba 100644 --- a/src/config/afs_sysnames.h +++ b/src/config/afs_sysnames.h @@ -80,6 +80,7 @@ #define SYS_NAME_ID_sunx86_55 937 #define SYS_NAME_ID_sun4x_57 938 #define SYS_NAME_ID_sun4x_58 939 +#define SYS_NAME_ID_sun4x_59 940 /* Sigh. If I leave a gap here IBM will do this sequentially. If I don't they won't allocate sunx86 IDs at all. So leave a gap and pray. */ diff --git a/src/config/param.sun4x_59.h b/src/config/param.sun4x_59.h new file mode 100644 index 0000000..60a07e5 --- /dev/null +++ b/src/config/param.sun4x_59.h @@ -0,0 +1,113 @@ +#ifndef AFS_PARAM_H +#define AFS_PARAM_H + +#define AFS_VFS_ENV 1 +/* Used only in vfsck code; is it needed any more???? */ + +#define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */ +#define AFS_GREEDY43_ENV 1 /* Used only in rx/rx_user.c */ +#define AFS_ENV 1 +#define AFS_SUN_ENV 1 +#define AFS_SUN5_ENV 1 +#define AFS_SUN52_ENV 1 +#define AFS_SUN53_ENV 1 +#define AFS_SUN54_ENV 1 +#define AFS_SUN55_ENV 1 +#define AFS_SUN56_ENV 1 +#define AFS_SUN57_ENV 1 +#define AFS_SUN58_ENV 1 +#define AFS_SUN59_ENV 1 + +#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */ + +#ifdef AFS_NAMEI_ENV +#define AFS_64BIT_IOPS_ENV 1 /* needed for NAMEI... */ +#else /* AFS_NAMEI_ENV */ +#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */ +#endif /* AFS_NAMEI_ENV */ + +#include + +#define AFS_GLOBAL_SUNLOCK 1 /* For global locking */ +#define RXK_LISTENER_ENV 1 +#define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */ + +#define AFS_SYSCALL 65 + +/* File system entry (used if mount.h doesn't define MOUNT_AFS */ +#define AFS_MOUNT_AFS "afs" + +/* Machine / Operating system information */ +#define sys_sun4x_59 1 +#define SYS_NAME "sun4x_59" +#define SYS_NAME_ID SYS_NAME_ID_sun4x_59 +#define AFSBIG_ENDIAN 1 +#define AFS_HAVE_FFS 1 /* Use system's ffs. */ +#define AFS_HAVE_VXFS 1 /* Support cache on Veritas vxfs file system */ +#define AFS_HAVE_STATVFS 1 /* System supports statvfs */ +#define AFS_VM_RDWR_ENV 1 /* read/write implemented via VM */ +#define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */ + +#define NEARINODE_HINT 1 /* hint to ufs module to scatter inodes on disk*/ +#define nearInodeHash(volid, hval) { \ + unsigned char* ts = (unsigned char*)&(volid)+sizeof(volid)-1;\ + for ( (hval)=0; ts >= (unsigned char*)&(volid); ts--){\ + (hval) *= 173; \ + (hval) += *ts; \ + } \ + } + +/* Extra kernel definitions (from kdefs file) */ +#ifdef KERNEL +/* sun definitions here */ +#define AFS_UIOFMODE 1 /* Only in afs/afs_vnodeops.c (afs_ustrategy) */ +#define AFS_SYSVLOCK 1 /* sys v locking supported */ +/*#define AFS_USEBUFFERS 1*/ +#define afsio_iov uio_iov +#define afsio_iovcnt uio_iovcnt +#define afsio_offset uio_offset +#define afsio_seg uio_segflg +#define afsio_fmode uio_fmode +#define afsio_resid uio_resid +#define AFS_UIOSYS UIO_SYSSPACE +#define AFS_UIOUSER UIO_USERSPACE +#define AFS_CLBYTES MCLBYTES +#define AFS_MINCHANGE 2 +#define osi_GetTime(x) uniqtime(x) + +/** + * These defines are for the 64 bit Solaris 7 port + * AFS_SYSCALL32 is used to protect the ILP32 syscall interface + * AFS_64BIT_ENV is for use of 64 bit inode numbers + */ +#if defined(__sparcv9) +#define AFS_SUN57_64BIT_ENV 1 +#define AFS_64BIT_INO 1 +#endif + +/** + * Solaris 7 64 bit has two versions of uniqtime. Since we consistently + * use 32 bit quantities for time in afs, we now use uniqtime32 + */ +#if defined(AFS_SUN57_64BIT_ENV) +#undef osi_GetTime +#define osi_GetTime(x) uniqtime32(x) +#endif + + + +#define AFS_KALLOC(n) kmem_alloc(n, KM_SLEEP) +#define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP) +#define AFS_KFREE kmem_free +#define VATTR_NULL vattr_null +#define memset(A, B, S) bzero(A, S) +#define memcpy(B, A, S) bcopy(A, B, S) +#define memcmp(A, B, S) bcmp(A, B, S) +#endif /* KERNEL */ +#define AFS_DIRENT +#ifndef CMSERVERPREF +#define CMSERVERPREF +#endif +#define ROOTINO UFSROOTINO + +#endif /* AFS_PARAM_H */ diff --git a/src/config/param.sun4x_59_usr.h b/src/config/param.sun4x_59_usr.h new file mode 100644 index 0000000..3ce9e7d --- /dev/null +++ b/src/config/param.sun4x_59_usr.h @@ -0,0 +1,62 @@ +#ifndef AFS_PARAM_H +#define AFS_PARAM_H + +#define AFS_VFS_ENV 1 +/* Used only in vfsck code; is it needed any more???? */ +#define RXK_LISTENER_ENV 1 +#define AFS_USERSPACE_IP_ADDR 1 +#define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */ + +#define UKERNEL 1 /* user space kernel */ +#define AFS_GREEDY43_ENV 1 /* Used only in rx/rx_user.c */ +#define AFS_ENV 1 +#define AFS_USR_SUN5_ENV 1 +#define AFS_USR_SUN6_ENV 1 +#define AFS_USR_SUN7_ENV 1 +#define AFS_USR_SUN8_ENV 1 +#define AFS_USR_SUN9_ENV 1 + +#define AFS_64BIT_ENV 1 + +#include + +/*#define AFS_GLOBAL_SUNLOCK 1 /* For global locking */ + +#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */ +#define AFS_SYSCALL 65 + +/* File system entry (used if mount.h doesn't define MOUNT_AFS */ +#define AFS_MOUNT_AFS 1 + +/* Machine / Operating system information */ +#define sys_sun4x_59 1 +#define SYS_NAME "sun4x_59" +#define SYS_NAME_ID SYS_NAME_ID_sun4x_59 +#define AFSBIG_ENDIAN 1 +#define AFS_HAVE_FFS 1 /* Use system's ffs. */ +#define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */ + +/* Extra kernel definitions (from kdefs file) */ +#ifdef KERNEL +#define AFS_UIOFMODE 1 /* Only in afs/afs_vnodeops.c (afs_ustrategy) */ +#define AFS_SYSVLOCK 1 /* sys v locking supported */ +/*#define AFS_USEBUFFERS 1*/ +#define afsio_iov uio_iov +#define afsio_iovcnt uio_iovcnt +#define afsio_offset uio_offset +#define afsio_seg uio_segflg +#define afsio_fmode uio_fmode +#define afsio_resid uio_resid +#define AFS_UIOSYS 1 +#define AFS_UIOUSER UIO_USERSPACE +#define AFS_CLBYTES MCLBYTES +#define AFS_MINCHANGE 2 +#define VATTR_NULL usr_vattr_null +#endif /* KERNEL */ +#define AFS_DIRENT +#ifndef CMSERVERPREF +#define CMSERVERPREF +#endif +#define ROOTINO UFSROOTINO + +#endif /* AFS_PARAM_H */ diff --git a/src/libafs/MakefileProto.SOLARIS.in b/src/libafs/MakefileProto.SOLARIS.in index 3386428..afc4dbb 100644 --- a/src/libafs/MakefileProto.SOLARIS.in +++ b/src/libafs/MakefileProto.SOLARIS.in @@ -52,7 +52,7 @@ DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT KDEFS= -Dsun4c -DSUN4C_60 -DNFSCLIENT -DSYSACCT -DOLDSCSI -DVDDRV -D_KERNEL \ -DSYSV -dn ${ARCH_DEFS} - + KDEFS_32 = KDEFS_64 = -xarch=v9 @@ -60,19 +60,19 @@ KDEFS_64 = -xarch=v9 CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG} # Name of directory to hold object files and libraries. - + KOBJ = MODLOAD - + KOBJ = MODLOAD32 MODLOAD64 # This tells Makefile.common to use it's single directory build target. - + COMPDIRS = single_compdir INSTDIRS = single_instdir DESTDIRS = single_destdir - + COMPDIRS = solaris_compdirs INSTDIRS = solaris_instdirs DESTDIRS = solaris_destdirs @@ -104,7 +104,7 @@ setup: ## This is the target for a Solaris 7. Here we build both the 32 bit and ## the 64 bit libafs in MODLOAD32 and MODLOAD64 directories respectively - + ${COMPDIRS} ${INSTDIRS} ${DESTDIRS}: for t in ${KOBJ} ; do \ echo Building directory: $$t ; \ @@ -133,7 +133,7 @@ solaris_destdirs_libafs: dest_libafs LIBAFS = libafs.o LIBAFSNONFS = libafs.nonfs.o - + INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS} INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/${LIBAFSNONFS} @@ -169,7 +169,7 @@ ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS) $(RM) -f $@ $(LD) -r -o $@ $(AFSAOBJS) ${AFSNONFSOBJS} - + libafs: ${LIBAFSNONFS}