[pve-devel] applied: [PATCH] ProcFSTools:read_proc_mounts: increase read size

Alexandre DERUMIER aderumier at odiso.com
Wed Sep 27 08:33:38 CEST 2017


Thanks !

----- Mail original -----
De: "Wolfgang Bumiller" <w.bumiller at proxmox.com>
À: "aderumier" <aderumier at odiso.com>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mardi 26 Septembre 2017 10:54:53
Objet: applied: [PATCH] ProcFSTools:read_proc_mounts: increase read size

Late, but here it goes... 

On Fri, Dec 16, 2016 at 05:26:10PM +0100, Alexandre Derumier wrote: 
> I have some servers with a lot of mounts (1 by vm), default read limit is too small, and activate volume hang at vm start 
> 
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com> 
> --- 
> src/PVE/ProcFSTools.pm | 2 +- 
> 1 file changed, 1 insertion(+), 1 deletion(-) 
> 
> diff --git a/src/PVE/ProcFSTools.pm b/src/PVE/ProcFSTools.pm 
> index 05fd744..80c0425 100644 
> --- a/src/PVE/ProcFSTools.pm 
> +++ b/src/PVE/ProcFSTools.pm 
> @@ -292,7 +292,7 @@ sub read_proc_net_route { 
> } 
> 
> sub read_proc_mounts { 
> - return PVE::Tools::file_get_contents("/proc/mounts"); 
> + return PVE::Tools::file_get_contents("/proc/mounts", 128*1024); 
> } 
> 
> # mounts encode spaces (\040), tabs (\011), newlines (\012), backslashes (\\ or \134) 
> -- 
> 2.1.4 




More information about the pve-devel mailing list