null_vfsops.c (191990) | null_vfsops.c (222167) |
---|---|
1/*- 2 * Copyright (c) 1992, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)null_vfsops.c 8.2 (Berkeley) 1/21/94 33 * 34 * @(#)lofs_vfsops.c 1.2 (Berkeley) 6/18/92 | 1/*- 2 * Copyright (c) 1992, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)null_vfsops.c 8.2 (Berkeley) 1/21/94 33 * 34 * @(#)lofs_vfsops.c 1.2 (Berkeley) 6/18/92 |
35 * $FreeBSD: head/sys/fs/nullfs/null_vfsops.c 191990 2009-05-11 15:33:26Z attilio $ | 35 * $FreeBSD: head/sys/fs/nullfs/null_vfsops.c 222167 2011-05-22 01:07:54Z rmacklem $ |
36 */ 37 38/* 39 * Null Layer 40 * (See null_vnops.c for a description of what this does.) 41 */ 42 43#include <sys/param.h> --- 272 unchanged lines hidden (view full) --- 316 error = VFS_VGET(MOUNTTONULLMOUNT(mp)->nullm_vfs, ino, flags, vpp); 317 if (error) 318 return (error); 319 320 return (null_nodeget(mp, *vpp, vpp)); 321} 322 323static int | 36 */ 37 38/* 39 * Null Layer 40 * (See null_vnops.c for a description of what this does.) 41 */ 42 43#include <sys/param.h> --- 272 unchanged lines hidden (view full) --- 316 error = VFS_VGET(MOUNTTONULLMOUNT(mp)->nullm_vfs, ino, flags, vpp); 317 if (error) 318 return (error); 319 320 return (null_nodeget(mp, *vpp, vpp)); 321} 322 323static int |
324nullfs_fhtovp(mp, fidp, vpp) | 324nullfs_fhtovp(mp, fidp, flags, vpp) |
325 struct mount *mp; 326 struct fid *fidp; | 325 struct mount *mp; 326 struct fid *fidp; |
327 int flags; |
|
327 struct vnode **vpp; 328{ 329 int error; | 328 struct vnode **vpp; 329{ 330 int error; |
330 error = VFS_FHTOVP(MOUNTTONULLMOUNT(mp)->nullm_vfs, fidp, vpp); | 331 error = VFS_FHTOVP(MOUNTTONULLMOUNT(mp)->nullm_vfs, fidp, LK_EXCLUSIVE, 332 vpp); |
331 if (error) 332 return (error); 333 334 return (null_nodeget(mp, *vpp, vpp)); 335} 336 337static int 338nullfs_extattrctl(mp, cmd, filename_vp, namespace, attrname) --- 26 unchanged lines hidden --- | 333 if (error) 334 return (error); 335 336 return (null_nodeget(mp, *vpp, vpp)); 337} 338 339static int 340nullfs_extattrctl(mp, cmd, filename_vp, namespace, attrname) --- 26 unchanged lines hidden --- |