[CRIU] [PATCH 2/5] mounts: use relative paths for mountpoints

Cyrill Gorcunov gorcunov at gmail.com
Fri Feb 21 06:25:19 PST 2014


On Fri, Feb 21, 2014 at 05:51:28PM +0400, Andrey Vagin wrote:
> +		pr_debug("\t\tGetting mpt for %d:%s\n", pm->mnt_id, me->mountpoint);
> +		len  = snprintf(NULL, 0, ".%s", me->mountpoint) + 1;

Could you please explain how it's different from len = strlen(me->mountpoint) + 2 ?

	Cyrill


More information about the CRIU mailing list