Do not pass empty region, use stderr for GeeseFS log
This commit is contained in:
parent
63c658384f
commit
462812730a
3 changed files with 10 additions and 3 deletions
pkg/mounter
|
@ -45,10 +45,12 @@ func (s3fs *s3fsMounter) Mount(source string, target string) error {
|
|||
target,
|
||||
"-o", "use_path_request_style",
|
||||
"-o", fmt.Sprintf("url=%s", s3fs.url),
|
||||
"-o", fmt.Sprintf("endpoint=%s", s3fs.region),
|
||||
"-o", "allow_other",
|
||||
"-o", "mp_umask=000",
|
||||
}
|
||||
if s3fs.region != "" {
|
||||
args = append(args, "-o", fmt.Sprintf("endpoint=%s", s3fs.region))
|
||||
}
|
||||
args = append(args, s3fs.meta.MountOptions...)
|
||||
return fuseMount(target, s3fsCmd, args)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue