@@ -716,11 +716,11 @@ } /* * FUSE operations structure */ -static struct fuse_operations appfs_oper = { +static struct fuse_operations appfs_operations = { .getattr = appfs_fuse_getattr, .readdir = appfs_fuse_readdir, .readlink = appfs_fuse_readlink, .open = appfs_fuse_open, .release = appfs_fuse_close, @@ -729,10 +729,11 @@ /* * Entry point into this program. */ int main(int argc, char **argv) { + struct fuse_args args = FUSE_ARGS_INIT(argc, argv); const char *cachedir = APPFS_CACHEDIR; int pthread_ret; /* * Set global variables, these should be configuration options. @@ -779,12 +780,18 @@ */ if (argc == 3 && strcmp(argv[1], "-tcl") == 0) { return(appfs_tcl(argv[2])); } + /* + * Add FUSE arguments which we always supply + */ + fuse_opt_parse(&args, NULL, NULL, NULL); + fuse_opt_add_arg(&args, "-odefault_permissions,fsname=appfs,use_ino,kernel_cache,entry_timeout=60,attr_timeout=3600,intr,big_writes"); + /* * Enter the FUSE main loop -- this will process any arguments * and start servicing requests. */ - return(fuse_main(argc, argv, &appfs_oper, NULL)); + return(fuse_main(args.argc, args.argv, &appfs_operations, NULL)); }