summaryrefslogtreecommitdiffstats
path: root/sys/msdosfs
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>1999-09-07 22:42:38 +0000
committeralfred <alfred@FreeBSD.org>1999-09-07 22:42:38 +0000
commite16a3900a7835b58a16e19a58511db912f1081f8 (patch)
treef6801d0b7edc902d94f170cf5d4a357c90e1fdb6 /sys/msdosfs
parent16f9b4552c757be79df4ea6fa44b8be88902894b (diff)
downloadFreeBSD-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/msdosfs')
-rw-r--r--sys/msdosfs/msdosfs_vfsops.c41
1 files changed, 3 insertions, 38 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c
index 92f0084..e8695b8 100644
--- a/sys/msdosfs/msdosfs_vfsops.c
+++ b/sys/msdosfs/msdosfs_vfsops.c
@@ -79,17 +79,12 @@ static int msdosfs_fhtovp __P((struct mount *, struct fid *,
struct ucred **));
static int msdosfs_mount __P((struct mount *, char *, caddr_t,
struct nameidata *, struct proc *));
-static int msdosfs_quotactl __P((struct mount *, int, uid_t, caddr_t,
- struct proc *));
static int msdosfs_root __P((struct mount *, struct vnode **));
-static int msdosfs_start __P((struct mount *, int, struct proc *));
static int msdosfs_statfs __P((struct mount *, struct statfs *,
struct proc *));
static int msdosfs_sync __P((struct mount *, int, struct ucred *,
struct proc *));
static int msdosfs_unmount __P((struct mount *, int, struct proc *));
-static int msdosfs_vget __P((struct mount *mp, ino_t ino,
- struct vnode **vpp));
static int msdosfs_vptofh __P((struct vnode *, struct fid *));
static int
@@ -746,16 +741,6 @@ error_exit:
return (error);
}
-static int
-msdosfs_start(mp, flags, p)
- struct mount *mp;
- int flags;
- struct proc *p;
-{
-
- return (0);
-}
-
/*
* Unmount the filesystem described by mp.
*/
@@ -829,17 +814,6 @@ msdosfs_root(mp, vpp)
}
static int
-msdosfs_quotactl(mp, cmds, uid, arg, p)
- struct mount *mp;
- int cmds;
- uid_t uid;
- caddr_t arg;
- struct proc *p;
-{
- return EOPNOTSUPP;
-}
-
-static int
msdosfs_statfs(mp, sbp, p)
struct mount *mp;
struct statfs *sbp;
@@ -986,24 +960,15 @@ msdosfs_vptofh(vp, fhp)
return (0);
}
-static int
-msdosfs_vget(mp, ino, vpp)
- struct mount *mp;
- ino_t ino;
- struct vnode **vpp;
-{
- return EOPNOTSUPP;
-}
-
static struct vfsops msdosfs_vfsops = {
msdosfs_mount,
- msdosfs_start,
+ vfs_stdstart,
msdosfs_unmount,
msdosfs_root,
- msdosfs_quotactl,
+ vfs_stdquotactl,
msdosfs_statfs,
msdosfs_sync,
- msdosfs_vget,
+ vfs_stdvget,
msdosfs_fhtovp,
msdosfs_vptofh,
msdosfs_init
OpenPOWER on IntegriCloud