null_vfsops.c (762e6b856c64ee48f286a7f0b45d0067e556b252) | null_vfsops.c (91f37dcba1648b1f24e2913c3ab78fc4eae35991) |
---|---|
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 --- 403 unchanged lines hidden (view full) --- 412static int 413nullfs_vptofh(vp, fhp) 414 struct vnode *vp; 415 struct fid *fhp; 416{ 417 return VFS_VPTOFH(NULLVPTOLOWERVP(vp), fhp); 418} 419 | 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 --- 403 unchanged lines hidden (view full) --- 412static int 413nullfs_vptofh(vp, fhp) 414 struct vnode *vp; 415 struct fid *fhp; 416{ 417 return VFS_VPTOFH(NULLVPTOLOWERVP(vp), fhp); 418} 419 |
420static int 421nullfs_extattrctl(mp, cmd, attrname, arg, p) 422 struct mount *mp; 423 int cmd; 424 char *attrname; 425 caddr_t arg; 426 struct proc *p; 427{ 428 return VFS_EXTATTRCTL(MOUNTTONULLMOUNT(mp)->nullm_vfs, cmd, attrname, 429 arg, p); 430} 431 432 |
|
420static struct vfsops null_vfsops = { 421 nullfs_mount, 422 nullfs_start, 423 nullfs_unmount, 424 nullfs_root, 425 nullfs_quotactl, 426 nullfs_statfs, 427 nullfs_sync, 428 nullfs_vget, 429 nullfs_fhtovp, 430 nullfs_checkexp, 431 nullfs_vptofh, 432 nullfs_init, | 433static struct vfsops null_vfsops = { 434 nullfs_mount, 435 nullfs_start, 436 nullfs_unmount, 437 nullfs_root, 438 nullfs_quotactl, 439 nullfs_statfs, 440 nullfs_sync, 441 nullfs_vget, 442 nullfs_fhtovp, 443 nullfs_checkexp, 444 nullfs_vptofh, 445 nullfs_init, |
446 vfs_stduninit, 447 nullfs_extattrctl, |
|
433}; 434 435VFS_SET(null_vfsops, null, VFCF_LOOPBACK); | 448}; 449 450VFS_SET(null_vfsops, null, VFCF_LOOPBACK); |