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: dead_vnops.c,v 1.6 1994/10/08 22:37:00 phk Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/proc.h> 40#include <sys/time.h> 41#include <sys/kernel.h> 42#include <sys/vnode.h> --- 253 unchanged lines hidden (view full) --- 296int 297dead_bmap(ap) 298 struct vop_bmap_args /* { 299 struct vnode *a_vp; 300 daddr_t a_bn; 301 struct vnode **a_vpp; 302 daddr_t *a_bnp; 303 int *a_runp; |
304 int *a_runb; |
305 } */ *ap; 306{ 307 308 if (!chkvnlock(ap->a_vp)) 309 return (EIO); |
310 return (VOP_BMAP(ap->a_vp, ap->a_bn, ap->a_vpp, ap->a_bnp, ap->a_runp, ap->a_runb)); |
311} 312 313/* 314 * Print out the contents of a dead vnode. 315 */ 316/* ARGSUSED */ 317int 318dead_print(ap) --- 57 unchanged lines hidden --- |