[CRIU] Re: [PATCH cr] proc: use bigger buffer for one line from mountinfo

Pavel Emelyanov xemul at parallels.com
Wed Sep 19 07:02:55 EDT 2012


On 09/19/2012 09:28 AM, Andrey Vagin wrote:
> Before 256 bytes were used for that, it may be not enough.
> For example it was not enough for a NFS point on my test system.
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  proc_parse.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/proc_parse.c b/proc_parse.c
> index 9790cce..76b6e2d 100644
> --- a/proc_parse.c
> +++ b/proc_parse.c
> @@ -634,7 +634,7 @@ struct mount_info *parse_mountinfo(pid_t pid)
>  {
>  	struct mount_info *list = NULL;
>  	FILE *f;
> -	char str[256];
> +	char str[1024];
>  
>  	snprintf(str, sizeof(str), "/proc/%d/mountinfo", pid);
>  	f = fopen(str, "r");

Applied


More information about the CRIU mailing list