dead_vnops.c (1817) | dead_vnops.c (2946) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)dead_vnops.c 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)dead_vnops.c 8.1 (Berkeley) 6/10/93 |
34 * $Id$ | 34 * $Id: dead_vnops.c,v 1.3 1994/08/02 07:44:51 davidg Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/time.h> | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/time.h> |
40#include <sys/kernel.h> |
|
40#include <sys/vnode.h> 41#include <sys/errno.h> 42#include <sys/namei.h> 43#include <sys/buf.h> 44 45/* 46 * Prototypes for dead operations on vnodes. 47 */ --- 83 unchanged lines hidden (view full) --- 131 { &vop_truncate_desc, dead_truncate }, /* truncate */ 132 { &vop_update_desc, dead_update }, /* update */ 133 { &vop_bwrite_desc, dead_bwrite }, /* bwrite */ 134 { (struct vnodeop_desc*)NULL, (int(*)())NULL } 135}; 136struct vnodeopv_desc dead_vnodeop_opv_desc = 137 { &dead_vnodeop_p, dead_vnodeop_entries }; 138 | 41#include <sys/vnode.h> 42#include <sys/errno.h> 43#include <sys/namei.h> 44#include <sys/buf.h> 45 46/* 47 * Prototypes for dead operations on vnodes. 48 */ --- 83 unchanged lines hidden (view full) --- 132 { &vop_truncate_desc, dead_truncate }, /* truncate */ 133 { &vop_update_desc, dead_update }, /* update */ 134 { &vop_bwrite_desc, dead_bwrite }, /* bwrite */ 135 { (struct vnodeop_desc*)NULL, (int(*)())NULL } 136}; 137struct vnodeopv_desc dead_vnodeop_opv_desc = 138 { &dead_vnodeop_p, dead_vnodeop_entries }; 139 |
140VNODEOP_SET(dead_vnodeop_opv_desc); 141 |
|
139/* 140 * Trivial lookup routine that always fails. 141 */ 142/* ARGSUSED */ 143int 144dead_lookup(ap) 145 struct vop_lookup_args /* { 146 struct vnode * a_dvp; --- 223 unchanged lines hidden --- | 142/* 143 * Trivial lookup routine that always fails. 144 */ 145/* ARGSUSED */ 146int 147dead_lookup(ap) 148 struct vop_lookup_args /* { 149 struct vnode * a_dvp; --- 223 unchanged lines hidden --- |