diff --git a/cmd/dump.go b/cmd/dump.go index a4fc75d945441126ac3d9b2c80f66038002d0aff..a1d33804c97a2d6aea77ef926c20cbebd69c9c4f 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -27,7 +27,7 @@ import ( func dump(ctx *cli.Context) error { setLoggerLevel(ctx) if ctx.Args().Len() < 1 { - return fmt.Errorf("META-ADDR is needed") + return fmt.Errorf("META-URL is needed") } var fp io.WriteCloser if ctx.Args().Len() == 1 { @@ -48,7 +48,7 @@ func dumpFlags() *cli.Command { return &cli.Command{ Name: "dump", Usage: "dump metadata into a JSON file", - ArgsUsage: "META-ADDR [FILE]", + ArgsUsage: "META-URL [FILE]", Action: dump, Flags: []cli.Flag{ &cli.StringFlag{ diff --git a/cmd/format.go b/cmd/format.go index 374c1d848eeb002e5a0c7e1515c495f582ae67f9..97dc464c7433d69cb04276f93196d2055ec27796 100644 --- a/cmd/format.go +++ b/cmd/format.go @@ -239,7 +239,7 @@ func formatFlags() *cli.Command { return &cli.Command{ Name: "format", Usage: "format a volume", - ArgsUsage: "REDIS-URL NAME", + ArgsUsage: "META-URL NAME", Flags: []cli.Flag{ &cli.IntFlag{ Name: "block-size", diff --git a/cmd/fsck.go b/cmd/fsck.go index d471d5c5ac0ba829e0e6d4be4505a0d0ce54265a..74fc9fa664f2e9af5e39b7efd4134166686a826f 100644 --- a/cmd/fsck.go +++ b/cmd/fsck.go @@ -31,7 +31,7 @@ func checkFlags() *cli.Command { return &cli.Command{ Name: "fsck", Usage: "Check consistency of file system", - ArgsUsage: "REDIS-URL", + ArgsUsage: "META-URL", Action: fsck, } } @@ -39,7 +39,7 @@ func checkFlags() *cli.Command { func fsck(ctx *cli.Context) error { setLoggerLevel(ctx) if ctx.Args().Len() < 1 { - return fmt.Errorf("REDIS-URL is needed") + return fmt.Errorf("META-URL is needed") } m := meta.NewClient(ctx.Args().Get(0), &meta.Config{Retries: 10, Strict: true}) format, err := m.Load() diff --git a/cmd/gateway.go b/cmd/gateway.go index 3f256cff22f59aab7139ab4ff6e10b5526126e2a..9bced8a7abd91c680f6f8be5ffd57561398bfbfd 100644 --- a/cmd/gateway.go +++ b/cmd/gateway.go @@ -73,7 +73,7 @@ func gatewayFlags() *cli.Command { return &cli.Command{ Name: "gateway", Usage: "S3-compatible gateway", - ArgsUsage: "REDIS-URL ADDRESS", + ArgsUsage: "META-URL ADDRESS", Flags: flags, Action: gateway, } diff --git a/cmd/gc.go b/cmd/gc.go index 490140c4769d963bae0e5447dd0c91746c32977d..9f28566feef9d78f5ae47ee91971cbac25d21dbe 100644 --- a/cmd/gc.go +++ b/cmd/gc.go @@ -36,7 +36,7 @@ func gcFlags() *cli.Command { return &cli.Command{ Name: "gc", Usage: "collect any leaked objects", - ArgsUsage: "REDIS-URL", + ArgsUsage: "META-URL", Action: gc, Flags: []cli.Flag{ &cli.BoolFlag{ @@ -104,7 +104,7 @@ func showProgress(p *gcProgress) { func gc(ctx *cli.Context) error { setLoggerLevel(ctx) if ctx.Args().Len() < 1 { - return fmt.Errorf("REDIS-URL is needed") + return fmt.Errorf("META-URL is needed") } m := meta.NewClient(ctx.Args().Get(0), &meta.Config{Retries: 10, Strict: true}) format, err := m.Load() diff --git a/cmd/load.go b/cmd/load.go index a4ac396a138f7ae7147adb1b76115074e98e244e..0e329ac71c2be52f9be1a2d7d1ead2946d7faec3 100644 --- a/cmd/load.go +++ b/cmd/load.go @@ -27,7 +27,7 @@ import ( func load(ctx *cli.Context) error { setLoggerLevel(ctx) if ctx.Args().Len() < 1 { - return fmt.Errorf("META-ADDR is needed") + return fmt.Errorf("META-URL is needed") } var buf []byte var err error @@ -47,7 +47,7 @@ func loadFlags() *cli.Command { return &cli.Command{ Name: "load", Usage: "load metadata from a previously dumped JSON file", - ArgsUsage: "META-ADDR [FILE]", + ArgsUsage: "META-URL [FILE]", Action: load, } } diff --git a/cmd/mount.go b/cmd/mount.go index b1c670b34d5d6e667cb04d8bad2b15ec41648bab..d300803b5622cd9bb9b8510e8c0acc1d47de0180 100644 --- a/cmd/mount.go +++ b/cmd/mount.go @@ -324,7 +324,7 @@ func mountFlags() *cli.Command { cmd := &cli.Command{ Name: "mount", Usage: "mount a volume", - ArgsUsage: "REDIS-URL MOUNTPOINT", + ArgsUsage: "META-URL MOUNTPOINT", Action: mount, Flags: []cli.Flag{ &cli.StringFlag{ diff --git a/cmd/status.go b/cmd/status.go index 60fc72a8574b9ba4eb1e7eb1fe479799836b9f5c..e42adc0890cbf90f85a0b93231c500fc3406f1a5 100644 --- a/cmd/status.go +++ b/cmd/status.go @@ -39,7 +39,7 @@ func printJson(v interface{}) { func status(ctx *cli.Context) error { setLoggerLevel(ctx) if ctx.Args().Len() < 1 { - return fmt.Errorf("REDIS-URL is needed") + return fmt.Errorf("META-URL is needed") } m := meta.NewClient(ctx.Args().Get(0), &meta.Config{Retries: 10, Strict: true}) @@ -72,7 +72,7 @@ func statusFlags() *cli.Command { return &cli.Command{ Name: "status", Usage: "show status of JuiceFS", - ArgsUsage: "REDIS-URL", + ArgsUsage: "META-URL", Action: status, Flags: []cli.Flag{ &cli.Uint64Flag{ diff --git a/docs/en/command_reference.md b/docs/en/command_reference.md index abc3c13561d75b0df80c66b0afcdf4ee6db6772d..908ac608681c63c9b9e25a4abff07972798a510e 100644 --- a/docs/en/command_reference.md +++ b/docs/en/command_reference.md @@ -97,7 +97,7 @@ Format a volume. It's the first step for initializing a new file system volume. #### Synopsis ``` -juicefs format [command options] REDIS-URL NAME +juicefs format [command options] META-URL NAME ``` #### Options @@ -147,7 +147,7 @@ Mount a volume. The volume shoud be formatted first. #### Synopsis ``` -juicefs mount [command options] REDIS-URL MOUNTPOINT +juicefs mount [command options] META-URL MOUNTPOINT ``` #### Options @@ -247,7 +247,7 @@ S3-compatible gateway. #### Synopsis ``` -juicefs gateway [command options] REDIS-URL ADDRESS +juicefs gateway [command options] META-URL ADDRESS ``` #### Options @@ -424,7 +424,7 @@ Collect any leaked objects. #### Synopsis ``` -juicefs gc [command options] REDIS-URL +juicefs gc [command options] META-URL ``` #### Options @@ -447,7 +447,7 @@ Check consistency of file system. #### Synopsis ``` -juicefs fsck [command options] REDIS-URL +juicefs fsck [command options] META-URL ``` ### juicefs profile @@ -485,7 +485,7 @@ show status of JuiceFS #### Synopsis ``` -juicefs status [command options] REDIS-URL +juicefs status [command options] META-URL ``` #### Options @@ -525,7 +525,7 @@ dump metadata into a JSON file #### Synopsis ``` -juicefs dump [command options] META-ADDR [FILE] +juicefs dump [command options] META-URL [FILE] ``` When the FILE is not provided, STDOUT will be used instead. @@ -544,7 +544,7 @@ load metadata from a previously dumped JSON file #### Synopsis ``` -juicefs load [command options] META-ADDR [FILE] +juicefs load [command options] META-URL [FILE] ``` When the FILE is not provided, STDIN will be used instead. diff --git a/docs/en/encrypt.md b/docs/en/encrypt.md index bd8b9f24790605b9b8b8c44927c8c3f10074fd94..889c2f7dc41ac335de0a6644746c64fa4c3694b7 100644 --- a/docs/en/encrypt.md +++ b/docs/en/encrypt.md @@ -77,7 +77,7 @@ $ openssl genrsa -out my-priv-key.pem -aes256 2048 2. Provide the key during format: ```shell -$ juicefs format --encrypt-rsa-key my-priv-key.pem REDIS-URI NAME +$ juicefs format --encrypt-rsa-key my-priv-key.pem META-URL NAME ``` > **Note**: If the private key is protected by a passphrase, it should be specified using `JFS_RSA_PASSPHRASE` for `juicefs mount`. diff --git a/docs/en/juicefs_on_macos.md b/docs/en/juicefs_on_macos.md index a432088702dd899f9ff45b9e3d161105cec4f47f..1f60e0031219a64467b7295e1c12cf5a84c82f60 100644 --- a/docs/en/juicefs_on_macos.md +++ b/docs/en/juicefs_on_macos.md @@ -41,7 +41,7 @@ $ juicefs mount redis://192.168.1.8:6379/1 ~/music ## 4. Automatically mount JuiceFS on boot -Create a file named `io.juicefs..plist` under `~/Library/LaunchAgents`. Replace `` with JuiceFS volume name. Add following contents to the file (again, replace `NAME`, `PATH-TO-JUICEFS`, `REDIS-URL` and `MOUNTPOINT` with appropriate value): +Create a file named `io.juicefs..plist` under `~/Library/LaunchAgents`. Replace `` with JuiceFS volume name. Add following contents to the file (again, replace `NAME`, `PATH-TO-JUICEFS`, `META-URL` and `MOUNTPOINT` with appropriate value): ```xml @@ -54,7 +54,7 @@ Create a file named `io.juicefs..plist` under `~/Library/LaunchAgents`. Re PATH-TO-JUICEFS mount - REDIS-URL + META-URL MOUNTPOINT RunAtLoad diff --git a/docs/en/mount_at_boot.md b/docs/en/mount_at_boot.md index 048cb63180777f1e127da7bd9fe09c19f012e6fd..463a4f66468cedab62cd14004074e39abbc7fb5f 100644 --- a/docs/en/mount_at_boot.md +++ b/docs/en/mount_at_boot.md @@ -7,10 +7,10 @@ This is a guide about how to mount JuiceFS automatically at boot. Copy `juicefs` as `/sbin/mount.juicefs`, then edit `/etc/fstab` with following line: ``` - juicefs _netdev[,] 0 0 + juicefs _netdev[,] 0 0 ``` -The format of `` is `redis://:@:/`, e.g. `redis://localhost:6379/1`. And replace `` with specific path you wanna mount JuiceFS to, e.g. `/jfs`. If you need set [mount options](command_reference.md#juicefs-mount), replace `[,]` with comma separated options list. The following line is an example: +The format of `` is `redis://:@:/`, e.g. `redis://localhost:6379/1`. And replace `` with specific path you wanna mount JuiceFS to, e.g. `/jfs`. If you need set [mount options](command_reference.md#juicefs-mount), replace `[,]` with comma separated options list. The following line is an example: ``` redis://localhost:6379/1 /jfs juicefs _netdev,max-uploads=50,writeback,cache-size=2048 0 0 @@ -24,7 +24,7 @@ $ sudo chkconfig --add netfs ## macOS -Create a file named `io.juicefs..plist` under `~/Library/LaunchAgents`. Replace `` with JuiceFS volume name. Add following contents to the file (again, replace `NAME`, `PATH-TO-JUICEFS`, `REDIS-URL` and `MOUNTPOINT` with appropriate value): +Create a file named `io.juicefs..plist` under `~/Library/LaunchAgents`. Replace `` with JuiceFS volume name. Add following contents to the file (again, replace `NAME`, `PATH-TO-JUICEFS`, `META-URL` and `MOUNTPOINT` with appropriate value): ```xml @@ -37,7 +37,7 @@ Create a file named `io.juicefs..plist` under `~/Library/LaunchAgents`. Re PATH-TO-JUICEFS mount - REDIS-URL + META-URL MOUNTPOINT RunAtLoad diff --git a/docs/en/quick_start_guide.md b/docs/en/quick_start_guide.md index f38772a914c1997b0d9eea9f6a84544662b9705e..f3d0b386b38c169983113cf9390a7eb6ecb2d16f 100644 --- a/docs/en/quick_start_guide.md +++ b/docs/en/quick_start_guide.md @@ -135,10 +135,10 @@ $ sudo cp /usr/local/bin/juicefs /sbin/mount.juicefs Edit the `/etc/fstab` configuration file, start a new line, and add a record according to the following format: ``` - juicefs _netdev[,] 0 0 + juicefs _netdev[,] 0 0 ``` -- Please replace `` with the actual Redis database address in the format of `redis://:@:/`, for example: `redis ://localhost:6379/1`. +- Please replace `` with the actual Redis database address in the format of `redis://:@:/`, for example: `redis ://localhost:6379/1`. - Please replace `` with the actual mount point of the file system, for example: `/jfs`. - If necessary, please replace `[,]` with the actual [mount option](command_reference.md#juicefs-mount) to be set, and multiple options are separated by commas. diff --git a/docs/en/redis_best_practices.md b/docs/en/redis_best_practices.md index e39f34b0d1d808e7b645699531251284a9289eae..6a16849662117844f9ec8d743e297e77eaf6f394 100644 --- a/docs/en/redis_best_practices.md +++ b/docs/en/redis_best_practices.md @@ -29,7 +29,7 @@ There're some [fundamental things](https://redis.io/topics/sentinel#fundamental- Please read the [official documentation](https://redis.io/topics/sentinel) for more information. -Once Redis servers and Sentinels are deployed, the `REDIS-URL` can be specified as `[redis[s]://][USER:PASSWORD@]MASTERNAME,SENTINEL_ADDRS:SENTINEL_PORT[/DB]`, for example: +Once Redis servers and Sentinels are deployed, the `META-URL` can be specified as `[redis[s]://][USER:PASSWORD@]MASTERNAME,SENTINEL_ADDRS:SENTINEL_PORT[/DB]`, for example: ```bash $ ./juicefs mount rediss://:sentinelPass@masterName,1.2.3.4,1.2.5.6:5000/2 ~/jfs diff --git a/docs/zh_cn/command_reference.md b/docs/zh_cn/command_reference.md index 097bb2fd8548e1403c731edc6cd32c60f9c86bda..fa9e24a97110d76e4f6af783ebffe6b6d56f502c 100644 --- a/docs/zh_cn/command_reference.md +++ b/docs/zh_cn/command_reference.md @@ -97,7 +97,7 @@ $ source /etc/bash_completion.d/juicefs #### 使用 ``` -juicefs format [command options] REDIS-URL NAME +juicefs format [command options] META-URL NAME ``` #### 选项 @@ -147,7 +147,7 @@ RSA 私钥的路径 (PEM) #### 使用 ``` -juicefs mount [command options] REDIS-URL MOUNTPOINT +juicefs mount [command options] META-URL MOUNTPOINT ``` #### 选项 @@ -247,7 +247,7 @@ juicefs umount [command options] MOUNTPOINT #### 使用 ``` -juicefs gateway [command options] REDIS-URL ADDRESS +juicefs gateway [command options] META-URL ADDRESS ``` #### 选项 @@ -424,7 +424,7 @@ juicefs bench [command options] PATH #### 使用 ``` -juicefs gc [command options] REDIS-URL +juicefs gc [command options] META-URL ``` #### 选项 @@ -447,7 +447,7 @@ juicefs gc [command options] REDIS-URL #### 使用 ``` -juicefs fsck [command options] REDIS-URL +juicefs fsck [command options] META-URL ``` ### juicefs profile @@ -485,7 +485,7 @@ juicefs profile [command options] MOUNTPOINT/LOGFILE #### 使用 ``` -juicefs status [command options] REDIS-URL +juicefs status [command options] META-URL ``` #### 选项 @@ -525,7 +525,7 @@ juicefs warmup [command options] [PATH ...] #### 使用 ``` -juicefs dump [command options] META-ADDR [FILE] +juicefs dump [command options] META-URL [FILE] ``` 如果没有指定导出文件路径,会导出到标准输出。 @@ -544,7 +544,7 @@ juicefs dump [command options] META-ADDR [FILE] #### 使用 ``` -juicefs load [command options] META-ADDR [FILE] +juicefs load [command options] META-URL [FILE] ``` 如果没有指定导入文件路径,会从标准输入导入。 diff --git a/docs/zh_cn/encrypt.md b/docs/zh_cn/encrypt.md index 5ec193883fee40b3739ed93a1c4c130a24bfd9e0..d123c32dee7bc01384c04bfbbeaec54247f5bf3b 100644 --- a/docs/zh_cn/encrypt.md +++ b/docs/zh_cn/encrypt.md @@ -59,7 +59,7 @@ $ openssl genrsa -out my-priv-key.pem -aes256 2048 2. 在格式化时提供该密钥 ```shell -$ juicefs format --encrypt-rsa-key my-priv-key.pem REDIS-URI NAME +$ juicefs format --encrypt-rsa-key my-priv-key.pem META-URL NAME ``` > **注意**:如果私钥受密码保护,在执行 `juicefs mount` 时应使用 `JFS_RSA_PASSPHRASE` 来指定该密码。 diff --git a/docs/zh_cn/juicefs_on_macos.md b/docs/zh_cn/juicefs_on_macos.md index 43c60f379eeb6160c46f94ed2844a2b6b6458681..28a8d6021f606958e117b8eb41221305cd33885c 100644 --- a/docs/zh_cn/juicefs_on_macos.md +++ b/docs/zh_cn/juicefs_on_macos.md @@ -41,7 +41,7 @@ $ juicefs mount redis://192.168.1.8:6379/1 ~/music ## 4. 开机自动挂载 JuiceFS -Create a file named `io.juicefs..plist` under `~/Library/LaunchAgents`. Replace `` with JuiceFS volume name. Add following contents to the file (again, replace `NAME`, `PATH-TO-JUICEFS`, `REDIS-URL` and `MOUNTPOINT` with appropriate value): +Create a file named `io.juicefs..plist` under `~/Library/LaunchAgents`. Replace `` with JuiceFS volume name. Add following contents to the file (again, replace `NAME`, `PATH-TO-JUICEFS`, `META-URL` and `MOUNTPOINT` with appropriate value): ```xml @@ -54,7 +54,7 @@ Create a file named `io.juicefs..plist` under `~/Library/LaunchAgents`. Re PATH-TO-JUICEFS mount - REDIS-URL + META-URL MOUNTPOINT RunAtLoad diff --git a/docs/zh_cn/quick_start_guide.md b/docs/zh_cn/quick_start_guide.md index 4a7e4950be055ac730fab6cd235aa205c345b4c6..95f5b59abef2b651bedc6ad5c4e79d0a873e19bb 100644 --- a/docs/zh_cn/quick_start_guide.md +++ b/docs/zh_cn/quick_start_guide.md @@ -139,10 +139,10 @@ $ sudo cp /usr/local/bin/juicefs /sbin/mount.juicefs 编辑 `/etc/fstab` 配置文件,另起新行,参照以下格式添加一条记录: ``` - juicefs _netdev[,] 0 0 + juicefs _netdev[,] 0 0 ``` -- 请将 `` 替换成实际的 Redis 数据库地址,格式为 `redis://:@:/`,例如:`redis://localhost:6379/1`。 +- 请将 `` 替换成实际的 Redis 数据库地址,格式为 `redis://:@:/`,例如:`redis://localhost:6379/1`。 - 请将 `` 替换成文件系统实际的挂载点,例如:`/jfs`。 - 如果需要,请将 `[,]` 替换为实际要设置的 [挂载选项](command_reference.md#juicefs-mount),多个选项之间用逗号分隔。 diff --git a/docs/zh_cn/redis_best_practices.md b/docs/zh_cn/redis_best_practices.md index fe5fd986a26416c048cae0ef2959c30eda297dd2..89a23350fc6e2b765249e60fee677108c02c1520 100644 --- a/docs/zh_cn/redis_best_practices.md +++ b/docs/zh_cn/redis_best_practices.md @@ -29,7 +29,7 @@ There're some [fundamental things](https://redis.io/topics/sentinel#fundamental- Please read the [official documentation](https://redis.io/topics/sentinel) for more information. -Once Redis servers and Sentinels are deployed, the `REDIS-URL` can be specified as `[redis[s]://][USER:PASSWORD@]MASTERNAME,SENTINEL_ADDRS:SENTINEL_PORT[/DB]`, for example: +Once Redis servers and Sentinels are deployed, the `META-URL` can be specified as `[redis[s]://][USER:PASSWORD@]MASTERNAME,SENTINEL_ADDRS:SENTINEL_PORT[/DB]`, for example: ```bash $ ./juicefs mount rediss://:sentinelPass@masterName,1.2.3.4,1.2.5.6:5000/2 ~/jfs