mirror of
https://github.com/rclone/rclone.git
synced 2025-02-16 10:32:39 +01:00
docker volume plugin: add support for ChunkStreams VFS option and add options note
This commit is contained in:
parent
63ce0c9bc5
commit
b4d4366149
@ -169,6 +169,7 @@ func init() {
|
|||||||
|
|
||||||
// Options for creating the mount
|
// Options for creating the mount
|
||||||
type Options struct {
|
type Options struct {
|
||||||
|
// when modifying these options, please make sure to update getMountOption in cmd/serve/docker/options.go
|
||||||
DebugFUSE bool `config:"debug_fuse"`
|
DebugFUSE bool `config:"debug_fuse"`
|
||||||
AllowNonEmpty bool `config:"allow_non_empty"`
|
AllowNonEmpty bool `config:"allow_non_empty"`
|
||||||
AllowRoot bool `config:"allow_root"`
|
AllowRoot bool `config:"allow_root"`
|
||||||
|
@ -268,6 +268,9 @@ func getVFSOption(vfsOpt *vfscommon.Options, opt rc.Params, key string) (ok bool
|
|||||||
vfsOpt.FastFingerprint, err = opt.GetBool(key)
|
vfsOpt.FastFingerprint, err = opt.GetBool(key)
|
||||||
case "vfs-disk-space-total-size":
|
case "vfs-disk-space-total-size":
|
||||||
err = getFVarP(&vfsOpt.DiskSpaceTotalSize, opt, key)
|
err = getFVarP(&vfsOpt.DiskSpaceTotalSize, opt, key)
|
||||||
|
case "vfs-read-chunk-streams":
|
||||||
|
intVal, err = opt.GetInt64(key)
|
||||||
|
vfsOpt.ChunkStreams = int(intVal)
|
||||||
|
|
||||||
// unprefixed vfs options
|
// unprefixed vfs options
|
||||||
case "no-modtime":
|
case "no-modtime":
|
||||||
|
@ -162,6 +162,7 @@ func init() {
|
|||||||
|
|
||||||
// Options is options for creating the vfs
|
// Options is options for creating the vfs
|
||||||
type Options struct {
|
type Options struct {
|
||||||
|
// when modifying these options, please make sure to update getVFSOption in cmd/serve/docker/options.go
|
||||||
NoSeek bool `config:"no_seek"` // don't allow seeking if set
|
NoSeek bool `config:"no_seek"` // don't allow seeking if set
|
||||||
NoChecksum bool `config:"no_checksum"` // don't check checksums if set
|
NoChecksum bool `config:"no_checksum"` // don't check checksums if set
|
||||||
ReadOnly bool `config:"read_only"` // if set VFS is read only
|
ReadOnly bool `config:"read_only"` // if set VFS is read only
|
||||||
|
Loading…
Reference in New Issue
Block a user