diff --git a/src/option_parser.cpp b/src/option_parser.cpp index 96a778d3..8e308630 100644 --- a/src/option_parser.cpp +++ b/src/option_parser.cpp @@ -313,12 +313,13 @@ usage(void) "mergerfs options:\n" " ':' delimited list of directories. Supports\n" " shell globbing (must be escaped in shell)\n" - " -o config= Read options from file in key=val format\n" - " -o func.=

Set function to policy

\n" - " -o category.=

Set functions in category to

\n" - " -o cache.open= 'open' policy cache timeout in seconds.\n" + " -o config=FILE Read options from file in key=val format\n" + " -o func.FUNC=POLICY Set function FUNC to policy POLICY\n" + " -o category.CAT=POLICY Set functions in category CAT to POLICY\n" + " -o fsname=STR Sets the name of the filesystem.\n" + " -o cache.open=INT 'open' policy cache timeout in seconds.\n" " default = 0 (disabled)\n" - " -o cache.statfs= 'statfs' cache timeout in seconds. Used by\n" + " -o cache.statfs=INT 'statfs' cache timeout in seconds. Used by\n" " policies. default = 0 (disabled)\n" " -o cache.files=libfuse|off|partial|full|auto-full\n" " * libfuse: Use direct_io, kernel_cache, auto_cache\n" @@ -328,47 +329,55 @@ usage(void) " * full: Keep cache on file open\n" " * auto-full: Keep cache if mtime & size not changed\n" " default = libfuse\n" - " -o cache.writeback=\n" + " -o cache.writeback=BOOL\n" " Enable kernel writeback caching (if supported)\n" " cache.files must be enabled as well.\n" " default = false\n" - " -o cache.symlinks=\n" + " -o cache.symlinks=BOOL\n" " Enable kernel caching of symlinks (if supported)\n" " default = false\n" - " -o cache.readdir=\n" + " -o cache.readdir=BOOL\n" " Enable kernel caching readdir (if supported)\n" " default = false\n" - " -o cache.attr= File attribute cache timeout in seconds.\n" + " -o cache.attr=INT File attribute cache timeout in seconds.\n" " default = 1\n" - " -o cache.entry= File name lookup cache timeout in seconds.\n" + " -o cache.entry=INT File name lookup cache timeout in seconds.\n" " default = 1\n" - " -o cache.negative_entry=\n" + " -o cache.negative_entry=INT\n" " Negative file name lookup cache timeout in\n" " seconds. default = 0\n" " -o use_ino Have mergerfs generate inode values rather than\n" " autogenerated by libfuse. Suggested.\n" - " -o minfreespace= Minimum free space needed for certain policies.\n" + " -o inodecalc=passthrough|path-hash|devino-hash|hybrid-hash\n" + " Selects the inode calculation algorithm.\n" + " default = hybrid-hash\n" + " -o minfreespace=INT Minimum free space needed for certain policies.\n" " default = 4G\n" - " -o moveonenospc= Try to move file to another drive when ENOSPC\n" + " -o moveonenospc=BOOL Try to move file to another drive when ENOSPC\n" " on write. default = false\n" - " -o dropcacheonclose=\n" + " -o dropcacheonclose=BOOL\n" " When a file is closed suggest to OS it drop\n" " the file's cache. This is useful when using\n" " 'cache.files'. default = false\n" - " -o symlinkify= Read-only files, after a timeout, will be turned\n" + " -o symlinkify=BOOL Read-only files, after a timeout, will be turned\n" " into symlinks. Read docs for limitations and\n" " possible issues. default = false\n" - " -o symlinkify_timeout=\n" + " -o symlinkify_timeout=INT\n" " Timeout in seconds before files turn to symlinks.\n" " default = 3600\n" - " -o nullrw= Disables reads and writes. For benchmarking.\n" + " -o nullrw=BOOL Disables reads and writes. For benchmarking.\n" " default = false\n" - " -o ignorepponrename=\n" + " -o ignorepponrename=BOOL\n" " Ignore path preserving when performing renames\n" " and links. default = false\n" - " -o link_cow= Delink/clone file on open to simulate CoW.\n" + " -o link_cow=BOOL Delink/clone file on open to simulate CoW.\n" " default = false\n" - " -o security_capability=\n" + " -o nfsopenhack=off|git|all\n" + " A workaround for exporting mergerfs over NFS\n" + " where there are issues with creating files for\n" + " write while setting the mode to read-only.\n" + " default = off\n" + " -o security_capability=BOOL\n" " When disabled return ENOATTR when the xattr\n" " security.capability is queried. default = true\n" " -o xattr=passthrough|noattr|nosys\n" @@ -387,8 +396,8 @@ usage(void) " as 'read only' or 'no create'. 'nc' will ignore\n" " available space for branches tagged as\n" " 'no create'. default = none\n" - " -o posix_acl= Enable POSIX ACL support. default = false\n" - " -o async_read= If disabled or unavailable the kernel will\n" + " -o posix_acl=BOOL Enable POSIX ACL support. default = false\n" + " -o async_read=BOOL If disabled or unavailable the kernel will\n" " ensure there is at most one pending read \n" " request per file and will attempt to order\n" " requests by offset. default = true\n"