summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Siegl <stesie@brokenpipe.de>2005-12-10 14:13:45 +0000
committerStefan Siegl <stesie@brokenpipe.de>2005-12-10 14:13:45 +0000
commit83d1028d03a895b689925e2bf8d0aa951f0540db (patch)
tree65e19533e5361c1e2224bdce27419b6fe35484e9
parentb6f3b07877b4844d01b5f87e7393f3a74f1787eb (diff)
tell about valid mount options, when printing usage information
-rw-r--r--main.c28
1 files changed, 21 insertions, 7 deletions
diff --git a/main.c b/main.c
index c5fb5dea1..46ab357d9 100644
--- a/main.c
+++ b/main.c
@@ -195,13 +195,27 @@ fuse_parse_argv(int argc, char *argv[])
if(opt_help)
{
fprintf(opt_help,
- "\nusage: %s [options]\n\n"
- "Options:\n"
- " -d[FILENAME] enable debug output (default=stderr)\n"
- " -s disable multi-threaded operation\n"
- " -o opt,[opt...] mount options\n"
- " -h print help\n"
- "\n", translat_path);
+ "usage: %s [FUSE options]\n\n"
+ "FUSE Options:\n"
+ " -d[FILENAME] "
+ "enable debug output (default=stderr)\n"
+ " -s disable multi-threaded operation\n"
+ /* " -r "
+ * "mount read only (equivalent to '-o ro')\n" */
+ " -o opt,[opt...] mount options\n"
+ " -h print help\n"
+ "\n"
+ "Mount options:\n"
+ " default_permissions enable permission checking\n"
+ " allow_other allow access to other users\n"
+ " allow_root allow access to root\n"
+ " use_ino let filesystem set inode numbers\n"
+ /* " readdir_ino "
+ * "try to fill in d_ino in readdir\n" */
+ " umask set file permissions (octal)\n"
+ " uid set file owner\n"
+ " gid set file group\n",
+ translat_path);
exit(opt_help == stdout ? 0 : 1);
}