diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-02-09 15:12:51 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-02-09 15:12:51 +0000 |
commit | 838fed1a3a2fbe5958fd5051a971496efd3557f3 (patch) | |
tree | 67042691893ff6aaced0f71248268f2076a51f6b /sshfs.c | |
parent | 99acbfff7aab23b386507419759834cb2db2bd30 (diff) | |
download | sshfs-838fed1a3a2fbe5958fd5051a971496efd3557f3.tar sshfs-838fed1a3a2fbe5958fd5051a971496efd3557f3.tar.gz sshfs-838fed1a3a2fbe5958fd5051a971496efd3557f3.tar.bz2 sshfs-838fed1a3a2fbe5958fd5051a971496efd3557f3.zip |
fix
Diffstat (limited to 'sshfs.c')
-rw-r--r-- | sshfs.c | 27 |
1 files changed, 17 insertions, 10 deletions
@@ -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); |