fusefs: reap dead code
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
268c28edbc
commit
4423ae76ca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/fuse2/; revision=346422
@ -63,84 +63,6 @@
|
||||
#define FUSE_MIN_DAEMON_TIMEOUT 0 /* s */
|
||||
#define FUSE_MAX_DAEMON_TIMEOUT 600 /* s */
|
||||
|
||||
#ifndef FUSE_FREEBSD_VERSION
|
||||
#define FUSE_FREEBSD_VERSION "0.4.4"
|
||||
#endif
|
||||
|
||||
/* Mapping versions to features */
|
||||
|
||||
#define FUSE_KERNELABI_GEQ(maj, min) \
|
||||
(FUSE_KERNEL_VERSION > (maj) || (FUSE_KERNEL_VERSION == (maj) && FUSE_KERNEL_MINOR_VERSION >= (min)))
|
||||
|
||||
/*
|
||||
* Appearance of new FUSE operations is not always in par with version
|
||||
* numbering... At least, 7.3 is a sufficient condition for having
|
||||
* FUSE_{ACCESS,CREATE}.
|
||||
*/
|
||||
#if FUSE_KERNELABI_GEQ(7, 3)
|
||||
#ifndef FUSE_HAS_ACCESS
|
||||
#define FUSE_HAS_ACCESS 1
|
||||
#endif
|
||||
#ifndef FUSE_HAS_CREATE
|
||||
#define FUSE_HAS_CREATE 1
|
||||
#endif
|
||||
#else /* FUSE_KERNELABI_GEQ(7, 3) */
|
||||
#ifndef FUSE_HAS_ACCESS
|
||||
#define FUSE_HAS_ACCESS 0
|
||||
#endif
|
||||
#ifndef FUSE_HAS_CREATE
|
||||
#define FUSE_HAS_CREATE 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if FUSE_KERNELABI_GEQ(7, 7)
|
||||
#ifndef FUSE_HAS_GETLK
|
||||
#define FUSE_HAS_GETLK 1
|
||||
#endif
|
||||
#ifndef FUSE_HAS_SETLK
|
||||
#define FUSE_HAS_SETLK 1
|
||||
#endif
|
||||
#ifndef FUSE_HAS_SETLKW
|
||||
#define FUSE_HAS_SETLKW 1
|
||||
#endif
|
||||
#ifndef FUSE_HAS_INTERRUPT
|
||||
#define FUSE_HAS_INTERRUPT 1
|
||||
#endif
|
||||
#else /* FUSE_KERNELABI_GEQ(7, 7) */
|
||||
#ifndef FUSE_HAS_GETLK
|
||||
#define FUSE_HAS_GETLK 0
|
||||
#endif
|
||||
#ifndef FUSE_HAS_SETLK
|
||||
#define FUSE_HAS_SETLK 0
|
||||
#endif
|
||||
#ifndef FUSE_HAS_SETLKW
|
||||
#define FUSE_HAS_SETLKW 0
|
||||
#endif
|
||||
#ifndef FUSE_HAS_INTERRUPT
|
||||
#define FUSE_HAS_INTERRUPT 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if FUSE_KERNELABI_GEQ(7, 8)
|
||||
#ifndef FUSE_HAS_FLUSH_RELEASE
|
||||
#define FUSE_HAS_FLUSH_RELEASE 1
|
||||
/*
|
||||
* "DESTROY" came in the middle of the 7.8 era,
|
||||
* so this is not completely exact...
|
||||
*/
|
||||
#ifndef FUSE_HAS_DESTROY
|
||||
#define FUSE_HAS_DESTROY 1
|
||||
#endif
|
||||
#endif
|
||||
#else /* FUSE_KERNELABI_GEQ(7, 8) */
|
||||
#ifndef FUSE_HAS_FLUSH_RELEASE
|
||||
#define FUSE_HAS_FLUSH_RELEASE 0
|
||||
#ifndef FUSE_HAS_DESTROY
|
||||
#define FUSE_HAS_DESTROY 0
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* misc */
|
||||
|
||||
SYSCTL_DECL(_vfs_fusefs);
|
||||
|
@ -80,12 +80,6 @@ vnode_mount(struct vnode *vp)
|
||||
return (vp->v_mount);
|
||||
}
|
||||
|
||||
static inline bool
|
||||
vnode_mountedhere(struct vnode *vp)
|
||||
{
|
||||
return (vp->v_mountedhere != NULL);
|
||||
}
|
||||
|
||||
static inline enum vtype
|
||||
vnode_vtype(struct vnode *vp)
|
||||
{
|
||||
|
@ -109,8 +109,6 @@ static int fuse_body_audit(struct fuse_ticket *ftick, size_t blen);
|
||||
static fuse_handler_t fuse_standard_handler;
|
||||
|
||||
SYSCTL_NODE(_vfs, OID_AUTO, fusefs, CTLFLAG_RW, 0, "FUSE tunables");
|
||||
SYSCTL_STRING(_vfs_fusefs, OID_AUTO, version, CTLFLAG_RD,
|
||||
FUSE_FREEBSD_VERSION, 0, "fuse-freebsd version");
|
||||
static int fuse_ticket_count = 0;
|
||||
|
||||
SYSCTL_INT(_vfs_fusefs, OID_AUTO, ticket_count, CTLFLAG_RW,
|
||||
|
@ -167,8 +167,6 @@ fticket_opcode(struct fuse_ticket *ftick)
|
||||
|
||||
int fticket_pull(struct fuse_ticket *ftick, struct uio *uio);
|
||||
|
||||
enum mountpri { FM_NOMOUNTED, FM_PRIMARY, FM_SECONDARY };
|
||||
|
||||
/*
|
||||
* The data representing a FUSE session.
|
||||
*/
|
||||
|
@ -137,11 +137,6 @@ fuse_loader(struct module *m, int what, void *arg)
|
||||
/* vfs_modevent ignores its first arg */
|
||||
if ((err = vfs_modevent(NULL, what, &fuse_vfsconf)))
|
||||
fuse_bringdown(eh_tag);
|
||||
else
|
||||
printf("fuse-freebsd: version %s, FUSE ABI %d.%d\n",
|
||||
FUSE_FREEBSD_VERSION,
|
||||
FUSE_KERNEL_VERSION, FUSE_KERNEL_MINOR_VERSION);
|
||||
|
||||
break;
|
||||
case MOD_UNLOAD:
|
||||
if ((err = vfs_modevent(NULL, what, &fuse_vfsconf)))
|
||||
|
Loading…
Reference in New Issue
Block a user