summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-02-07 14:33:10 +0000
committertjr <tjr@FreeBSD.org>2003-02-07 14:33:10 +0000
commit58993bafc343208964925fdfb63c86cc868cc7e0 (patch)
tree56566ac477d160d6b6e3e6fa4114e6abded13261 /sys/fs/smbfs
parent3391eada81b7f6040f4ba8596e92787f4398bccd (diff)
downloadFreeBSD-src-58993bafc343208964925fdfb63c86cc868cc7e0.zip
FreeBSD-src-58993bafc343208964925fdfb63c86cc868cc7e0.tar.gz
Garbage-collect stub vnode ops, use the defaults instead.
Diffstat (limited to 'sys/fs/smbfs')
-rw-r--r--sys/fs/smbfs/smbfs.h2
-rw-r--r--sys/fs/smbfs/smbfs_vnops.c60
2 files changed, 0 insertions, 62 deletions
diff --git a/sys/fs/smbfs/smbfs.h b/sys/fs/smbfs/smbfs.h
index 5048791..7519346 100644
--- a/sys/fs/smbfs/smbfs.h
+++ b/sys/fs/smbfs/smbfs.h
@@ -72,7 +72,6 @@ MALLOC_DECLARE(M_SMBFSMNT);
struct smbnode;
struct smb_share;
struct u_cred;
-struct vop_ioctl_args;
struct buf;
struct smbmount {
@@ -97,7 +96,6 @@ struct smbmount {
#define VTOVFS(vp) ((vp)->v_mount)
#define VTOSMBFS(vp) (VFSTOSMBFS(VTOVFS(vp)))
-int smbfs_ioctl(struct vop_ioctl_args *ap);
int smbfs_doio(struct buf *bp, struct ucred *cr, struct thread *td);
int smbfs_vinvalbuf(struct vnode *vp, int flags, struct ucred *cred,
struct thread *td, int intrflg);
diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c
index 29ff1d7..a618251 100644
--- a/sys/fs/smbfs/smbfs_vnops.c
+++ b/sys/fs/smbfs/smbfs_vnops.c
@@ -62,7 +62,6 @@
* Prototypes for SMBFS vnode operations
*/
static int smbfs_create(struct vop_create_args *);
-static int smbfs_mknod(struct vop_mknod_args *);
static int smbfs_open(struct vop_open_args *);
static int smbfs_close(struct vop_close_args *);
static int smbfs_access(struct vop_access_args *);
@@ -72,12 +71,10 @@ static int smbfs_read(struct vop_read_args *);
static int smbfs_write(struct vop_write_args *);
static int smbfs_fsync(struct vop_fsync_args *);
static int smbfs_remove(struct vop_remove_args *);
-static int smbfs_link(struct vop_link_args *);
static int smbfs_lookup(struct vop_lookup_args *);
static int smbfs_rename(struct vop_rename_args *);
static int smbfs_mkdir(struct vop_mkdir_args *);
static int smbfs_rmdir(struct vop_rmdir_args *);
-static int smbfs_symlink(struct vop_symlink_args *);
static int smbfs_readdir(struct vop_readdir_args *);
static int smbfs_strategy(struct vop_strategy_args *);
static int smbfs_print(struct vop_print_args *);
@@ -98,11 +95,8 @@ static struct vnodeopv_entry_desc smbfs_vnodeop_entries[] = {
{ &vop_getattr_desc, (vop_t *) smbfs_getattr },
{ &vop_getpages_desc, (vop_t *) smbfs_getpages },
{ &vop_inactive_desc, (vop_t *) smbfs_inactive },
- { &vop_ioctl_desc, (vop_t *) smbfs_ioctl },
- { &vop_link_desc, (vop_t *) smbfs_link },
{ &vop_lookup_desc, (vop_t *) smbfs_lookup },
{ &vop_mkdir_desc, (vop_t *) smbfs_mkdir },
- { &vop_mknod_desc, (vop_t *) smbfs_mknod },
{ &vop_open_desc, (vop_t *) smbfs_open },
{ &vop_pathconf_desc, (vop_t *) smbfs_pathconf },
{ &vop_print_desc, (vop_t *) smbfs_print },
@@ -115,7 +109,6 @@ static struct vnodeopv_entry_desc smbfs_vnodeop_entries[] = {
{ &vop_rmdir_desc, (vop_t *) smbfs_rmdir },
{ &vop_setattr_desc, (vop_t *) smbfs_setattr },
{ &vop_strategy_desc, (vop_t *) smbfs_strategy },
- { &vop_symlink_desc, (vop_t *) smbfs_symlink },
{ &vop_write_desc, (vop_t *) smbfs_write },
#ifndef FB_RELENG3
{ &vop_getextattr_desc, (vop_t *) smbfs_getextattr },
@@ -673,45 +666,6 @@ out:
return error;
}
-/*
- * somtime it will come true...
- */
-static int
-smbfs_link(ap)
- struct vop_link_args /* {
- struct vnode *a_tdvp;
- struct vnode *a_vp;
- struct componentname *a_cnp;
- } */ *ap;
-{
- return EOPNOTSUPP;
-}
-
-/*
- * smbfs_symlink link create call.
- * Sometime it will be functional...
- */
-static int
-smbfs_symlink(ap)
- struct vop_symlink_args /* {
- struct vnode *a_dvp;
- struct vnode **a_vpp;
- struct componentname *a_cnp;
- struct vattr *a_vap;
- char *a_target;
- } */ *ap;
-{
- return EOPNOTSUPP;
-}
-
-static int
-smbfs_mknod(ap)
- struct vop_mknod_args /* {
- } */ *ap;
-{
- return EOPNOTSUPP;
-}
-
static int
smbfs_mkdir(ap)
struct vop_mkdir_args /* {
@@ -904,20 +858,6 @@ smbfs_strategy (ap)
return error;
}
-int
-smbfs_ioctl(ap)
- struct vop_ioctl_args /* {
- struct vnode *a_vp;
- u_long a_command;
- caddr_t a_data;
- int fflag;
- struct ucred *cred;
- struct thread *td;
- } */ *ap;
-{
- return ENOTTY;
-}
-
static char smbfs_atl[] = "rhsvda";
static int
smbfs_getextattr(struct vop_getextattr_args *ap)
OpenPOWER on IntegriCloud