diff options
Diffstat (limited to 'sys/fs/smbfs/smbfs_vfsops.c')
-rw-r--r-- | sys/fs/smbfs/smbfs_vfsops.c | 48 |
1 files changed, 45 insertions, 3 deletions
diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c index 7d562b9..db0bc84 100644 --- a/sys/fs/smbfs/smbfs_vfsops.c +++ b/sys/fs/smbfs/smbfs_vfsops.c @@ -79,18 +79,21 @@ 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, - vfs_stdstart, + smbfs_start, smbfs_unmount, smbfs_root, - vfs_stdquotactl, + smbfs_quotactl, smbfs_statfs, smbfs_sync, vfs_stdvget, @@ -98,7 +101,7 @@ static struct vfsops smbfs_vfsops = { vfs_stdcheckexp, vfs_stdvptofh, /* shouldn't happen */ smbfs_init, - vfs_stduninit, + smbfs_uninit, vfs_stdextattrctl }; @@ -309,6 +312,36 @@ 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) @@ -332,6 +365,15 @@ smbfs_init(struct vfsconf *vfsp) return 0; } +/*ARGSUSED*/ +int +smbfs_uninit(struct vfsconf *vfsp) +{ + + SMBVDEBUG("done.\n"); + return 0; +} + /* * smbfs_statfs call */ |