docs: minor improvement for docs (#6430)

Signed-off-by: rifeplight <rifeplight@outlook.com>
This commit is contained in:
rifeplight
2025-10-30 17:14:42 +08:00
committed by GitHub
parent 49027c6868
commit 2062b8b1ad
5 changed files with 6 additions and 6 deletions

View File

@@ -535,7 +535,7 @@ This is not included by default, please build it with tag `bunny`
#### Usage
Create a Storage Zone and use the Zone Name with the Hostname of the Location seperated by a dot as Bucket name and the `Write Password` as Secret Key.
Create a Storage Zone and use the Zone Name with the Hostname of the Location separated by a dot as Bucket name and the `Write Password` as Secret Key.
```shell
juicefs format \
@@ -1083,7 +1083,7 @@ juicefs format \
```
:::note
Don't use the same TiKV cluster for both metadata and data, because JuiceFS uses non-transactional protocol (RawKV) for objects and transactional protocol (TnxKV) for metadata. The TxnKV protocol has special encoding for keys, so they may overlap with keys even they has different prefixes. BTW, it's recommmended to enable [Titan](https://tikv.org/docs/latest/deploy/configure/titan) in TiKV for data cluster.
Don't use the same TiKV cluster for both metadata and data, because JuiceFS uses non-transactional protocol (RawKV) for objects and transactional protocol (TnxKV) for metadata. The TxnKV protocol has special encoding for keys, so they may overlap with keys even they has different prefixes. BTW, it's recommended to enable [Titan](https://tikv.org/docs/latest/deploy/configure/titan) in TiKV for data cluster.
:::
#### Set up TLS

View File

@@ -3699,7 +3699,7 @@ func TestTxBatchLock(t *testing.T) {
}()
}
// testCheckQuotaFileOwner
// testCheckQuotaFileOwnerSimple
func testCheckQuotaFileOwnerSimple(t *testing.T, m Meta) {
ctx := Background()
parent := RootInode

View File

@@ -112,7 +112,7 @@ type ObjectMetadata struct {
// ContentLanguage is Content-Language header.
ContentLanguage string
// ContentLanguage is Content-Length header.
// ContentLength is Content-Length header.
ContentLength int64
// ContentType is Content-Type header.

View File

@@ -242,7 +242,7 @@ func (e *dataEncryptor) Decrypt(ciphertext []byte) ([]byte, error) {
keyLen := int(ciphertext[0])<<8 + int(ciphertext[1])
nonceLen := int(ciphertext[2])
if 3+keyLen+nonceLen >= len(ciphertext) {
return nil, fmt.Errorf("misformed ciphertext: %d %d", keyLen, nonceLen)
return nil, fmt.Errorf("malformed ciphertext: %d %d", keyLen, nonceLen)
}
ciphertext = ciphertext[3:]
cipherkey := ciphertext[:keyLen]

View File

@@ -137,7 +137,7 @@ func (b *Buffer) Get(l int) []byte {
return b.buf[b.off-l : b.off]
}
// SetBytes initilizes the Buffer with BigEndian ordering
// SetBytes initializes the Buffer with BigEndian ordering
func (b *Buffer) SetBytes(buf []byte) {
b.endian = binary.BigEndian
b.off = 0