mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
s3: export PartSize parameter
By default AWS SDK use part_size of 5 MB. For big files, it is not ideal case. For Hadoop, it is not uncommon to use 512 MB.
This commit is contained in:
@@ -103,6 +103,9 @@ func ValidateS3FsConfig(config *S3FsConfig) error {
|
||||
config.KeyPrefix += "/"
|
||||
}
|
||||
}
|
||||
if config.PartSize != 0 && config.PartSize < 5 {
|
||||
return errors.New("part_size ret cannot be lower than 5MB")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user