mirror of
https://github.com/outbackdingo/incus-os.git
synced 2026-01-27 10:19:24 +00:00
incus-osd: Use chunks of 4MB on copy
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
@@ -78,7 +78,7 @@ func (p *local) copyAsset(_ context.Context, name string, target string) error {
|
||||
|
||||
// Copy the content.
|
||||
for {
|
||||
_, err := io.CopyN(dst, src, 1024*1024)
|
||||
_, err := io.CopyN(dst, src, 4*1024*1024)
|
||||
if err != nil {
|
||||
if errors.Is(err, io.EOF) {
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user