Skip to content

Instantly share code, notes, and snippets.

@evsar3
Created May 22, 2020 15:58
Show Gist options
  • Save evsar3/1c02089094d1e874ff0aa2f0293df48c to your computer and use it in GitHub Desktop.
Save evsar3/1c02089094d1e874ff0aa2f0293df48c to your computer and use it in GitHub Desktop.

Revisions

  1. evsar3 created this gist May 22, 2020.
    68 changes: 68 additions & 0 deletions sshfsOptions.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,68 @@
    /**
    * List of all SSHFS options available in the manual
    * The manual reference can be found here:
    * https://linux.die.net/man/1/sshfs
    */

    const sshfsOptions = [
    {
    name: 'reconnect',
    type: 'bool',
    description: 'Reconnect to server'
    },
    {
    name: 'delay_connect',
    type: 'bool',
    description: 'Delay connection to server'
    },
    {
    name: 'sshfs_sync',
    type: 'bool',
    description: 'Synchronous writes'
    },
    {
    name: 'no_readahead',
    type: 'bool',
    description: 'Synchronous reads (no speculative readahead)'
    },
    {
    name: 'sshfs_debug',
    type: 'bool',
    description: 'Print some debugging information'
    },
    {
    name: 'cache',
    type: 'string',
    description: 'Enable caching {yes,no} (default: yes)'
    },
    {
    name: 'cache_timeout',
    type: 'number',
    description: 'Sets timeout for caches in seconds (default: 20)'
    },
    {
    name: 'cache_stat_timeout',
    type: 'number',
    description: 'Sets timeout for stat cache'
    },
    {
    name: 'cache_dir_timeout',
    type: 'number',
    description: 'Sets timeout for dir cache'
    },
    {
    name: 'cache_link_timeout',
    type: 'number',
    description: 'Sets timeout for link cache'
    },
    {
    name: 'workaround',
    type: 'string',
    description: 'Colon separated list of workarounds'
    },
    {
    name: 'idmap',
    type: 'string',
    description: 'User/group ID mapping'
    }
    ]