summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs/smbfs_vfsops.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-02-08 05:48:04 +0000
committertjr <tjr@FreeBSD.org>2003-02-08 05:48:04 +0000
commit22a31ae0e6fcdd971f4a447c74bb34bc849cfd59 (patch)
tree9441bd08a6e527260fb29fd9ccc131b81928f76f /sys/fs/smbfs/smbfs_vfsops.c
parent387116adf4152b26904f62e82831b5a333d2b8fb (diff)
downloadFreeBSD-src-22a31ae0e6fcdd971f4a447c74bb34bc849cfd59.zip
FreeBSD-src-22a31ae0e6fcdd971f4a447c74bb34bc849cfd59.tar.gz
Revert removal of vnode and VFS stubs; bp asserts that they are needed.
Diffstat (limited to 'sys/fs/smbfs/smbfs_vfsops.c')
-rw-r--r--sys/fs/smbfs/smbfs_vfsops.c48
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
*/
OpenPOWER on IntegriCloud