未验证 提交 f84f0e35 编写于 作者: C Changjian Gao 提交者: GitHub

Update command reference doc (#122)

* Update command reference doc

* Hard line break
上级 15db788c
...@@ -19,7 +19,7 @@ The highlighted features are: ...@@ -19,7 +19,7 @@ The highlighted features are:
--- ---
[Architecture](#architecture) | [Getting Started](#getting-started) | [POSIX Compatibility](#posix-compatibility) | [Performance Benchmark](#performance-benchmark) | [Supported Object Storage](#supported-object-storage) | [Command Reference](docs/command_reference.md) | [Status](#status) | [Roadmap](#roadmap) | [Reporting Issues](#reporting-issues) | [Contributing](#contributing) | [Community](#community) | [Usage Tracking](#usage-tracking) | [License](#license) | [Credits](#credits) | [FAQ](#faq) [Architecture](#architecture) | [Getting Started](#getting-started) | [POSIX Compatibility](#posix-compatibility) | [Performance Benchmark](#performance-benchmark) | [Supported Object Storage](#supported-object-storage) | [Status](#status) | [Roadmap](#roadmap) | [Reporting Issues](#reporting-issues) | [Contributing](#contributing) | [Community](#community) | [Usage Tracking](#usage-tracking) | [License](#license) | [Credits](#credits) | [FAQ](#faq)
--- ---
...@@ -178,7 +178,6 @@ It's considered as beta quality, the storage format is not stabilized yet. It's ...@@ -178,7 +178,6 @@ It's considered as beta quality, the storage format is not stabilized yet. It's
## Roadmap ## Roadmap
- Stabilize storage format - Stabilize storage format
- Hadoop SDK
- S3 gateway - S3 gateway
- Windows client - Windows client
- Encryption at rest - Encryption at rest
......
...@@ -90,10 +90,13 @@ $ ./juicefs mount -d localhost ~/jfs ...@@ -90,10 +90,13 @@ $ ./juicefs mount -d localhost ~/jfs
挂载之后你可以像使用本地盘一样使用它,详细的挂载参数,请运行 `./juicefs mount -h` 挂载之后你可以像使用本地盘一样使用它,详细的挂载参数,请运行 `./juicefs mount -h`
### 命令索引
请点击[这里](docs/command_reference.md)查看所有子命令以及命令行参数。
### Kubernetes ### Kubernetes
JuiceFS 提供 [K8s CSI 驱动](https://github.com/juicedata/juicefs-csi-driver)来简化部署. JuiceFS 提供 [K8s CSI 驱动](https://github.com/juicedata/juicefs-csi-driver)来简化部署
## POSIX 兼容性测试 ## POSIX 兼容性测试
...@@ -174,7 +177,6 @@ JuiceFS 目前是 beta 状态,核心的存储格式还没有完全确定,还 ...@@ -174,7 +177,6 @@ JuiceFS 目前是 beta 状态,核心的存储格式还没有完全确定,还
## 产品路线图 ## 产品路线图
- 稳定存储格式 - 稳定存储格式
- Hadoop 客户端
- S3 兼容网关 - S3 兼容网关
- Windows 客户端 - Windows 客户端
- 存储加密 - 存储加密
......
...@@ -37,7 +37,7 @@ func main() { ...@@ -37,7 +37,7 @@ func main() {
} }
app := &cli.App{ app := &cli.App{
Name: "juicefs", Name: "juicefs",
Usage: "A POSIX filesystem built on redis and object storage.", Usage: "A POSIX file system built on Redis and object storage.",
Version: Version(), Version: Version(),
Copyright: "AGPLv3", Copyright: "AGPLv3",
Flags: []cli.Flag{ Flags: []cli.Flag{
......
...@@ -230,7 +230,7 @@ func mountFlags() *cli.Command { ...@@ -230,7 +230,7 @@ func mountFlags() *cli.Command {
&cli.StringFlag{ &cli.StringFlag{
Name: "o", Name: "o",
Usage: "other fuse options", Usage: "other FUSE options",
}, },
&cli.Float64Flag{ &cli.Float64Flag{
Name: "attr-cache", Name: "attr-cache",
...@@ -275,7 +275,7 @@ func mountFlags() *cli.Command { ...@@ -275,7 +275,7 @@ func mountFlags() *cli.Command {
&cli.IntFlag{ &cli.IntFlag{
Name: "buffer-size", Name: "buffer-size",
Value: 300, Value: 300,
Usage: "total read/write buffering in MB", Usage: "total read/write buffering in MiB",
}, },
&cli.IntFlag{ &cli.IntFlag{
Name: "prefetch", Name: "prefetch",
......
# Command Reference # Command Reference
There are many commands to help you manage your filesystem. This page provides a detailed reference for these commands. There are many commands to help you manage your file system. This page provides a detailed reference for these commands.
## Overview ## Overview
...@@ -8,7 +8,7 @@ If you run `juicefs` by itself, it will print all available subcommands. In addi ...@@ -8,7 +8,7 @@ If you run `juicefs` by itself, it will print all available subcommands. In addi
``` ```
NAME: NAME:
juicefs - A POSIX filesystem built on redis and object storage. juicefs - A POSIX file system built on Redis and object storage.
USAGE: USAGE:
juicefs [global options] command [command options] [arguments...] juicefs [global options] command [command options] [arguments...]
...@@ -45,7 +45,7 @@ The documentation below gives you detailed information about each subcommand. ...@@ -45,7 +45,7 @@ The documentation below gives you detailed information about each subcommand.
### Description ### Description
Format a volume. It's the first step for initializing a new filesystem volume. Format a volume. It's the first step for initializing a new file system volume.
### Synopsis ### Synopsis
...@@ -55,32 +55,32 @@ juicefs format [command options] REDIS-URL NAME ...@@ -55,32 +55,32 @@ juicefs format [command options] REDIS-URL NAME
### Options ### Options
`--block-size value` `--block-size value`\
size of block in KiB (default: 4096) size of block in KiB (default: 4096)
`--compress value` `--compress value`\
compression algorithm (lz4, zstd, none) (default: "lz4") compression algorithm (lz4, zstd, none) (default: "lz4")
`--storage value` `--storage value`\
Object storage type (e.g. s3, gcs, oss, cos) (default: "file") Object storage type (e.g. s3, gcs, oss, cos) (default: "file")
`--bucket value` `--bucket value`\
A bucket URL to store data (default: `"/Users/surui/.juicefs/local"`) A bucket URL to store data (default: `"$HOME/.juicefs/local"`)
`--access-key value` `--access-key value`\
Access key for object storage (env ACCESS_KEY) Access key for object storage (env `ACCESS_KEY`)
`--secret-key value` `--secret-key value`\
Secret key for object storage (env SECRET_KEY) Secret key for object storage (env `SECRET_KEY`)
`--force` `--force`\
overwrite existing format (default: false) overwrite existing format (default: false)
## juicefs mount ## juicefs mount
### Description ### Description
Mount a volume. the volume shoud be formatted first. Mount a volume. The volume shoud be formatted first.
### Synopsis ### Synopsis
...@@ -90,61 +90,61 @@ juicefs mount [command options] REDIS-URL MOUNTPOINT ...@@ -90,61 +90,61 @@ juicefs mount [command options] REDIS-URL MOUNTPOINT
### Options ### Options
`-d, --background` `-d, --background`\
run in background (default: false) run in background (default: false)
`--no-syslog` `--no-syslog`\
disable syslog (default: false) disable syslog (default: false)
`-o value` `-o value`\
other fuse options other FUSE options
`--attr-cache value` `--attr-cache value`\
attributes cache timeout in seconds (default: 1) attributes cache timeout in seconds (default: 1)
`--entry-cache value` `--entry-cache value`\
file entry cache timeout in seconds (default: 1) file entry cache timeout in seconds (default: 1)
`--dir-entry-cache value` `--dir-entry-cache value`\
dir entry cache timeout in seconds (default: 1) dir entry cache timeout in seconds (default: 1)
`--enable-xattr` `--enable-xattr`\
enable extended attributes (xattr) (default: false) enable extended attributes (xattr) (default: false)
`--get-timeout value` `--get-timeout value`\
the max number of seconds to download an object (default: 60) the max number of seconds to download an object (default: 60)
`--put-timeout value` `--put-timeout value`\
the max number of seconds to upload an object (default: 60) the max number of seconds to upload an object (default: 60)
`--io-retries value` `--io-retries value`\
number of retries after network failure (default: 30) number of retries after network failure (default: 30)
`--max-uploads value` `--max-uploads value`\
number of connections to upload (default: 20) number of connections to upload (default: 20)
`--buffer-size value` `--buffer-size value`\
total read/write buffering in MB (default: 300) total read/write buffering in MiB (default: 300)
`--prefetch value` `--prefetch value`\
prefetch N blocks in parallel (default: 3) prefetch N blocks in parallel (default: 3)
`--writeback` `--writeback`\
Upload objects in background (default: false) Upload objects in background (default: false)
`--cache-dir value` `--cache-dir value`\
directory to cache object (default: `"/Users/surui/.juicefs/cache"`) directory to cache object (default: `"$HOME/.juicefs/cache"`)
`--cache-size value` `--cache-size value`\
size of cached objects in MiB (default: 1024) size of cached objects in MiB (default: 1024)
`--free-space-ratio value` `--free-space-ratio value`\
min free space (ratio) (default: 0.1) min free space (ratio) (default: 0.1)
`--cache-partial-only` `--cache-partial-only`\
cache only random/small read (default: false) cache only random/small read (default: false)
`--no-usage-report` `--no-usage-report`\
do not send usage report (default: false) do not send usage report (default: false)
## juicefs benchmark ## juicefs benchmark
...@@ -161,17 +161,17 @@ juicefs benchmark [command options] [arguments...] ...@@ -161,17 +161,17 @@ juicefs benchmark [command options] [arguments...]
### Options ### Options
`--dest value` `--dest value`\
path to run benchmark (default: `"/jfs/benchmark"`) path to run benchmark (default: `"/jfs/benchmark"`)
`--block-size value` `--block-size value`\
block size in MiB (default: 1) block size in MiB (default: 1)
`--bigfile-file-size value` `--bigfile-file-size value`\
size of big file in MiB (default: 1024) size of big file in MiB (default: 1024)
`--smallfile-file-size value` `--smallfile-file-size value`\
size of small file in MiB (default: 0.1) size of small file in MiB (default: 0.1)
`--smallfile-count value` `--smallfile-count value`\
number of small files (default: 100) number of small files (default: 100)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册