From ef13c2371c3070b0805ff7e040744f30c0d08375 Mon Sep 17 00:00:00 2001 From: Kenneth Endfinger Date: Sat, 15 Jan 2022 16:10:23 -0500 Subject: [PATCH] Core: Backup should use a 16KB buffer. --- .../kubelet/foundation/core/features/backup/BackupCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupCommand.kt b/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupCommand.kt index df66427..bb97467 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupCommand.kt +++ b/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupCommand.kt @@ -138,7 +138,7 @@ class BackupCommand( .filter { path: Path -> Files.isRegularFile(path) } .filter { path -> !matchers.any { it.matches(Paths.get(path.normalize().toString())) } } .toList() - val buffer = ByteArray(1024) + val buffer = ByteArray(16 * 1024) val backupsPath = backupsPath.toRealPath() for (path in paths) {