aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse.c
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2016-10-15 19:46:57 -0700
committerNikolaus Rath <Nikolaus@rath.org>2016-10-15 19:46:57 -0700
commitb16650830d69cbe2d13e74c4318757c15f2c552f (patch)
treeeb2972d1d46aeed0bba411a02b8f523c7e21a8c2 /lib/fuse.c
parentb46250c40e29a23d37fe8fdadd6ef0d4cfe8b897 (diff)
downloadlibfuse-b16650830d69cbe2d13e74c4318757c15f2c552f.tar.gz
Make --help output more suitable for end-user
We now only list options that are potentially useful for an end-user (and unlikely to accidentally break a file system). The full list of FUSE options has been moved to the documentation of the fuse_new() and fuse_session_new() functions.
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index 826de4e..07e63d2 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -4414,12 +4414,9 @@ static const struct fuse_opt fuse_lib_opts[] = {
static void fuse_lib_help(void)
{
+ /* These are not all options, but only the ones that
+ may be of interest to an end-user */
printf(
-"High-level options\n"
-" -o hard_remove immediate removal (don't hide files)\n"
-" -o use_ino let filesystem set inode numbers\n"
-" -o readdir_ino try to fill in d_ino in readdir\n"
-" -o direct_io use direct I/O\n"
" -o kernel_cache cache files in kernel\n"
" -o [no]auto_cache enable caching based on modification times (off)\n"
" -o umask=M set file permissions (octal)\n"
@@ -4431,10 +4428,7 @@ static void fuse_lib_help(void)
" -o ac_attr_timeout=T auto cache timeout for attributes (attr_timeout)\n"
" -o noforget never forget cached inodes\n"
" -o remember=T remember cached inodes for T seconds (0s)\n"
-" -o intr allow requests to be interrupted\n"
-" -o intr_signal=NUM signal to send on interrupt (%i)\n"
-" -o modules=M1[:M2...] names of modules to push onto filesystem stack\n\n",
- FUSE_DEFAULT_INTR_SIGNAL);
+" -o modules=M1[:M2...] names of modules to push onto filesystem stack\n");
}
static void fuse_lib_help_modules(void)
@@ -4610,7 +4604,7 @@ struct fuse *fuse_new(struct fuse_args *args,
if (f->conf.show_help) {
fuse_lib_help();
- fuse_mount_help();
+ fuse_lowlevel_help();
/* Defer printing module help until modules
have been loaded */
}