mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
mount: accept all extra mount options
fix https://github.com/seaweedfs/seaweedfs/issues/3767
This commit is contained in:
parent
620be2be16
commit
8e81619d02
|
@ -190,6 +190,8 @@ func runFuse(cmd *Command, args []string) bool {
|
|||
}
|
||||
case "fusermount.path":
|
||||
fusermountPath = parameter.value
|
||||
default:
|
||||
mountOptions.extraOptions = append(mountOptions.extraOptions, fmt.Sprintf("%s:%s", parameter.name, parameter.value))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ type MountOptions struct {
|
|||
debugPort *int
|
||||
localSocket *string
|
||||
disableXAttr *bool
|
||||
extraOptions []string
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
|
@ -166,7 +166,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
|
|||
// mount fuse
|
||||
fuseMountOptions := &fuse.MountOptions{
|
||||
AllowOther: *option.allowOthers,
|
||||
Options: nil,
|
||||
Options: option.extraOptions,
|
||||
MaxBackground: 128,
|
||||
MaxWrite: 1024 * 1024 * 2,
|
||||
MaxReadAhead: 1024 * 1024 * 2,
|
||||
|
|
Loading…
Reference in a new issue