[pve-devel] applied: [PATCH V2 guest-common] increase max reading replication state file size.
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Apr 17 09:27:25 CEST 2019
On 4/17/19 9:09 AM, Wolfgang Link wrote:
> 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 '';
>
>
applied, thanks!
More information about the pve-devel
mailing list