diff --git a/backend/local/local.go b/backend/local/local.go index 18f399250..60491c6b7 100644 --- a/backend/local/local.go +++ b/backend/local/local.go @@ -1145,6 +1145,10 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op err = file.PreAllocate(src.Size(), f) if err != nil { fs.Debugf(o, "Failed to pre-allocate: %v", err) + if err == file.ErrDiskFull { + _ = f.Close() + return err + } } } out = f