vfs_default.c (164248) | vfs_default.c (166774) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed 6 * to Berkeley by John Heidemann of the UCLA Ficus project. 7 * 8 * Source: * @(#)i405_init.c 2.10 92/04/27 UCLA Ficus project --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed 6 * to Berkeley by John Heidemann of the UCLA Ficus project. 7 * 8 * Source: * @(#)i405_init.c 2.10 92/04/27 UCLA Ficus project --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/kern/vfs_default.c 164248 2006-11-13 05:51:22Z kmacy $"); | 36__FBSDID("$FreeBSD: head/sys/kern/vfs_default.c 166774 2007-02-15 22:08:35Z pjd $"); |
37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/bio.h> 41#include <sys/buf.h> 42#include <sys/conf.h> 43#include <sys/event.h> 44#include <sys/kernel.h> --- 46 unchanged lines hidden (view full) --- 91 .vop_open = VOP_NULL, 92 .vop_pathconf = VOP_EINVAL, 93 .vop_poll = vop_nopoll, 94 .vop_putpages = vop_stdputpages, 95 .vop_readlink = VOP_EINVAL, 96 .vop_revoke = VOP_PANIC, 97 .vop_strategy = vop_nostrategy, 98 .vop_unlock = vop_stdunlock, | 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/bio.h> 41#include <sys/buf.h> 42#include <sys/conf.h> 43#include <sys/event.h> 44#include <sys/kernel.h> --- 46 unchanged lines hidden (view full) --- 91 .vop_open = VOP_NULL, 92 .vop_pathconf = VOP_EINVAL, 93 .vop_poll = vop_nopoll, 94 .vop_putpages = vop_stdputpages, 95 .vop_readlink = VOP_EINVAL, 96 .vop_revoke = VOP_PANIC, 97 .vop_strategy = vop_nostrategy, 98 .vop_unlock = vop_stdunlock, |
99 .vop_vptofh = vop_stdvptofh, |
|
99}; 100 101/* 102 * Series of placeholder functions for various error returns for 103 * VOPs. 104 */ 105 106int --- 399 unchanged lines hidden (view full) --- 506 vm_ooffset_t a_offset; 507 } */ *ap; 508{ 509 510 return vnode_pager_generic_putpages(ap->a_vp, ap->a_m, ap->a_count, 511 ap->a_sync, ap->a_rtvals); 512} 513 | 100}; 101 102/* 103 * Series of placeholder functions for various error returns for 104 * VOPs. 105 */ 106 107int --- 399 unchanged lines hidden (view full) --- 507 vm_ooffset_t a_offset; 508 } */ *ap; 509{ 510 511 return vnode_pager_generic_putpages(ap->a_vp, ap->a_m, ap->a_count, 512 ap->a_sync, ap->a_rtvals); 513} 514 |
515int 516vop_stdvptofh(struct vop_vptofh_args *ap) 517{ 518 return VFS_VPTOFH(ap->a_vp, ap->a_fhp); 519} 520 |
|
514/* 515 * vfs default ops 516 * used to fill the vfs function table to get reasonable default return values. 517 */ 518int 519vfs_stdroot (mp, flags, vpp, td) 520 struct mount *mp; 521 int flags; --- 9 unchanged lines hidden (view full) --- 531 struct mount *mp; 532 struct statfs *sbp; 533 struct thread *td; 534{ 535 536 return (EOPNOTSUPP); 537} 538 | 521/* 522 * vfs default ops 523 * used to fill the vfs function table to get reasonable default return values. 524 */ 525int 526vfs_stdroot (mp, flags, vpp, td) 527 struct mount *mp; 528 int flags; --- 9 unchanged lines hidden (view full) --- 538 struct mount *mp; 539 struct statfs *sbp; 540 struct thread *td; 541{ 542 543 return (EOPNOTSUPP); 544} 545 |
546#if __FreeBSD_version < 800000 |
|
539int 540vfs_stdvptofh (vp, fhp) 541 struct vnode *vp; 542 struct fid *fhp; 543{ 544 545 return (EOPNOTSUPP); 546} | 547int 548vfs_stdvptofh (vp, fhp) 549 struct vnode *vp; 550 struct fid *fhp; 551{ 552 553 return (EOPNOTSUPP); 554} |
555#else 556#error Remove this code, vfs_vptofh was replaced with vop_vptofh. 557#endif |
|
547 548int 549vfs_stdquotactl (mp, cmds, uid, arg, td) 550 struct mount *mp; 551 int cmds; 552 uid_t uid; 553 void *arg; 554 struct thread *td; --- 125 unchanged lines hidden --- | 558 559int 560vfs_stdquotactl (mp, cmds, uid, arg, td) 561 struct mount *mp; 562 int cmds; 563 uid_t uid; 564 void *arg; 565 struct thread *td; --- 125 unchanged lines hidden --- |