找回密码
 免费注册

快捷登录

QQ登录

只需一步,快速开始

cosfs --help

[复制链接]
发表于 2022-11-25 00:08:39 | 显示全部楼层 |阅读模式

马上注册,免费下载文档,上传文档可提现,享用更多功能。

您需要 登录 才可以下载或查看,没有账号?免费注册

×
  1. 用法: cosfs BUCKET:[PATH] MOUNTPOINT [OPTION]...

  2. 挂载腾讯云 COS 储存桶作为文件系统.

  3.    cosfs 和 FUSE/mount 的常规选项:
  4.       -o opt[,opt...]
  5.       -o opt [-o opt] ...

  6. cosfs 选项:

  7.    大多数 cosfs 选项以"opt"的形式给出:

  8.              <option_name>=<option_value>

  9.    default_acl (默认="public-read")
  10.      - 应用所有写入cos对象时的默认acl

  11.    retries (默认="2")
  12.       -  cos 事务失败时的重试次数

  13.    use_cache (默认="" 即禁用缓存)
  14.       - 用于本地文件缓存的本地文件夹

  15.    del_cache (删除本地文件缓存)
  16.       - cosfs启动和退出时删除本地文件缓存

  17.    storage_class (默认="standard")
  18.       - 使用指定的存储类存储对象.  可能的值:
  19.         standard, standard_ia, 和 reduced_redundancy.

  20.    public_bucket (默认="" 即禁用)
  21.       - 设置为 1 时,匿名挂载公共存储桶

  22.    passwd_file (默认="")
  23.       - 指定要使用的 cosfs 密码文件

  24.    connect_timeout (默认="300" 秒)
  25.       - 连接等待超时时间

  26.    readwrite_timeout (默认="60" 秒)
  27.       - 读写等待超时时间

  28.    max_stat_cache_size (默认="1000" 个 (约 4MB))
  29.       - 文件元数据的缓存空间可缓存多少个文件的元数据

  30.    stat_cache_expire (默认不过期)
  31.       - 指定文件元数据缓存的过期时间(秒)

  32.    enable_noobj_cache (默认禁用)
  33.       - enable cache entries for the object which does not exist.
  34.       cosfs always has to check whether file(or sub directory) exists
  35.       under object(path) when cosfs does some command, since cosfs has
  36.       recognized a directory which does not exist and has files or
  37.       sub directories under itself. It increases ListBucket request
  38.       and makes performance bad.
  39.       You can specify this option for performance, cosfs memorizes
  40.       in stat cache that the object(file or directory) does not exist.

  41.    no_check_certificate
  42.       - server certificate won't be checked against the available
  43.       certificate authorities.

  44.    nodnscache (禁用DNS缓存)
  45.       - cosfs is always using dns cache, this option make dns cache disable.

  46.    nosscache (禁用SSL会话缓存)
  47.       - cosfs is always using ssl session cache, this option make ssl
  48.       session cache disable.

  49.    multireq_max (默认="20")
  50.       - maximum number of parallel request for listing objects.

  51.    parallel_count (默认="5")
  52.       - number of parallel request for uploading big objects.
  53.       cosfs uploads large object(over 20MB) by multipart post request,
  54.       and sends parallel requests.
  55.       This option limits parallel request count which cosfs requests
  56.       at once. It is necessary to set this value depending on a CPU
  57.       and a network band.

  58.    multipart_size (默认="10")
  59.       - part size, in MB, for each multipart request.

  60.    ensure_diskfree (默认与 multipart_size 的值相同)
  61.       - sets MB to ensure disk free space. cosfs makes file for
  62.         downloading, uploading and caching files. If the disk free
  63.         space is smaller than this value, cosfs do not use diskspace
  64.         as possible in exchange for the performance.

  65.    singlepart_copy_limit (默认="5120")
  66.       - maximum size, in MB, of a single-part copy before trying
  67.       multipart copy.

  68.    url (默认="")
  69.       - sets the url to use to access tencentyun cos

  70.    default_permission (默认=777)
  71.       - when the file do not have permission meta, cosfs will use this
  72.       defalut value.

  73.    endpoint (默认="")
  74.       - sets the endpoint to use on signature version 4
  75.       If the cosfs could not connect to the region specified
  76.       by this option, cosfs could not run. But if you do not specify this
  77.       option, and if you can not connect with the default region, cosfs
  78.       will retry to automatically connect to the other region. So cosfs
  79.       can know the correct region name, because cosfs can find it in an
  80.       error from the COS server.

  81.    mp_umask (默认为 "0000")
  82.       - sets umask for the mount point directory.
  83.       If allow_other option is not set, cosfs allows access to the mount
  84.       point only to the owner. In the opposite case cosfs allows access
  85.       to all users as the default. But if you set the allow_other with
  86.       this option, you can control the permissions of the
  87.       mount point by this option like umask.

  88.    nomultipart (禁用分段上传)

  89.    enable_content_md5 (默认禁用)
  90.       - ensure data integrity during writes with MD5 hash.


  91.    nocopyapi (for other incomplete compatibility object storage)
  92.         For a distributed object storage which is compatibility COS
  93.         API without PUT(copy api).
  94.         If you set this option, cosfs do not use PUT with
  95.         "x-cos-copy-source"(copy api). Because traffic is increased
  96.         2-3 times by this option, we do not recommend this.

  97.    norenameapi (for other incomplete compatibility object storage)
  98.         For a distributed object storage which is compatibility COS
  99.         API without PUT(copy api).
  100.         This option is a subset of nocopyapi option. The nocopyapi
  101.         option does not use copy-api for all command(ex. chmod, chown,
  102.         touch, mv, etc), but this option does not use copy-api for
  103.         only rename command(ex. mv). If this option is specified with
  104.         nocopyapi, then cosfs ignores it.

  105.    use_path_request_style (use legacy API calling style)
  106.         Enble compatibility with OSS-like APIs which do not support
  107.         the virtual-host request style, by using the older path request
  108.         style.

  109.    dbglevel (默认="crit")
  110.         Set the debug message level. set value as crit(critical), err
  111.         (error), warn(warning), info(information) to debug level.
  112.         default debug level is critical. If cosfs run with "-d" option,
  113.         the debug level is set information. When cosfs catch the signal
  114.         SIGUSR2, the debug level is bumpup.

  115.    curldbg - put curl debug message
  116.         Put the debug message from libcurl when this option is specified.

  117. FUSE/mount 选项:

  118.    Most of the generic mount options described in 'man mount' are
  119.    supported (ro, rw, suid, nosuid, dev, nodev, exec, noexec, atime,
  120.    noatime, sync async, dirsync).  Filesystems are mounted with
  121.    '-onodev,nosuid' by default, which can only be overridden by a
  122.    privileged user.
  123.    
  124.    There are many FUSE specific mount options that can be specified.
  125.    e.g. allow_other  See the FUSE's README for the full set.

  126. 其它选项:

  127. -h, --help        输出帮助信息.
  128.      --version     输出版本信息.
  129. -d  --debug       开启系统日志的调试消息。 指定 -d 两次会启用 FUSE 调试消息到 STDOUT。
  130. -f                FUSE 前台选项 - 不要作为守护程序运行
  131. -s                FUSE 单线程选项(禁用多线程操作)
复制代码






  1. :~# cosfs --help
  2. Usage: cosfs BUCKET:[PATH] MOUNTPOINT [OPTION]...

  3. Mount an Tencent COS bucket as a file system.

  4.    General forms for cosfs and FUSE/mount options:
  5.       -o opt[,opt...]
  6.       -o opt [-o opt] ...

  7. cosfs Options:

  8.    Most cosfs options are given in the form where "opt" is:

  9.              <option_name>=<option_value>

  10.    default_acl (default="public-read")
  11.      - the default canned acl to apply to all written cos objects

  12.    retries (default="2")
  13.       - number of times to retry a failed cos transaction

  14.    use_cache (default="" which means disabled)
  15.       - local folder to use for local file cache

  16.    del_cache (delete local file cache)
  17.       - delete local file cache when cosfs starts and exits.

  18.    storage_class (default="standard")
  19.       - store object with specified storage class.  Possible values:
  20.         standard, standard_ia, and reduced_redundancy.

  21.    public_bucket (default="" which means disabled)
  22.       - anonymously mount a public bucket when set to 1

  23.    passwd_file (default="")
  24.       - specify which cosfs password file to use

  25.    connect_timeout (default="300" seconds)
  26.       - time to wait for connection before giving up

  27.    readwrite_timeout (default="60" seconds)
  28.       - time to wait between read/write activity before giving up

  29.    max_stat_cache_size (default="1000" entries (about 4MB))
  30.       - maximum number of entries in the stat cache

  31.    stat_cache_expire (default is no expire)
  32.       - specify expire time(seconds) for entries in the stat cache.

  33.    enable_noobj_cache (default is disable)
  34.       - enable cache entries for the object which does not exist.
  35.       cosfs always has to check whether file(or sub directory) exists
  36.       under object(path) when cosfs does some command, since cosfs has
  37.       recognized a directory which does not exist and has files or
  38.       sub directories under itself. It increases ListBucket request
  39.       and makes performance bad.
  40.       You can specify this option for performance, cosfs memorizes
  41.       in stat cache that the object(file or directory) does not exist.

  42.    no_check_certificate
  43.       - server certificate won't be checked against the available
  44.       certificate authorities.

  45.    nodnscache (disable dns cache)
  46.       - cosfs is always using dns cache, this option make dns cache disable.

  47.    nosscache (disable ssl session cache)
  48.       - cosfs is always using ssl session cache, this option make ssl
  49.       session cache disable.

  50.    multireq_max (default="20")
  51.       - maximum number of parallel request for listing objects.

  52.    parallel_count (default="5")
  53.       - number of parallel request for uploading big objects.
  54.       cosfs uploads large object(over 20MB) by multipart post request,
  55.       and sends parallel requests.
  56.       This option limits parallel request count which cosfs requests
  57.       at once. It is necessary to set this value depending on a CPU
  58.       and a network band.

  59.    multipart_size (default="10")
  60.       - part size, in MB, for each multipart request.

  61.    ensure_diskfree (default same multipart_size value)
  62.       - sets MB to ensure disk free space. cosfs makes file for
  63.         downloading, uploading and caching files. If the disk free
  64.         space is smaller than this value, cosfs do not use diskspace
  65.         as possible in exchange for the performance.

  66.    singlepart_copy_limit (default="5120")
  67.       - maximum size, in MB, of a single-part copy before trying
  68.       multipart copy.

  69.    url (default="")
  70.       - sets the url to use to access tencentyun cos

  71.    default_permission (default=777)
  72.       - when the file do not have permission meta, cosfs will use this
  73.       defalut value.

  74.    endpoint (default="")
  75.       - sets the endpoint to use on signature version 4
  76.       If the cosfs could not connect to the region specified
  77.       by this option, cosfs could not run. But if you do not specify this
  78.       option, and if you can not connect with the default region, cosfs
  79.       will retry to automatically connect to the other region. So cosfs
  80.       can know the correct region name, because cosfs can find it in an
  81.       error from the COS server.

  82.    mp_umask (default is "0000")
  83.       - sets umask for the mount point directory.
  84.       If allow_other option is not set, cosfs allows access to the mount
  85.       point only to the owner. In the opposite case cosfs allows access
  86.       to all users as the default. But if you set the allow_other with
  87.       this option, you can control the permissions of the
  88.       mount point by this option like umask.

  89.    nomultipart (disable multipart uploads)

  90.    enable_content_md5 (default is disable)
  91.       - ensure data integrity during writes with MD5 hash.


  92.    nocopyapi (for other incomplete compatibility object storage)
  93.         For a distributed object storage which is compatibility COS
  94.         API without PUT(copy api).
  95.         If you set this option, cosfs do not use PUT with
  96.         "x-cos-copy-source"(copy api). Because traffic is increased
  97.         2-3 times by this option, we do not recommend this.

  98.    norenameapi (for other incomplete compatibility object storage)
  99.         For a distributed object storage which is compatibility COS
  100.         API without PUT(copy api).
  101.         This option is a subset of nocopyapi option. The nocopyapi
  102.         option does not use copy-api for all command(ex. chmod, chown,
  103.         touch, mv, etc), but this option does not use copy-api for
  104.         only rename command(ex. mv). If this option is specified with
  105.         nocopyapi, then cosfs ignores it.

  106.    use_path_request_style (use legacy API calling style)
  107.         Enble compatibility with OSS-like APIs which do not support
  108.         the virtual-host request style, by using the older path request
  109.         style.

  110.    dbglevel (default="crit")
  111.         Set the debug message level. set value as crit(critical), err
  112.         (error), warn(warning), info(information) to debug level.
  113.         default debug level is critical. If cosfs run with "-d" option,
  114.         the debug level is set information. When cosfs catch the signal
  115.         SIGUSR2, the debug level is bumpup.

  116.    curldbg - put curl debug message
  117.         Put the debug message from libcurl when this option is specified.

  118. FUSE/mount Options:

  119.    Most of the generic mount options described in 'man mount' are
  120.    supported (ro, rw, suid, nosuid, dev, nodev, exec, noexec, atime,
  121.    noatime, sync async, dirsync).  Filesystems are mounted with
  122.    '-onodev,nosuid' by default, which can only be overridden by a
  123.    privileged user.
  124.    
  125.    There are many FUSE specific mount options that can be specified.
  126.    e.g. allow_other  See the FUSE's README for the full set.

  127. Miscellaneous Options:

  128. -h, --help        Output this help.
  129.      --version     Output version info.
  130. -d  --debug       Turn on DEBUG messages to syslog. Specifying -d
  131.                    twice turns on FUSE debug messages to STDOUT.
  132. -f                FUSE foreground option - do not run as daemon.
  133. -s                FUSE singlethread option
  134.                    disable multi-threaded operation
复制代码


您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|手机版|小黑屋|网站声明|电子亮照|学问库 ( 冀ICP备2021002572号 )

GMT+8, 2023-9-22 22:23 , Processed in 0.019615 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表