From: kstailey Date: Thu, 5 Dec 1996 16:25:08 +0000 (+0000) Subject: fix locking on devices to work on diskless workstations X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4094c75d8656140562d7157d1e76bec8871e485f;p=openbsd fix locking on devices to work on diskless workstations --- 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 */ } /*