Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Juicedata
JuiceFS
提交
f84f0e35
JuiceFS
项目概览
Juicedata
/
JuiceFS
通知
10
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
JuiceFS
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
f84f0e35
编写于
1月 27, 2021
作者:
C
Changjian Gao
提交者:
GitHub
1月 27, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update command reference doc (#122)
* Update command reference doc * Hard line break
上级
15db788c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
50 addition
and
49 deletion
+50
-49
README.md
README.md
+1
-2
README_CN.md
README_CN.md
+4
-2
cmd/main.go
cmd/main.go
+1
-1
cmd/mount.go
cmd/mount.go
+2
-2
docs/command_reference.md
docs/command_reference.md
+42
-42
未找到文件。
README.md
浏览文件 @
f84f0e35
...
@@ -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
...
...
README_CN.md
浏览文件 @
f84f0e35
...
@@ -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 客户端
-
存储加密
-
存储加密
...
...
cmd/main.go
浏览文件 @
f84f0e35
...
@@ -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 file
system built on r
edis and object storage."
,
Usage
:
"A POSIX file
system built on R
edis and object storage."
,
Version
:
Version
(),
Version
:
Version
(),
Copyright
:
"AGPLv3"
,
Copyright
:
"AGPLv3"
,
Flags
:
[]
cli
.
Flag
{
Flags
:
[]
cli
.
Flag
{
...
...
cmd/mount.go
浏览文件 @
f84f0e35
...
@@ -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 M
i
B"
,
},
},
&
cli
.
IntFlag
{
&
cli
.
IntFlag
{
Name
:
"prefetch"
,
Name
:
"prefetch"
,
...
...
docs/command_reference.md
浏览文件 @
f84f0e35
# 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 file
system built on r
edis and object storage.
juicefs - A POSIX file
system built on R
edis 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.
t
he volume shoud be formatted first.
Mount a volume.
T
he 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 M
i
B (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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录