diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/src/main.c b/src/main.c index e9a402f7d..d6e082f89 100644 --- a/src/main.c +++ b/src/main.c @@ -33,8 +33,6 @@ int netfs_maxsymlinks = 12; struct _libfuse_params libfuse_params = { 0 }; /* pointer to the fuse_operations structure of this translator process */ -const struct fuse_operations_compat22 *fuse_ops_compat22 = NULL; -const struct fuse_operations_compat2 *fuse_ops_compat2 = NULL; const struct fuse_operations *fuse_ops25 = NULL; __thread struct fuse_context *libfuse_ctx; @@ -249,35 +247,6 @@ fuse_parse_argv(int argc, char *argv[]) -/* Main function of FUSE. (compatibility one for old Fuse API) */ -int -fuse_main_compat2(int argc, char *argv[], - const struct fuse_operations_compat2 *op) -{ - fuse_parse_argv(argc, argv); - - int fd = fuse_mount_compat22(argv[0], NULL); - return (libfuse_params.disable_mt ? fuse_loop : fuse_loop_mt) - (fuse_new_compat2(fd, NULL, op)); -} - - - -/* Main function of FUSE. - * named fuse_main_real, since originial fuse.h defines a macro renaming it */ -int -fuse_main_real_compat22(int argc, char *argv[], - const struct fuse_operations_compat22 *op, - size_t op_size) -{ - fuse_parse_argv(argc, argv); - - int fd = fuse_mount_compat22(argv[0], NULL); - return (libfuse_params.disable_mt ? fuse_loop : fuse_loop_mt) - (fuse_new_compat22(fd, NULL, op, op_size)); -} - - int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op, size_t op_size) @@ -299,28 +268,6 @@ int fuse_main(void) /* Create a new FUSE filesystem, actually there's nothing for us to do - * on the Hurd. - * - * (Compatibility function for the old Fuse API) - */ -struct fuse * -fuse_new_compat2(int fd, const char *opts, - const struct fuse_operations_compat2 *op) -{ - if(fd != FUSE_MAGIC) - return NULL; - - if(fuse_parse_opts(opts)) - return NULL; - - fuse_ops_compat2 = op; - - return (void *) FUSE_MAGIC; /* we don't have a fuse structure, sorry. */ -} - - - -/* Create a new FUSE filesystem, actually there's nothing for us to do * on the Hurd. Hmm. */ struct fuse * @@ -350,31 +297,6 @@ fuse_new(int fd, struct fuse_args *args, } -/* Create a new FUSE filesystem, actually there's nothing for us to do - * on the Hurd. - */ -struct fuse * -fuse_new_compat22(int fd, const char *opts, - const struct fuse_operations_compat22 *op, size_t op_size) -{ - (void) op_size; /* FIXME, see what the real Fuse library does with - * this argument */ - - if(fd != FUSE_MAGIC) - return NULL; - - if(fuse_parse_opts(opts)) - return NULL; - - fuse_ops_compat22 = op; - - if(op->init) - fsys_privdata = op->init(); - - return (void *) FUSE_MAGIC; /* we don't have a fuse structure, sorry. */ -} - - /* Create a new mountpoint for our fuse filesystem, i.e. do the netfs * initialization stuff ... */ @@ -393,15 +315,6 @@ fuse_mount(const char *mountpoint, struct fuse_args *args) } -int -fuse_mount_compat22(const char *mountpoint, const char *opts) -{ - if(fuse_parse_opts(opts)) - return 0; - - return fuse_bootstrap(mountpoint); -} - static int fuse_bootstrap(const char *mountpoint) { |