nfs_vnops.c (75580) | nfs_vnops.c (75631) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 |
37 * $FreeBSD: head/sys/nfsclient/nfs_vnops.c 75580 2001-04-17 08:56:39Z phk $ | 37 * $FreeBSD: head/sys/nfsclient/nfs_vnops.c 75631 2001-04-17 20:45:23Z alfred $ |
38 */ 39 40 41/* 42 * vnode op calls for Sun NFS version 2 and 3 43 */ 44 45#include "opt_inet.h" --- 25 unchanged lines hidden (view full) --- 71#include <nfs/rpcv2.h> 72#include <nfs/nfsproto.h> 73#include <nfs/nfs.h> 74#include <nfs/nfsnode.h> 75#include <nfs/nfsmount.h> 76#include <nfs/xdr_subs.h> 77#include <nfs/nfsm_subs.h> 78#include <nfs/nqnfs.h> | 38 */ 39 40 41/* 42 * vnode op calls for Sun NFS version 2 and 3 43 */ 44 45#include "opt_inet.h" --- 25 unchanged lines hidden (view full) --- 71#include <nfs/rpcv2.h> 72#include <nfs/nfsproto.h> 73#include <nfs/nfs.h> 74#include <nfs/nfsnode.h> 75#include <nfs/nfsmount.h> 76#include <nfs/xdr_subs.h> 77#include <nfs/nfsm_subs.h> 78#include <nfs/nqnfs.h> |
79#include <nfs/nfs_lock.h> |
|
79 80#include <net/if.h> 81#include <netinet/in.h> 82#include <netinet/in_var.h> 83 84/* Defs */ 85#define TRUE 1 86#define FALSE 0 --- 2965 unchanged lines hidden (view full) --- 3052 struct vop_advlock_args /* { 3053 struct vnode *a_vp; 3054 caddr_t a_id; 3055 int a_op; 3056 struct flock *a_fl; 3057 int a_flags; 3058 } */ *ap; 3059{ | 80 81#include <net/if.h> 82#include <netinet/in.h> 83#include <netinet/in_var.h> 84 85/* Defs */ 86#define TRUE 1 87#define FALSE 0 --- 2965 unchanged lines hidden (view full) --- 3053 struct vop_advlock_args /* { 3054 struct vnode *a_vp; 3055 caddr_t a_id; 3056 int a_op; 3057 struct flock *a_fl; 3058 int a_flags; 3059 } */ *ap; 3060{ |
3060 register struct nfsnode *np = VTONFS(ap->a_vp); | |
3061 | 3061 |
3062 /* 3063 * The following kludge is to allow diskless support to work 3064 * until a real NFS lockd is implemented. Basically, just pretend 3065 * that this is a local lock. 3066 */ 3067 return (lf_advlock(ap, &(np->n_lockf), np->n_size)); | 3062 return (nfs_dolock(ap)); |
3068} 3069 3070/* 3071 * Print out the contents of an nfsnode. 3072 */ 3073static int 3074nfs_print(ap) 3075 struct vop_print_args /* { --- 310 unchanged lines hidden --- | 3063} 3064 3065/* 3066 * Print out the contents of an nfsnode. 3067 */ 3068static int 3069nfs_print(ap) 3070 struct vop_print_args /* { --- 310 unchanged lines hidden --- |