vfs_default.c (c3aac50f284c6cca5b4f2eb46aaa13812cb8b630) | vfs_default.c (5a5fccc8e792522375133484f4cebc9f7da2c7d3) |
---|---|
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 --- 31 unchanged lines hidden (view full) --- 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/buf.h> 45#include <sys/kernel.h> 46#include <sys/lock.h> 47#include <sys/malloc.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 --- 31 unchanged lines hidden (view full) --- 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/buf.h> 45#include <sys/kernel.h> 46#include <sys/lock.h> 47#include <sys/malloc.h> |
48#include <sys/mount.h> |
|
48#include <sys/unistd.h> 49#include <sys/vnode.h> 50#include <sys/poll.h> 51 52static int vop_nostrategy __P((struct vop_strategy_args *)); 53 54/* 55 * This vnode table stores what we want to do if the filesystem doesn't --- 429 unchanged lines hidden (view full) --- 485{ 486 struct vnode *vp = ap->a_vp; 487 488 if (vp->v_vnlock == NULL) 489 return (0); 490 return (lockstatus(vp->v_vnlock)); 491} 492 | 49#include <sys/unistd.h> 50#include <sys/vnode.h> 51#include <sys/poll.h> 52 53static int vop_nostrategy __P((struct vop_strategy_args *)); 54 55/* 56 * This vnode table stores what we want to do if the filesystem doesn't --- 429 unchanged lines hidden (view full) --- 486{ 487 struct vnode *vp = ap->a_vp; 488 489 if (vp->v_vnlock == NULL) 490 return (0); 491 return (lockstatus(vp->v_vnlock)); 492} 493 |
494/* 495 * vfs default ops 496 * used to fill the vfs fucntion table to get reasonable default return values. 497 */ 498int 499vfs_stdmount (mp, path, data, ndp, p) 500 struct mount *mp; 501 char *path; 502 caddr_t data; 503 struct nameidata *ndp; 504 struct proc *p; 505{ 506 return (0); 507} 508 509int 510vfs_stdunmount (mp, mntflags, p) 511 struct mount *mp; 512 int mntflags; 513 struct proc *p; 514{ 515 return (0); 516} 517 518int 519vfs_stdroot (mp, vpp) 520 struct mount *mp; 521 struct vnode **vpp; 522{ 523 return (EOPNOTSUPP); 524} 525 526int 527vfs_stdstatfs (mp, sbp, p) 528 struct mount *mp; 529 struct statfs *sbp; 530 struct proc *p; 531{ 532 return (EOPNOTSUPP); 533} 534 535int 536vfs_stdvptofh (vp, fhp) 537 struct vnode *vp; 538 struct fid *fhp; 539{ 540 return (EOPNOTSUPP); 541} 542 543int 544vfs_stdstart (mp, flags, p) 545 struct mount *mp; 546 int flags; 547 struct proc *p; 548{ 549 return (0); 550} 551 552int 553vfs_stdquotactl (mp, cmds, uid, arg, p) 554 struct mount *mp; 555 int cmds; 556 uid_t uid; 557 caddr_t arg; 558 struct proc *p; 559{ 560 return (EOPNOTSUPP); 561} 562 563int 564vfs_stdsync (mp, waitfor, cred, p) 565 struct mount *mp; 566 int waitfor; 567 struct ucred *cred; 568 struct proc *p; 569{ 570 return (0); 571} 572 573int 574vfs_stdvget (mp, ino, vpp) 575 struct mount *mp; 576 ino_t ino; 577 struct vnode **vpp; 578{ 579 return (EOPNOTSUPP); 580} 581 582int 583vfs_stdfhtovp (mp, fhp, nam, vpp, exflagsp, credanonp) 584 struct mount *mp; 585 struct fid *fhp; 586 struct sockaddr *nam; 587 struct vnode **vpp; 588 int *exflagsp; 589 struct ucred **credanonp; 590{ 591 return (EOPNOTSUPP); 592} 593 594int 595vfs_stdinit (vfsp) 596 struct vfsconf *vfsp; 597{ 598 return (0); 599} 600 601int 602vfs_stduninit (vfsp) 603 struct vfsconf *vfsp; 604{ 605 return(0); 606} 607 608/* end of vfs default ops */ |
|