summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs/smbfs_vfsops.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-02-07 14:34:29 +0000
committertjr <tjr@FreeBSD.org>2003-02-07 14:34:29 +0000
commitaad36936f1e958dbcc8fdffa25eb4d91497feefe (patch)
tree8198175ec32358b4ffa0e698e6944df4a705fc86 /sys/fs/smbfs/smbfs_vfsops.c
parent58993bafc343208964925fdfb63c86cc868cc7e0 (diff)
downloadFreeBSD-src-aad36936f1e958dbcc8fdffa25eb4d91497feefe.zip
FreeBSD-src-aad36936f1e958dbcc8fdffa25eb4d91497feefe.tar.gz
Garbage-collect stub VFS ops, use the defaults instead.
Diffstat (limited to 'sys/fs/smbfs/smbfs_vfsops.c')
-rw-r--r--sys/fs/smbfs/smbfs_vfsops.c48
1 files changed, 3 insertions, 45 deletions
diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c
index db0bc84..7d562b9 100644
--- a/sys/fs/smbfs/smbfs_vfsops.c
+++ b/sys/fs/smbfs/smbfs_vfsops.c
@@ -79,21 +79,18 @@ static MALLOC_DEFINE(M_SMBFSHASH, "SMBFS hash", "SMBFS hash table");
static int smbfs_mount(struct mount *, char *, caddr_t,
struct nameidata *, struct thread *);
-static int smbfs_quotactl(struct mount *, int, uid_t, caddr_t, struct thread *);
static int smbfs_root(struct mount *, struct vnode **);
-static int smbfs_start(struct mount *, int, struct thread *);
static int smbfs_statfs(struct mount *, struct statfs *, struct thread *);
static int smbfs_sync(struct mount *, int, struct ucred *, struct thread *);
static int smbfs_unmount(struct mount *, int, struct thread *);
static int smbfs_init(struct vfsconf *vfsp);
-static int smbfs_uninit(struct vfsconf *vfsp);
static struct vfsops smbfs_vfsops = {
smbfs_mount,
- smbfs_start,
+ vfs_stdstart,
smbfs_unmount,
smbfs_root,
- smbfs_quotactl,
+ vfs_stdquotactl,
smbfs_statfs,
smbfs_sync,
vfs_stdvget,
@@ -101,7 +98,7 @@ static struct vfsops smbfs_vfsops = {
vfs_stdcheckexp,
vfs_stdvptofh, /* shouldn't happen */
smbfs_init,
- smbfs_uninit,
+ vfs_stduninit,
vfs_stdextattrctl
};
@@ -312,36 +309,6 @@ smbfs_root(struct mount *mp, struct vnode **vpp)
return 0;
}
-/*
- * Vfs start routine, a no-op.
- */
-/* ARGSUSED */
-static int
-smbfs_start(mp, flags, td)
- struct mount *mp;
- int flags;
- struct thread *td;
-{
- SMBVDEBUG("flags=%04x\n", flags);
- return 0;
-}
-
-/*
- * Do operations associated with quotas, not supported
- */
-/* ARGSUSED */
-static int
-smbfs_quotactl(mp, cmd, uid, arg, td)
- struct mount *mp;
- int cmd;
- uid_t uid;
- caddr_t arg;
- struct thread *td;
-{
- SMBVDEBUG("return EOPNOTSUPP\n");
- return EOPNOTSUPP;
-}
-
/*ARGSUSED*/
int
smbfs_init(struct vfsconf *vfsp)
@@ -365,15 +332,6 @@ smbfs_init(struct vfsconf *vfsp)
return 0;
}
-/*ARGSUSED*/
-int
-smbfs_uninit(struct vfsconf *vfsp)
-{
-
- SMBVDEBUG("done.\n");
- return 0;
-}
-
/*
* smbfs_statfs call
*/
OpenPOWER on IntegriCloud