Fix usage message to match expected arguments
[deb_libnfs.git] / examples / fuse_nfs.c
index 7e9eba6e02360cae8287e4e67ccfd75f8c80a4f9..23a4ce89d26158f4998c3af53632cc6ddd086029 100644 (file)
@@ -31,8 +31,6 @@
 
 #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)
@@ -122,8 +120,6 @@ static int fuse_nfs_create(const char *path, mode_t mode, struct fuse_file_info
 
        fi->fh = (uint64_t)nfsfh;
 
-//nfs_chown
-
        return ret;
 }
 
@@ -195,7 +191,7 @@ static struct fuse_operations nfs_oper = {
 
 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);
 }
@@ -214,11 +210,10 @@ int main(int argc, char *argv[])
        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",
@@ -232,6 +227,7 @@ int main(int argc, char *argv[])
                NULL,
                NULL,
                NULL,
+               NULL,
         };
 
        while ((c = getopt_long(argc, argv, "?hm:n:", long_opts,