diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1996-12-05 16:25:09 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1996-12-05 16:25:09 +0000 |
commit | 67a107a459370287b9823562b936afdaa54e6210 (patch) | |
tree | c05040066f9da48aac1205d643032264a7806574 /sys | |
parent | e3d0a23417a6901c9353eb435a2228bccdf93693 (diff) |
fix locking on devices to work on diskless workstations
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/spec_vnops.c | 12 | ||||
-rw-r--r-- | sys/miscfs/specfs/spec_vnops.c | 12 |
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 */ } /* |