#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
-FILE *fh=NULL;
-
struct nfs_context *nfs = NULL;
static int fuse_nfs_getattr(const char *path, struct stat *stbuf)
fi->fh = (uint64_t)nfsfh;
-//nfs_chown
-
return ret;
}
void print_usage(char *name)
{
- printf("Usage: %s [-?|--help] [-n|--nfs-share=nfs-url] mountpoint\n",
+ printf("Usage: %s [-?|--help] [-n|--nfs-share=nfs-url] [-m|--mountpoint=mountpoint]\n",
name);
exit(0);
}
char *url = NULL;
char *mnt = NULL;
char *server = NULL, *export = NULL, *strp;
- int fuse_nfs_argc = 6;
+ int fuse_nfs_argc = 5;
char *fuse_nfs_argv[16] = {
"fuse-nfs",
"<export>",
- "-odebug",
"-oallow_other",
"-odefault_permissions",
"-omax_write=32768",
NULL,
NULL,
NULL,
+ NULL,
};
while ((c = getopt_long(argc, argv, "?hm:n:", long_opts,
if (url == NULL) {
fprintf(stderr, "-n was not specified.\n");
+ print_usage(argv[0]);
ret = 10;
goto finished;
}
if (mnt == NULL) {
fprintf(stderr, "-m was not specified.\n");
+ print_usage(argv[0]);
ret = 10;
goto finished;
}