diff options
author | alfred <alfred@FreeBSD.org> | 1999-09-07 22:42:38 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 1999-09-07 22:42:38 +0000 |
commit | e16a3900a7835b58a16e19a58511db912f1081f8 (patch) | |
tree | f6801d0b7edc902d94f170cf5d4a357c90e1fdb6 /sys/fs/coda/coda_vfsops.c | |
parent | 16f9b4552c757be79df4ea6fa44b8be88902894b (diff) | |
download | FreeBSD-src-e16a3900a7835b58a16e19a58511db912f1081f8.zip FreeBSD-src-e16a3900a7835b58a16e19a58511db912f1081f8.tar.gz |
All unimplemented VFS ops now have entries in kern/vfs_default.c that return
reasonable defaults.
This avoids confusing and ugly casting to eopnotsupp or making dummy functions.
Bogus casting of filesystem sysctls to eopnotsupp() have been removed.
This should make *_vfsops.c more readable and reduce bloat.
Reviewed by: msmith, eivind
Approved by: phk
Tested by: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
Diffstat (limited to 'sys/fs/coda/coda_vfsops.c')
-rw-r--r-- | sys/fs/coda/coda_vfsops.c | 62 |
1 files changed, 6 insertions, 56 deletions
diff --git a/sys/fs/coda/coda_vfsops.c b/sys/fs/coda/coda_vfsops.c index 35959df..489ce06 100644 --- a/sys/fs/coda/coda_vfsops.c +++ b/sys/fs/coda/coda_vfsops.c @@ -231,16 +231,6 @@ coda_mount(vfsp, path, data, ndp, p) } int -coda_start(vfsp, flags, p) - struct mount *vfsp; - int flags; - struct proc *p; -{ - ENTRY; - return (0); -} - -int coda_unmount(vfsp, mntflags, p) struct mount *vfsp; int mntflags; @@ -378,18 +368,6 @@ coda_root(vfsp, vpp) return(error); } -int -coda_quotactl(vfsp, cmd, uid, arg, p) - struct mount *vfsp; - int cmd; - uid_t uid; - caddr_t arg; - struct proc *p; -{ - ENTRY; - return (EOPNOTSUPP); -} - /* * Get file system statistics. */ @@ -444,16 +422,6 @@ coda_sync(vfsp, waitfor, cred, p) return(0); } -int -coda_vget(vfsp, ino, vpp) - struct mount *vfsp; - ino_t ino; - struct vnode **vpp; -{ - ENTRY; - return (EOPNOTSUPP); -} - /* * fhtovp is now what vget used to be in 4.3-derived systems. For * some silly reason, vget is now keyed by a 32 bit ino_t, rather than @@ -502,22 +470,6 @@ coda_fhtovp(vfsp, fhp, nam, vpp, exflagsp, creadanonp) return(error); } -int -coda_vptofh(vnp, fidp) - struct vnode *vnp; - struct fid *fidp; -{ - ENTRY; - return (EOPNOTSUPP); -} - -int -coda_init(struct vfsconf *vfsp) -{ - ENTRY; - return 0; -} - /* * To allow for greater ease of use, some vnodes may be orphaned when * Venus dies. Certain operations should still be allowed to go @@ -570,18 +522,16 @@ struct mount *devtomp(dev) struct vfsops coda_vfsops = { coda_mount, - coda_start, + vfs_stdstart, coda_unmount, coda_root, - coda_quotactl, + vfs_stdquotactl, coda_nb_statfs, coda_sync, - coda_vget, - (int (*) (struct mount *, struct fid *, struct sockaddr *, struct vnode **, - int *, struct ucred **)) - eopnotsupp, - (int (*) (struct vnode *, struct fid *)) eopnotsupp, - coda_init, + vfs_stdvget, + vfs_stdfhtovp, + vfs_stdvptofh, + vfs_stdinit }; VFS_SET(coda_vfsops, coda, VFCF_NETWORK); |