Do not pass empty region, use stderr for GeeseFS log

This commit is contained in:
Vitaliy Filippov 2021-09-07 13:37:04 +03:00
parent 63c658384f
commit 462812730a
3 changed files with 10 additions and 3 deletions
pkg/mounter

View file

@ -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)
}