summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-09-10 19:52:27 +0000
committerphk <phk@FreeBSD.org>1997-09-10 19:52:27 +0000
commit4d0f72e0e25cb52d81ff2dfec572ad57269f7255 (patch)
tree60645a256c28dd6f2dfb473b58187fa055860e05 /sys/nfsclient
parent8e20f7ec0eb58e4adf6aaa2f3a9ca01a9bce42c4 (diff)
downloadFreeBSD-src-4d0f72e0e25cb52d81ff2dfec572ad57269f7255.zip
FreeBSD-src-4d0f72e0e25cb52d81ff2dfec572ad57269f7255.tar.gz
unifdef -U__NetBSD__ -D__FreeBSD__
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs.h6
-rw-r--r--sys/nfsclient/nfs_bio.c6
-rw-r--r--sys/nfsclient/nfs_subs.c10
-rw-r--r--sys/nfsclient/nfs_vfsops.c10
-rw-r--r--sys/nfsclient/nfs_vnops.c12
-rw-r--r--sys/nfsclient/nfsargs.h6
-rw-r--r--sys/nfsclient/nfsstats.h6
7 files changed, 7 insertions, 49 deletions
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h
index e1a4755..8fa52f3 100644
--- a/sys/nfsclient/nfs.h
+++ b/sys/nfsclient/nfs.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs.h 8.4 (Berkeley) 5/1/95
- * $Id: nfs.h,v 1.29 1997/07/16 09:06:27 dfr Exp $
+ * $Id: nfs.h,v 1.30 1997/08/16 19:15:54 wollman Exp $
*/
#ifndef _NFS_NFS_H_
@@ -93,11 +93,7 @@
* The B_INVAFTERWRITE flag should be set to whatever is required by the
* buffer cache code to say "Invalidate the block after it is written back".
*/
-#ifdef __FreeBSD__
#define B_INVAFTERWRITE B_NOCACHE
-#else
-#define B_INVAFTERWRITE B_INVAL
-#endif
/*
* The IO_METASYNC flag should be implemented for local file systems.
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c
index 12e2081..2479c6ad 100644
--- a/sys/nfsclient/nfs_bio.c
+++ b/sys/nfsclient/nfs_bio.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95
- * $Id: nfs_bio.c,v 1.42 1997/06/25 08:35:41 dfr Exp $
+ * $Id: nfs_bio.c,v 1.43 1997/08/02 14:33:06 bde Exp $
*/
@@ -1094,11 +1094,7 @@ nfs_doio(bp, cr, p)
np->n_mtime != np->n_vattr.va_mtime.tv_sec))) {
uprintf("Process killed due to text file modification\n");
psignal(p, SIGKILL);
-#ifdef __NetBSD__
- p->p_holdcnt++;
-#else
p->p_flag |= P_NOSWAP;
-#endif
}
break;
case VLNK:
diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c
index 69baccb..e7b5340 100644
--- a/sys/nfsclient/nfs_subs.c
+++ b/sys/nfsclient/nfs_subs.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
- * $Id: nfs_subs.c,v 1.40 1997/07/22 15:35:57 dfr Exp $
+ * $Id: nfs_subs.c,v 1.41 1997/08/16 19:15:59 wollman Exp $
*/
/*
@@ -1170,7 +1170,6 @@ nfs_init(vfsp)
nfs_timer(0);
-#ifdef __FreeBSD__
/*
* Set up lease_check and lease_updatetime so that other parts
* of the system can call us, if we are loadable.
@@ -1188,7 +1187,6 @@ nfs_init(vfsp)
sysent[SYS_getfh].sy_call = getfh;
#endif
#endif
-#endif
return (0);
}
@@ -1455,10 +1453,7 @@ nfs_namei(ndp, fhp, len, slp, nam, mdp, dposp, retdirp, p, kerbflag, pubflag)
tocp = cnp->cn_pnbuf;
md = *mdp;
rem = mtod(md, caddr_t) + md->m_len - fromcp;
-#ifdef __FreeBSD__
- /* XXX why is this in FreeBSD but not in NetBSD? */
cnp->cn_hash = 0;
-#endif
for (i = 0; i < len; i++) {
while (rem == 0) {
md = md->m_next;
@@ -1473,10 +1468,7 @@ nfs_namei(ndp, fhp, len, slp, nam, mdp, dposp, retdirp, p, kerbflag, pubflag)
error = EACCES;
goto out;
}
-#ifdef __FreeBSD__
- /* XXX why is this in FreeBSD but not in NetBSD? */
cnp->cn_hash += (unsigned char)*fromcp;
-#endif
*tocp++ = *fromcp++;
rem--;
}
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index 663086a..45d7edb 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95
- * $Id: nfs_vfsops.c,v 1.46 1997/09/02 01:19:41 bde Exp $
+ * $Id: nfs_vfsops.c,v 1.47 1997/09/07 12:56:44 bde Exp $
*/
#include <sys/param.h>
@@ -275,15 +275,7 @@ nfs_statfs(mp, sbp, p)
} else
goto nfsmout;
-#ifdef __NetBSD__
-#ifdef COMPAT_09
- sbp->f_type = 2;
-#else
- sbp->f_type = 0;
-#endif
-#else
sbp->f_type = MOUNT_NFS;
-#endif
sbp->f_flags = nmp->nm_flag;
sbp->f_iosize = nfs_iosize(nmp);
if (v3) {
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c
index 8ef10dd..e81c8b4 100644
--- a/sys/nfsclient/nfs_vnops.c
+++ b/sys/nfsclient/nfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
- * $Id: nfs_vnops.c,v 1.55 1997/06/25 08:32:33 dfr Exp $
+ * $Id: nfs_vnops.c,v 1.56 1997/08/26 07:32:43 phk Exp $
*/
@@ -190,9 +190,7 @@ static struct vnodeopv_entry_desc nfsv2_vnodeop_entries[] = {
};
static struct vnodeopv_desc nfsv2_vnodeop_opv_desc =
{ &nfsv2_vnodeop_p, nfsv2_vnodeop_entries };
-#ifdef __FreeBSD__
VNODEOP_SET(nfsv2_vnodeop_opv_desc);
-#endif
/*
* Special device vnode ops
@@ -247,9 +245,7 @@ static struct vnodeopv_entry_desc spec_nfsv2nodeop_entries[] = {
};
static struct vnodeopv_desc spec_nfsv2nodeop_opv_desc =
{ &spec_nfsv2nodeop_p, spec_nfsv2nodeop_entries };
-#ifdef __FreeBSD__
VNODEOP_SET(spec_nfsv2nodeop_opv_desc);
-#endif
vop_t **fifo_nfsv2nodeop_p;
static struct vnodeopv_entry_desc fifo_nfsv2nodeop_entries[] = {
@@ -301,9 +297,7 @@ static struct vnodeopv_entry_desc fifo_nfsv2nodeop_entries[] = {
};
static struct vnodeopv_desc fifo_nfsv2nodeop_opv_desc =
{ &fifo_nfsv2nodeop_p, fifo_nfsv2nodeop_entries };
-#ifdef __FreeBSD__
VNODEOP_SET(fifo_nfsv2nodeop_opv_desc);
-#endif
static int nfs_commit __P((struct vnode *vp, u_quad_t offset, int cnt,
struct ucred *cred, struct proc *procp));
@@ -3003,7 +2997,6 @@ nfs_advlock(ap)
int a_flags;
} */ *ap;
{
-#ifdef __FreeBSD__
register struct nfsnode *np = VTONFS(ap->a_vp);
/*
@@ -3012,9 +3005,6 @@ nfs_advlock(ap)
* that this is a local lock.
*/
return (lf_advlock(ap, &(np->n_lockf), np->n_size));
-#else
- return (EOPNOTSUPP);
-#endif
}
/*
diff --git a/sys/nfsclient/nfsargs.h b/sys/nfsclient/nfsargs.h
index e1a4755..8fa52f3 100644
--- a/sys/nfsclient/nfsargs.h
+++ b/sys/nfsclient/nfsargs.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs.h 8.4 (Berkeley) 5/1/95
- * $Id: nfs.h,v 1.29 1997/07/16 09:06:27 dfr Exp $
+ * $Id: nfs.h,v 1.30 1997/08/16 19:15:54 wollman Exp $
*/
#ifndef _NFS_NFS_H_
@@ -93,11 +93,7 @@
* The B_INVAFTERWRITE flag should be set to whatever is required by the
* buffer cache code to say "Invalidate the block after it is written back".
*/
-#ifdef __FreeBSD__
#define B_INVAFTERWRITE B_NOCACHE
-#else
-#define B_INVAFTERWRITE B_INVAL
-#endif
/*
* The IO_METASYNC flag should be implemented for local file systems.
diff --git a/sys/nfsclient/nfsstats.h b/sys/nfsclient/nfsstats.h
index e1a4755..8fa52f3 100644
--- a/sys/nfsclient/nfsstats.h
+++ b/sys/nfsclient/nfsstats.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs.h 8.4 (Berkeley) 5/1/95
- * $Id: nfs.h,v 1.29 1997/07/16 09:06:27 dfr Exp $
+ * $Id: nfs.h,v 1.30 1997/08/16 19:15:54 wollman Exp $
*/
#ifndef _NFS_NFS_H_
@@ -93,11 +93,7 @@
* The B_INVAFTERWRITE flag should be set to whatever is required by the
* buffer cache code to say "Invalidate the block after it is written back".
*/
-#ifdef __FreeBSD__
#define B_INVAFTERWRITE B_NOCACHE
-#else
-#define B_INVAFTERWRITE B_INVAL
-#endif
/*
* The IO_METASYNC flag should be implemented for local file systems.
OpenPOWER on IntegriCloud