mirror of
https://gitee.com/juicedata/JuiceFS.git
synced 2025-12-06 09:39:14 +08:00
docs: minor improvement for docs (#6430)
Signed-off-by: rifeplight <rifeplight@outlook.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -3699,7 +3699,7 @@ func TestTxBatchLock(t *testing.T) {
|
||||
}()
|
||||
}
|
||||
|
||||
// testCheckQuotaFileOwner
|
||||
// testCheckQuotaFileOwnerSimple
|
||||
func testCheckQuotaFileOwnerSimple(t *testing.T, m Meta) {
|
||||
ctx := Background()
|
||||
parent := RootInode
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user