cd9660_vnops.c (f993ed2fbd3c307200ed9a6351e649f0904b39c5) | cd9660_vnops.c (abd80ddb9474948fb291becc395d72b40927a32b) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1994 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley 8 * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension --- 246 unchanged lines hidden (view full) --- 255 } */ *ap; 256{ 257 struct vnode *vp; 258 struct iso_node *ip; 259 int error; 260 261 vp = ap->a_vp; 262 vn_lock(vp, LK_SHARED | LK_RETRY); | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1994 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley 8 * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension --- 246 unchanged lines hidden (view full) --- 255 } */ *ap; 256{ 257 struct vnode *vp; 258 struct iso_node *ip; 259 int error; 260 261 vp = ap->a_vp; 262 vn_lock(vp, LK_SHARED | LK_RETRY); |
263 if (vp->v_iflag & VI_DOOMED) { | 263 if (VN_IS_DOOMED(vp)) { |
264 VOP_UNLOCK(vp, 0); 265 return (EBADF); 266 } 267 if (vp->v_type == VCHR || vp->v_type == VBLK) { 268 VOP_UNLOCK(vp, 0); 269 return (EOPNOTSUPP); 270 } 271 --- 651 unchanged lines hidden --- | 264 VOP_UNLOCK(vp, 0); 265 return (EBADF); 266 } 267 if (vp->v_type == VCHR || vp->v_type == VBLK) { 268 VOP_UNLOCK(vp, 0); 269 return (EOPNOTSUPP); 270 } 271 --- 651 unchanged lines hidden --- |