[pve-devel] [PATCH V2 guest-common] increase max reading replication state file size.

Wolfgang Link w.link at proxmox.com
Wed Apr 17 09:09:27 CEST 2019


In this file, the error of a failed job will also be stored.
The default 32768 bytes are not very much.

This file is on the local filesystem so there is no filesystem
size restrictions like in /etc/pve.
---
V2: remove comment
    change size representation

 PVE/ReplicationState.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/ReplicationState.pm b/PVE/ReplicationState.pm
index 75d34ba..057cae6 100644
--- a/PVE/ReplicationState.pm
+++ b/PVE/ReplicationState.pm
@@ -31,7 +31,7 @@ sub read_state {
 
     return {} if ! -e $state_path;
 
-    my $raw = PVE::Tools::file_get_contents($state_path);
+    my $raw = PVE::Tools::file_get_contents($state_path, (1024 * 1024));
 
     return {} if $raw eq '';
 
-- 
2.11.0





More information about the pve-devel mailing list