From 838fed1a3a2fbe5958fd5051a971496efd3557f3 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 9 Feb 2005 15:12:51 +0000 Subject: fix --- sshfs.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'sshfs.c') diff --git a/sshfs.c b/sshfs.c index 59c95cb..b58d156 100644 --- a/sshfs.c +++ b/sshfs.c @@ -1163,16 +1163,19 @@ static void usage(const char *progname) const char *fusehelp[] = { progname, "-ho", NULL }; fprintf(stderr, - "usage: %s [user@]host:[dir]] mountpoint [options]\n" - "\n" - "SSHFS Options:\n" - " -V show version information\n" - " -p PORT equivalent to '-o port=PORT'\n" - " -C equivalent to '-o compression=yes'\n" - " -o ssh_command=CMD execute CMD instead of 'ssh'\n" - " -o directport=PORT directly connect to port bypassing ssh\n" - " -o SSHOPT=VAL ssh options (see man ssh_config)\n" - "\n", progname); +"usage: %s [user@]host:[dir]] mountpoint [options]\n" +"\n" +"SSHFS Options:\n" +" -V show version information\n" +" -p PORT equivalent to '-o port=PORT'\n" +" -C equivalent to '-o compression=yes'\n" +" -o cache=YESNO Enable caching {yes,no} (default: yes)\n" +" -o cache_timeout=N sets timeout for caches in seconds (default: 20)\n" +" -o cache_X_timeout=N sets timeout for {stat,dir,link} cache\n" +" -o ssh_command=CMD execute CMD instead of 'ssh'\n" +" -o directport=PORT directly connect to PORT bypassing ssh\n" +" -o SSHOPT=VAL ssh options (see man ssh_config)\n" +"\n", progname); fuse_main(2, (char **) fusehelp, &sshfs_oper.oper); exit(1); } @@ -1257,6 +1260,10 @@ int main(int argc, char *argv[]) if (res == -1) exit(1); + res = cache_parse_options(&newargc, newargv); + if (res == -1) + exit(1); + newargv[newargc++] = "-omax_read=65536"; newargv[newargc++] = g_strdup_printf("-ofsname=sshfs#%s", fsname); g_free(fsname); -- cgit v1.2.3