summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1996-12-05 16:25:09 +0000
committerkstailey <kstailey@cvs.openbsd.org>1996-12-05 16:25:09 +0000
commit67a107a459370287b9823562b936afdaa54e6210 (patch)
treec05040066f9da48aac1205d643032264a7806574 /sys
parente3d0a23417a6901c9353eb435a2228bccdf93693 (diff)
fix locking on devices to work on diskless workstations
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/spec_vnops.c12
-rw-r--r--sys/miscfs/specfs/spec_vnops.c12
2 files changed, 18 insertions, 6 deletions
diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c
index 62cecd13c8e..e12d69ef68e 100644
--- a/sys/kern/spec_vnops.c
+++ b/sys/kern/spec_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spec_vnops.c,v 1.6 1996/11/23 23:19:52 kstailey Exp $ */
+/* $OpenBSD: spec_vnops.c,v 1.7 1996/12/05 16:25:08 kstailey Exp $ */
/* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */
/*
@@ -707,13 +707,19 @@ int
spec_advlock(v)
void *v;
{
-#ifdef UFS
+#ifdef FFS
extern int ufs_advlock __P((void *v));
return (ufs_advlock(v));
#else
+#ifdef NFSCLIENT
+ extern int nfs_advlock __P((void *v));
+
+ return (nfs_advlock(v));
+#else
return (EOPNOTSUPP);
-#endif
+#endif /* NFSCLIENT */
+#endif /* FFS */
}
/*
diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c
index 62cecd13c8e..e12d69ef68e 100644
--- a/sys/miscfs/specfs/spec_vnops.c
+++ b/sys/miscfs/specfs/spec_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spec_vnops.c,v 1.6 1996/11/23 23:19:52 kstailey Exp $ */
+/* $OpenBSD: spec_vnops.c,v 1.7 1996/12/05 16:25:08 kstailey Exp $ */
/* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */
/*
@@ -707,13 +707,19 @@ int
spec_advlock(v)
void *v;
{
-#ifdef UFS
+#ifdef FFS
extern int ufs_advlock __P((void *v));
return (ufs_advlock(v));
#else
+#ifdef NFSCLIENT
+ extern int nfs_advlock __P((void *v));
+
+ return (nfs_advlock(v));
+#else
return (EOPNOTSUPP);
-#endif
+#endif /* NFSCLIENT */
+#endif /* FFS */
}
/*